/* ── Shared Mobile Nav ────────────────────────────────────────────
   Include this on every page that has nav links.
   Requires: nav > .container > .logo + .hamburger + .nav-links
   ──────────────────────────────────────────────────────────────── */

/* Desktop: nav-links is a horizontal flex row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Base nav link styles (can be overridden by page-specific CSS) */
.nav-links .nav-link {
  color: #a8a4a0;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links .nav-link:hover {
  color: #e8e4df;
  background: #1a2e1a;
}
.nav-links .nav-link.active {
  color: #4ade80;
  font-weight: 600;
}

/* CTA link in nav */
.nav-links .nav-cta {
  font-size: 0.85rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  background: #4ade80;
  padding: 8px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-links .nav-cta:hover { background: #38a169; }

/* Primary link button in nav */
.nav-links .nav-link-primary {
  background: #4ade80;
  color: white;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-links .nav-link-primary:hover { background: #38a169; }

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  margin-left: auto;
  z-index: 101;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #a8a4a0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
/* X animation when open */
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile breakpoint (768px and below) ───────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav .container {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 8px 0 !important;
    border-top: 1px solid #3a3a3f;
    order: 10;
  }
  .nav-links.open {
    display: flex !important;
  }

  /* All links inside nav-links get nice tap targets */
  .nav-links a,
  .nav-links .nav-link,
  .nav-links .nav-cta,
  .nav-links .nav-link-primary {
    font-size: 1rem !important;
    padding: 14px 24px !important;
    display: block !important;
    white-space: normal !important;
    text-align: left !important;
    min-height: 44px;
    line-height: 1.4;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  /* CTA buttons get special treatment — full width with margin */
  .nav-links .nav-cta,
  .nav-links .nav-link-primary {
    margin: 4px 16px 4px !important;
    padding: 14px 24px !important;
    text-align: center !important;
    border-radius: 10px !important;
    width: calc(100% - 32px) !important;
  }

  /* Auth span container */
  .nav-links #navAuth,
  .nav-links span[id="navAuth"] {
    display: block;
    padding: 4px 16px 8px;
  }
  .nav-links #navAuth a {
    display: block !important;
    padding: 10px 8px !important;
    min-height: 44px;
    font-size: 0.95rem !important;
  }
}
