/* ═══════════════════════════════════════════════
   EsportsNext Trade Association — Nav Stylesheet
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #080c18;
  --navy-mid:    #0d1326;
  --navy-panel:  #111828;
  --navy-hover:  #161e33;
  --blue:        #1c3a8a;
  --blue-bright: #2655c0;
  --gold:        #f0a500;
  --gold-light:  #ffbe30;
  --gold-dim:    rgba(240,165,0,0.12);
  --white:       #ffffff;
  --off-white:   rgba(255,255,255,0.82);
  --muted:       rgba(255,255,255,0.45);
  --border:      rgba(255,255,255,0.07);
  --border-gold: rgba(240,165,0,0.3);
  --nav-total-height: 106px;

  /* Light-mode content area */
  --body-bg:     #ffffff;
  --body-color:  #1a1a2e;
  --body-muted:  #5a5a72;
  --body-border: #e2e2ea;
  --card-bg:     #f7f7fa;
  --card-border: #e2e2ea;
}

/* ─────────────────────────────────────
   UTILITY BAR
───────────────────────────────────── */
.util-bar {
  background: #05080f;
  border-bottom: 1px solid var(--border);
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 4px;
}

.util-socials {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.util-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.util-socials a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

.util-sep { width: 1px; height: 16px; background: var(--border); margin: 0 8px; }

.util-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 4px 10px; border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.util-link i { font-size: 11px; }
.util-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.btn-join {
  display: flex; align-items: center; gap: 7px;
  background: var(--gold); color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(240,165,0,0.25);
  white-space: nowrap; margin-left: 4px;
}
.btn-join i { font-size: 11px; }
.btn-join:hover { background: var(--gold-light); box-shadow: 0 0 20px rgba(240,165,0,0.4); }

/* ─────────────────────────────────────
   MAIN NAV — DESKTOP
───────────────────────────────────── */
.main-nav {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding: 0 40px;
  height: 68px;
  position: relative; z-index: 999;
}

.nav-logo {
  display: flex; align-items: center;
  margin-right: 44px; text-decoration: none; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.logo-wordmark { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 900; letter-spacing: 0.01em; line-height: 1; color: var(--white); }
.logo-wordmark .e { color: var(--blue-bright); }
.logo-sub { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-logo img { max-height: 42px; width: auto; display: block; }

.nav-items { display: flex; flex: 1; }

/* hamburger — hidden desktop */
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--border); border-radius: 4px;
  color: var(--white); font-size: 16px; cursor: pointer;
  margin-left: auto; align-self: center;
  transition: background 0.2s, border-color 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }

/* nav item */
.nav-item { position: relative; }

.nav-btn {
  display: flex; align-items: center; gap: 6px;
  height: 68px; padding: 0 22px;
  background: none; border: none;
  color: rgba(255,255,255,0.68);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  cursor: pointer; position: relative;
  transition: color 0.2s; white-space: nowrap;
}
.nav-btn::after {
  content: ''; position: absolute;
  bottom: 0; left: 22px; right: 22px; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-item:hover .nav-btn, .nav-item.open .nav-btn { color: var(--white); }
.nav-item:hover .nav-btn::after, .nav-item.open .nav-btn::after { transform: scaleX(1); }
.nav-item.brand:hover .nav-btn, .nav-item.brand.open .nav-btn { color: var(--gold); }

.chevron { width: 9px; height: 9px; transition: transform 0.25s; opacity: 0.5; flex-shrink: 0; }
.nav-item:hover .chevron, .nav-item.open .chevron { transform: rotate(180deg); opacity: 1; }

/* ─────────────────────────────────────
   MEGA MENUS — DESKTOP
───────────────────────────────────── */
.mega {
  position: absolute; top: 100%; left: 0;
  background: var(--navy-panel);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 8px 8px;
  padding: 28px 28px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 998; display: grid; gap: 0 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-item:hover .mega, .nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }

/* blur backdrop behind mega menus */
.nav-item:hover ~ .mega-backdrop-trigger,
.nav-item.open ~ .mega-backdrop-trigger { display: block; }

.col-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.col-icon { width: 30px; height: 30px; background: var(--gold-dim); border: 1px solid var(--border-gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.col-icon i { font-size: 13px; color: var(--gold); }
.col-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.col-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

.mlink { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 4px; border-left: 2px solid transparent; text-decoration: none; transition: background 0.15s, border-color 0.15s, padding-left 0.15s; margin-bottom: 2px; }
.mlink:hover { background: var(--navy-hover); border-left-color: var(--gold); padding-left: 14px; }
.mlink-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.05); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; transition: background 0.15s; }
.mlink-icon i { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.mlink:hover .mlink-icon { background: var(--gold-dim); }
.mlink:hover .mlink-icon i { color: var(--gold); }
.mlink-title { font-size: 13.5px; font-weight: 600; color: var(--off-white); line-height: 1.3; transition: color 0.15s; }
.mlink:hover .mlink-title { color: var(--white); }
.mlink-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.featured-block { background: linear-gradient(135deg, rgba(28,58,138,0.25), rgba(240,165,0,0.08)); border: 1px solid var(--border-gold); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.feat-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.feat-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; line-height: 1.1; color: var(--white); margin-bottom: 8px; }
.feat-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 16px; }
.feat-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 18px; border-radius: 2px; text-decoration: none; align-self: flex-start; transition: background 0.2s; }
.feat-cta:hover { background: var(--gold-light); }

.stat-pills { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.stat-pill { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.stat-val { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 800; color: var(--gold); min-width: 40px; }
.stat-label { font-size: 11.5px; color: var(--muted); }

.mega-about    { grid-template-columns: 1fr 1fr 260px; width: 820px; }
.mega-brand    { grid-template-columns: 1fr 1fr 240px; width: 920px; }
.mega-resources{ grid-template-columns: 1fr 1fr 240px; width: 860px; }
.mega-community{ grid-template-columns: 1fr 1fr 240px; width: 880px; }

.mega-brand-footer { grid-column: 1/-1; padding-top: 20px; margin-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.mega-brand-footer-text { font-size: 12px; color: var(--muted); }
.mega-brand-footer-text strong { display: block; font-size: 14px; color: var(--white); margin-bottom: 2px; }
.mega-brand-footer-link { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); text-decoration: none; opacity: 0.8; }
.mega-brand-footer-link:hover { opacity: 1; }

/* sponsorship strip — community */
.mega-sponsor-strip { grid-column: 1/-1; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mega-sponsor-strip .spon-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mega-sponsor-strip .spon-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mega-sponsor-strip .spon-desc { font-size: 11px; color: var(--muted); margin-top: 1px; }
.mega-sponsor-strip .spon-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.spon-channel { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 3px; padding: 5px 12px; font-size: 11.5px; color: var(--muted); }
.spon-channel i { margin-right: 5px; }

/* backdrop */
.mega-backdrop { position: fixed; inset: 0; top: var(--nav-total-height); background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden; transition: opacity 0.22s, visibility 0.22s; z-index: 997; backdrop-filter: blur(4px); }
.mega-backdrop.visible { opacity: 1; visibility: visible; }

/* ─────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────── */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 100vw);
  background: var(--navy-panel);
  border-left: 1px solid var(--border);
  z-index: 1100; overflow-y: auto;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.mobile-nav.open { transform: translateX(0); pointer-events: all; }

.mobile-overlay {
  display: block;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1099; opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(3px);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

@media (min-width: 901px) {
  .mobile-nav, .mobile-overlay { display: none !important; }
}

.mob-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--navy-mid); }
.mob-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 900; color: var(--white); }
.mob-logo .e { color: var(--blue-bright); }
.mob-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 4px; color: var(--white); font-size: 15px; cursor: pointer; transition: background 0.2s; }
.mob-close:hover { background: rgba(255,255,255,0.12); }

