/* ============================================================
   Over-40 Fighter — Nav Override
   ============================================================ */

/* ---------- CORE NAV BAR ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 2.5rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #cc0000 15%, #cc0000 85%, transparent 100%);
  pointer-events: none;
}

nav.scrolled {
  height: 54px;
  background: rgba(4,4,4,0.99);
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

/* ---------- LOGO ---------- */
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.85; }
.nav-logo span { color: #cc0000; }

.nav-logo-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-icon { transform: rotate(-8deg) scale(1.05); }

/* ---------- NAV LINKS ---------- */
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  display: block;
  position: relative;
  transition: color 0.2s;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: #cc0000;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-links > li > a:hover { color: #fff; }
.nav-links > li > a:hover::after { transform: scaleX(1); }

/* ---------- SHOP DROPDOWN ---------- */
.nav-dropdown .dropdown-menu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(10,10,10,0.98);
  border: 1px solid rgba(204,0,0,0.2);
  border-top: 2px solid #cc0000;
  min-width: 190px;
  list-style: none;
  padding: 0.4rem 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  display: block;
}

.nav-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown .dropdown-menu li a {
  padding: 0.55rem 1.1rem !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.85) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  display: block;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown .dropdown-menu li:last-child a { border-bottom: none !important; }
.nav-dropdown .dropdown-menu li a::after { display: none !important; }
.nav-dropdown .dropdown-menu li a:hover {
  color: #fff !important;
  background: rgba(204,0,0,0.08);
  padding-left: 1.4rem !important;
}

/* ---------- RIGHT-SIDE ACTIONS ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-member {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,195,0,0.8);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255,195,0,0.18);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-member:hover {
  color: #ffc300;
  border-color: rgba(255,195,0,0.45);
  background: rgba(255,195,0,0.05);
}

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: #cc0000;
  padding: 0.42rem 1rem;
  border: 1px solid #cc0000;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: #aa0000;
  border-color: #aa0000;
}

/* ---------- HAMBURGER ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px;
  position: relative;
  z-index: 1002;
  transition: border-color 0.2s;
}

.hamburger:hover { border-color: rgba(204,0,0,0.5); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: all 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

/* Hamburger → X when menu is open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
/* DEFINITIVE: use display:none / display:flex approach — no opacity conflicts */
.mobile-menu {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0; bottom: 0;
  background: rgba(5,5,5,0.98);
  border-top: 2px solid #cc0000;
  padding: 1.75rem 1.75rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

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

.mob-group {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0;
  margin-bottom: 0;
}

.mob-group:last-child { border-bottom: none; }

.mob-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cc0000;
  padding: 0.25rem 0 0.5rem;
  opacity: 0.9;
}

#mobileMenu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-bottom: none !important;
  transition: color 0.15s, padding-left 0.15s;
}

#mobileMenu a:hover {
  color: #fff;
  padding-left: 0.4rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
  nav { padding: 0 1.1rem; }
  .nav-logo { font-size: 1.15rem; }
  .nav-logo-icon { width: 22px; height: 22px; }
}
