/* ═══════════════════════════════════════════════════════════════
   shared-nav.css — The Dink Society
   Sticky header + mobile drawer
   Transparent over hero → solid on scroll
   ═══════════════════════════════════════════════════════════════ */

/* ── Sticky header ───────────────────────────────────────────── */
.ds-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,14,14,0.0);
  backdrop-filter: blur(0px) saturate(1);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

/* Solidified state — applied via JS on scroll */
.ds-nav.is-solid {
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--color-border);
}

.ds-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: var(--space-4);
  width: min(calc(100% - 2rem), var(--max-w)); margin: 0 auto;
}

/* ── Brand mark ──────────────────────────────────────────────── */
.ds-nav-brand {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--color-text);
}
.ds-nav-brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.ds-nav-brand-text { display: flex; flex-direction: column; }
.ds-nav-brand-text strong {
  font-size: var(--text-sm); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ds-nav-brand-text small {
  font-size: 0.65rem; color: var(--color-text-faint);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ── Desktop links ───────────────────────────────────────────── */
.ds-nav-links {
  display: flex; gap: var(--space-1); align-items: center;
}
.ds-nav-links a, .ds-nav-links button {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted);
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none;
}
.ds-nav-links a:hover, .ds-nav-links button:hover {
  color: var(--color-text); background: rgba(255,255,255,0.08);
}
.ds-nav-links a.is-active {
  color: var(--color-lime); background: var(--color-lime-dim);
}
.ds-nav-cta {
  padding: var(--space-2) var(--space-4) !important;
  background: var(--color-lime) !important;
  color: var(--color-text-inverse) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
}
.ds-nav-cta:hover {
  background: var(--color-lime-hover) !important;
  transform: translateY(-1px);
}

/* ── Hamburger button ────────────────────────────────────────── */
.ds-nav-hamburger {
  display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text); cursor: pointer;
}
.ds-nav-hamburger svg { width: 20px; height: 20px; }

/* ── Mobile drawer ───────────────────────────────────────────── */
.ds-nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 200;
}
.ds-nav-drawer.is-open { display: block; }
.ds-nav-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.ds-nav-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--color-surface); border-left: 1px solid var(--color-border);
  padding: var(--space-6); display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ds-nav-drawer.is-open .ds-nav-drawer-panel { transform: translateX(0); }
.ds-nav-drawer-close {
  align-self: flex-end; width: 36px; height: 36px;
  border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6);
  background: transparent; color: var(--color-text); cursor: pointer;
}
.ds-nav-drawer-links {
  display: flex; flex-direction: column; gap: var(--space-2);
}
.ds-nav-drawer-links a {
  display: block; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-size: var(--text-base);
  font-weight: 600; color: var(--color-text-muted);
  transition: all var(--transition); text-decoration: none;
}
.ds-nav-drawer-links a:hover { color: var(--color-text); background: var(--color-surface-2); }
.ds-nav-drawer-links a.is-active { color: var(--color-lime); background: var(--color-lime-dim); }
.ds-nav-drawer-cta {
  margin-top: auto; display: block; text-align: center;
  padding: var(--space-4); background: var(--color-lime);
  color: var(--color-text-inverse); font-weight: 700;
  border-radius: var(--radius-full); font-size: var(--text-sm);
  text-decoration: none;
}

/* ── Theme toggle button ─────────────────────────────────────── */
.ds-nav-theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border); background: transparent;
  color: var(--color-text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.ds-nav-theme-toggle:hover { color: var(--color-text); background: var(--color-surface-2); }
.ds-nav-theme-toggle .icon-sun { display: block; }
.ds-nav-theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .ds-nav-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .ds-nav-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .ds-nav-theme-toggle .icon-sun { display: none; }
[data-theme="light"] .ds-nav-theme-toggle .icon-moon { display: block; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ds-nav-links { display: none; }
  .ds-nav-hamburger { display: flex; }
}


/* ═══════════════════════════════════════════════════════════════
   PAGE HERO — shared photo-backed hero for sub-pages
   Used by schedule, standings, stats, teams, rules, gallery
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.page-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.3) contrast(1.15) saturate(0.85);
  transition: opacity 0.6s ease;
}
/* Fallback when no image */
.page-hero__bg--fallback {
  background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-bg) 100%);
}
.page-hero__gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--color-bg) 0%, rgba(14,14,14,0.6) 50%, rgba(14,14,14,0.2) 80%, transparent 100%);
}
.page-hero__content {
  position: relative; z-index: 2;
  /* Bottom padding reserves the "Presented by" row so the title sits at the
     same height on every page. Leaderboard fills that space with the sponsor. */
  padding: 80px var(--gutter) 86px;
  width: min(calc(100% - 2rem), var(--max-w));
  margin: 0 auto;
}
.page-hero--sponsor .page-hero__content { padding-bottom: 40px; }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-lime); margin-bottom: 12px;
}
.page-hero__eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-lime);
}
.page-hero__title {
  font-size: var(--text-3xl);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.0;
  margin: 0 0 8px;
}
.page-hero__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
/* "Presented by K'CHN" — shared across all sub-page heroes */
.page-hero__presented {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
}
.page-hero__presented-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.kchn-logo {
  display: inline-flex; align-items: center; background: #000;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 7px; padding: 5px 11px;
}
.kchn-logo span {
  font-size: 16px; font-weight: 900; color: #f0d020;
  letter-spacing: 0.06em; font-style: italic;
}
