/* ══════════════════════════════════════════════════════════════
   Shared site nav + footer — single source of truth.
   Include on every page: <link rel="stylesheet" href="/shared/layout.css">
   ══════════════════════════════════════════════════════════════ */

/* Prevent layout shift from scrollbar appearing/disappearing */
html { scrollbar-gutter: stable; }

/* ── Nav ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 66px; display: flex; align-items: center;
  background: rgba(15, 14, 23, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 111, 224, 0.08);
}
.site-nav .nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav .nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #FFFFFE;
}
.site-nav .nav-brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav .nav-brand span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.4rem;
}
.site-nav .nav-links {
  display: flex; align-items: center; gap: 28px;
}
.site-nav .nav-links a {
  color: #94939E; text-decoration: none; font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500; transition: color 0.2s;
}
.site-nav .nav-links a:hover { color: #FFFFFE; }
.site-nav .nav-links .nav-cta {
  background: #7C6FE0; color: #FFFFFE !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600; transition: opacity 0.2s;
}
.site-nav .nav-links .nav-cta:hover { opacity: 0.85; }
.site-nav .nav-links .nav-sign-out {
  background: none; border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94939E; padding: 6px 18px; border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav .nav-links .nav-sign-out:hover {
  border-color: #94939E; color: #FFFFFE;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(124, 111, 224, 0.08);
  padding: 40px 0;
}
.site-footer .footer-inner {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-footer .footer-brand {
  display: flex; align-items: center; gap: 8px;
  color: #94939E; font-size: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.site-footer .footer-brand img { width: 24px; height: 24px; border-radius: 6px; opacity: 0.6; }
.site-footer .footer-links { display: flex; gap: 24px; }
.site-footer .footer-links a {
  color: #94939E; text-decoration: none; font-size: 0.85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: #FFFFFE; }

/* ── Hamburger ──────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px; z-index: 210;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: #FFFFFE;
  border-radius: 1px; transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0;
  background: rgba(15, 14, 23, 0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 111, 224, 0.08);
  padding: 16px 24px; z-index: 199;
  flex-direction: column; gap: 16px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: #94939E; text-decoration: none; font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500; padding: 8px 0; transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: #FFFFFE; }
.nav-mobile-menu .nav-cta {
  background: #7C6FE0; color: #FFFFFE !important;
  padding: 12px 20px; border-radius: 8px; font-weight: 600;
  text-align: center; transition: opacity 0.2s;
}
.nav-mobile-menu .nav-cta:hover { opacity: 0.85; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .site-nav .nav-inner { padding: 0 16px; }
  .site-nav .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .site-footer .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .site-footer .footer-links { flex-direction: column; gap: 12px; }
}
