/* nav.css — Brack Attack Golf v1774294378 */
/* nav.css v1774281935 */
/* ============================================================
   BRACK ATTACK NAV — nav.css  v2
   Single source of truth for ALL nav styles.
   DO NOT duplicate these rules in any page <style> block.
   ============================================================ */

/* ── NAV BASE ── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9997;
  transition: top 0.3s ease;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 32px;
  background: rgba(10,20,12,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,197,94,0.18);
}
[data-theme="light"] #mainNav {
  background: rgba(242,245,240,0.97);
  border-bottom: 1px solid rgba(26,107,58,0.2);
}

/* ── LOGO ── */
.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px; letter-spacing: 2px;
  color: #0F2218; text-decoration: none; flex-shrink: 0;
  transition: opacity .15s;
}
/* GOLF span stays bright green in both modes */
.nav-logo span { color: #22c55e; }
/* Dark mode: BRACK ATTACK goes light */
[data-theme="dark"] .nav-logo { color: #EDE8E0; }
[data-theme="dark"] .nav-logo span { color: #22c55e; }
.nav-logo:hover { opacity: .8; }

/* ── LINKS ── */
.nav-links {
  display: flex; align-items: center; gap: 20px; flex: 1;
  justify-content: center;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #EDE8E0; text-decoration: none;
  transition: color .15s;
  position: relative; white-space: nowrap;
}
[data-theme="light"] .nav-links a { color: #1A2E1A; }

/* Hover */
.nav-links a:hover { color: #22c55e; }

/* Active page — underline indicator */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #22c55e;
}
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: #F94F00; border-radius: 1px;
}

/* ── USER PILL ── */
.nav-user { display: flex; align-items: center; gap: 6px; }
.nav-user-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #F94F00; flex-shrink: 0;
  transition: background .3s;
}
.nav-alert-badge {
  background: #F94F00; color: #fff; border-radius: 10px;
  padding: 1px 6px; font-size: 10px; font-weight: 700;
}

/* ── CTA BUTTON ── */
.nav-cta {
  background: #1a6b3a; color: #fff; border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 10px 20px;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.nav-cta:hover { background: #22843f; color: #fff; }

/* ── THEME TOGGLE ── */
.theme-toggle-icon {
  background: none; border: 1px solid #2E2820; color: #EDE8E0;
  width: 30px; height: 30px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .15s;
}
[data-theme="light"] .theme-toggle-icon { border-color: #C8C0B4; color: #1A1610; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; flex-shrink: 0; background: none; border: none;
  position: relative; z-index: 10000;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #EDE8E0; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
[data-theme="light"] .nav-hamburger span { background: #1A2E1A; }
[data-theme="dark"] .nav-hamburger span { background: #EDE8E0; }

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

/* ── MOBILE (≤960px) ── */
@media(max-width:960px) {
  #mainNav { padding: 12px 16px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }

  #mainNav.menu-open { z-index: 9998 !important; }
  .nav-hamburger { display: flex; }

  /* Full-screen overlay */
  .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important; height: 100vh !important;
    margin: 0 !important; padding: 0 !important;
    background: #0D0B09 !important;
    flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    gap: 32px !important;
    z-index: 9999 !important;
    overflow: hidden !important;
  }
  [data-theme="light"] .nav-links.open { background: #F2F5F0 !important; }

  .nav-links.open a {
    font-size: 26px !important;
    letter-spacing: 3px !important;
    color: #EDE8E0 !important;
    padding: 8px 32px;
    text-align: center;
  }
  [data-theme="light"] .nav-links.open a { color: #1A2E1A !important; }
  .nav-links.open a:hover { color: #1a6b3a !important; }

  /* Active page in mobile menu */
  .nav-links.open a.active,
  .nav-links.open a[aria-current="page"] {
    color: #1a6b3a !important;
  }
  .nav-links.open a.active::after,
  .nav-links.open a[aria-current="page"]::after {
    display: none; /* no underline in mobile — color is enough */
  }

  .nav-links.open .nav-cta {
    display: block !important;
    background: #F94F00 !important;
    color: #fff !important;
    padding: 16px 48px !important;
    margin-top: 8px;
    font-size: 18px !important;
  }
  .nav-links.open .nav-user { color: #1a6b3a !important; }
}

/* ── DESKTOP (≥961px) ── */
@media(min-width:961px) {
  .nav-hamburger { display: none !important; }
  .nav-links     { display: flex !important; }
}


/* ── ALERT BANNER ─────────────────────────────────────────────────────────── */
.alert-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: #F94F00;
  padding: 0;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 24px rgba(34,197,94,0.3);
}
.alert-banner.show { transform: translateY(0); }
.alert-banner.win  { background: #16A34A; box-shadow: 0 4px 24px rgba(22,163,74,0.5); }
.alert-banner.elimination { background: #C03030; box-shadow: 0 4px 24px rgba(192,48,48,0.5); }
.alert-banner.update { background: #F94F00; }

.ab-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.ab-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ab-icon { font-size: 20px; flex-shrink: 0; }
.ab-msg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.ab-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ab-close {
  background: rgba(0,0,0,0.2);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ab-close:hover { background: rgba(0,0,0,0.35); }
/* Push nav down when banner is visible */
.alert-banner.show ~ nav,
.alert-banner.show + nav,
body.has-alert nav { margin-top: 54px; }
@media(max-width:600px){
  .ab-msg { font-size: 13px; letter-spacing: 1px; }
  .ab-badge { display: none; }
}


/* Ticker is fixed below nav — push content down */
body.ticker-visible {
  padding-top: 32px;
}

/* ── TICKER CONTENT OFFSET ────────────────────────────────────────────────────
   When live ticker is visible (32px band below nav), push page content down
   so nothing is hidden behind it. Applies to first content wrapper per page. */
body.ticker-visible .lb-header,
body.ticker-visible .page-wrap,
body.ticker-visible .contact-wrap,
body.ticker-visible .bracket-wrap,
body.ticker-visible .pick-page,
body.ticker-visible .pick-wrap,
body.ticker-visible .auth-box,
body.ticker-visible .leagues-wrap,
body.ticker-visible .entry-wrap,
body.ticker-visible .page-header,
body.ticker-visible .hero-section,
body.ticker-visible section:first-of-type,
body.ticker-visible .admin-layout {
  margin-top: 32px;
}

/* ── GOLF GLOBAL LINK RESET ────────────────────────────────────────────────
   Prevent browser-default blue links anywhere on the site */
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