.mob-util { display: flex; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.mob-util-link { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 7px 12px; border: 1px solid var(--border); border-radius: 3px; flex: 1; transition: color 0.2s, border-color 0.2s; }
.mob-util-link:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.mob-join { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--gold); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; border-radius: 2px; text-decoration: none; flex: 1; transition: background 0.2s; }
.mob-join:hover { background: var(--gold-light); }

.mob-section { border-bottom: 1px solid var(--border); }
.mob-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px; background: none; border: none; color: rgba(255,255,255,0.75); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; cursor: pointer; transition: color 0.2s, background 0.2s; }
.mob-trigger:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.mob-section.brand .mob-trigger { color: var(--gold); }
.mob-section.brand .mob-trigger:hover { color: var(--gold-light); }

.mob-chevron { display: flex; align-items: center; justify-content: center; transition: transform 0.25s; opacity: 0.5; }
.mob-chevron i { font-size: 10px; }
.mob-section.open .mob-chevron { transform: rotate(180deg); opacity: 1; }

.mob-panel { max-height: 0; overflow: hidden; transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1); background: rgba(0,0,0,0.15); }
.mob-section.open .mob-panel { max-height: 1200px; }

.mob-group { padding: 12px 16px 8px; border-bottom: 1px solid var(--border); }
.mob-group:last-child { border-bottom: none; }
.mob-group-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); padding: 0 4px; margin-bottom: 6px; }

.mob-link { display: flex; align-items: center; gap: 12px; padding: 9px 4px; text-decoration: none; border-radius: 4px; transition: background 0.15s; }
.mob-link:hover { background: rgba(255,255,255,0.05); }
.mob-link i { width: 20px; text-align: center; font-size: 13px; color: var(--muted); flex-shrink: 0; transition: color 0.15s; }
.mob-link:hover i { color: var(--gold); }
.mob-link-label { font-size: 14px; font-weight: 500; color: var(--off-white); transition: color 0.15s; }
.mob-link:hover .mob-link-label { color: var(--white); }

.mob-cta-block { padding: 12px 16px 16px; }
.mob-cta-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 18px; border-radius: 2px; text-decoration: none; }
.mob-cta-btn:hover { background: var(--gold-light); }

.mob-sponsor { padding: 14px 20px 18px; border-top: 1px solid var(--border); }
.mob-sponsor-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mob-sponsor-head i { color: var(--gold); font-size: 13px; }
.mob-sponsor-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mob-sponsor-desc { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.mob-sponsor-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--navy); font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 16px; border-radius: 2px; text-decoration: none; transition: background 0.2s; }
.mob-sponsor-cta:hover { background: var(--gold-light); }

.mob-socials { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.mob-socials a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: 12px; text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.mob-socials a i { font-size: 13px; }
.mob-socials a:hover { color: var(--white); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 900px) {
  .util-bar { padding: 0 16px; }
  /* hide text labels on util links, keep icons */
  .util-link span { display: none; }
  .util-link { padding: 4px 8px; }

  .main-nav { padding: 0 16px; }
  .nav-items { display: none; }
  .hamburger { display: flex; }
  .nav-logo { margin-right: 0; }
}

@media (max-width: 480px) {
  .util-bar { height: 34px; gap: 2px; }
  .util-socials a { width: 24px; height: 24px; font-size: 12px; }
  .btn-join { padding: 4px 10px; font-size: 11px; }
  .util-sep { margin: 0 4px; }
}
