/* ==========================================================================
   LogiPaq Footer — Single glass card, Apple-like.
   Top: brand + links. Divider. Bottom: copyright + session (button + note).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

footer.lpq-footer,
footer.center {
  width: 100%;
  margin: 2.5rem 0 0;
  background: transparent;
  border-top: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #0f172a;
}

.lpq-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 22px;
}

.lpq-footer__card {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

/* Top: brand + links */
.lpq-footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.4rem 2rem;
  padding: 1.25rem 1.6rem;
}

.lpq-footer__brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background-color 0.18s ease;
  flex-shrink: 0;
}

.lpq-footer__brand:hover {
  background: rgba(47, 111, 236, 0.06);
}

.lpq-footer__brand .logo-foot {
  width: 86px !important;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.lpq-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  justify-content: flex-end;
}

.lpq-footer__links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.2;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.lpq-footer__links a:hover {
  color: #1d4ed8;
  background: rgba(47, 111, 236, 0.08);
}

.lpq-footer__links a i {
  font-size: 0.95rem;
  opacity: 0.65;
}

.lpq-footer__links a:hover i {
  opacity: 1;
}

/* Divider */
.lpq-footer__divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(148, 163, 184, 0.35) 18%,
    rgba(148, 163, 184, 0.35) 82%,
    transparent 100%
  );
}

/* Bottom: copyright + session */
.lpq-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.6rem 1.1rem;
  flex-wrap: wrap;
}

.lpq-footer__copyright {
  margin: 0;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}

.lpq-footer__session {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lpq-footer__logout {
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px !important;
  padding: 0.5rem 1.1rem !important;
  border: 0 !important;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow:
    0 3px 10px rgba(220, 38, 38, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  color: #fff !important;
}

.lpq-footer__logout:hover {
  transform: translateY(-1px);
  box-shadow:
    0 5px 14px rgba(220, 38, 38, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.lpq-footer__session-note {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

.lpq-footer__session-note.is-paused {
  color: #b45309;
  font-weight: 600;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] footer.lpq-footer,
[data-theme="dark"] footer.center {
  color: #e2e8f0;
}

[data-theme="dark"] .lpq-footer__card {
  background: rgba(30, 41, 59, 0.62);
  border-color: rgba(71, 85, 105, 0.55);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .lpq-footer__brand:hover {
  background: rgba(125, 166, 255, 0.12);
}

[data-theme="dark"] .lpq-footer__links a {
  color: #cbd5e1;
}

[data-theme="dark"] .lpq-footer__links a:hover {
  color: #ffffff;
  background: rgba(125, 166, 255, 0.16);
}

[data-theme="dark"] .lpq-footer__divider {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(71, 85, 105, 0.5) 18%,
    rgba(71, 85, 105, 0.5) 82%,
    transparent 100%
  );
}

[data-theme="dark"] .lpq-footer__copyright {
  color: #64748b;
}

[data-theme="dark"] .lpq-footer__session-note {
  color: #94a3b8;
}

[data-theme="dark"] .lpq-footer__session-note.is-paused {
  color: #fbbf24;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .lpq-footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.9rem;
    padding: 1.1rem 1.1rem;
  }

  .lpq-footer__brand {
    justify-content: center;
  }

  .lpq-footer__links {
    justify-content: center;
    width: 100%;
  }

  .lpq-footer__bottom {
    justify-content: center;
    flex-direction: column-reverse;
    text-align: center;
    padding: 0.85rem 1.1rem 1rem;
    gap: 0.7rem;
  }

  .lpq-footer__session {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 576px) {
  footer.lpq-footer,
  footer.center {
    margin-top: 1.6rem;
  }

  .lpq-footer__inner {
    padding: 0 10px 16px;
  }

  .lpq-footer__card {
    border-radius: 18px;
  }

  .lpq-footer__top {
    padding: 0.9rem 0.85rem;
  }

  .lpq-footer__brand .logo-foot {
    width: 72px !important;
  }

  .lpq-footer__links {
    gap: 0.2rem;
  }

  .lpq-footer__links a {
    font-size: 0.82rem;
    padding: 0.35rem 0.6rem;
  }

  .lpq-footer__bottom {
    padding: 0.85rem 0.85rem 1rem;
  }

  .lpq-footer__logout {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.55rem 1rem !important;
  }

  .lpq-footer__session {
    width: 100%;
  }
}
