/* ============================================================
   nav.css — Shared navigation styles for Nexus Sports
   Used by: index.html, nexus_news.html, trade-analyzer.html,
            trade-entry.html, trade-results.html, pricing.html,
            sign-in.html, about.html
   ============================================================ */

/* ── NAV BAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 163, 239, 0.1);
}

/* ── LOGO ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

.nav-logo span {
  font-family: 'Prohibition', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* Fallback logo mark (NS initials) used on some pages */
.nav-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Prohibition', sans-serif;
  font-size: 14px;
  color: white;
  letter-spacing: 0.05em;
}

/* ── DESKTOP LINKS ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover  { color: var(--blue); }
.nav-links a.active { color: var(--blue); }

/* ── NAV BUTTON (Sign In / Trade Analyzer CTA) ── */
.btn-nav {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Prohibition', sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.btn-nav:hover {
  background: var(--blue-dim) !important;
  box-shadow: 0 0 24px var(--blue-glow) !important;
  color: #fff !important;
}

/* ── AUTH NAV (logged-in user menu) ── */
.nav-user { position: relative; }

.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(220, 221, 221, 0.15);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nav-user-trigger:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.nav-user-trigger::after {
  content: '▾';
  font-size: 10px;
  margin-left: 4px;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #131316;
  border: 1px solid #1a1a1f;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-email {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid #1a1a1f;
  margin-bottom: 4px;
  word-break: break-all;
  text-transform: none;
  letter-spacing: 0;
}

.nav-signout-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-signout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── HAMBURGER BUTTON (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Animates ☰ into ✕ when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DROPDOWN MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(13, 13, 15, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 163, 239, 0.1);
  padding: 24px 24px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(220, 221, 221, 0.06);
  transition: color 0.2s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover  { color: var(--blue); }
.mobile-menu a.active { color: var(--blue); }

/* Strip button styling from .btn-nav inside mobile menu */
.mobile-menu .btn-nav {
  background: none !important;
  padding: 14px 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  color: var(--text-muted) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.mobile-menu .btn-nav:hover {
  background: none !important;
  color: var(--blue) !important;
  box-shadow: none !important;
}

/* ── RESPONSIVE BREAKPOINT ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links  { display: none; }   /* hide desktop links */
  .hamburger  { display: flex; }   /* show ☰ button     */
}
