/* ============================================================
   TheFour11 — Hockey / NHL Design System
   ============================================================ */

:root {
  --bg: #050810;
  --bg-card: #0c1220;
  --bg-card-hover: #121b2e;
  --border: #1a2840;
  --border-light: #263d60;
  --text: #d0dff0;
  --text-muted: #506080;
  --text-bright: #ffffff;

  /* Hockey brand colors */
  --nhl-blue: #0066cc;
  --nhl-blue-dark: #0050a0;
  --nhl-blue-light: #3388ff;
  --stanley-gold: #c8a951;
  --stanley-gold-dark: #a88a38;
  --ice: #a8c8e8;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  background: rgba(5, 8, 16, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  height: 62px;
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-bright);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  letter-spacing: -0.01em;
}

.nav-brand .flag { font-size: 1.2rem; }
.nav-brand .accent { color: var(--nhl-blue); }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
  display: block;
  padding: 0 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 62px;
  transition: color 0.15s;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  margin-left: 1rem;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============================================================
   CONTAINER / LAYOUT
   ============================================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-header { margin-bottom: 2rem; }

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.section-subtitle { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: linear-gradient(160deg, #050810 0%, #060c1a 40%, #080c14 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(0,102,204,0.015) 24px, rgba(0,102,204,0.015) 48px);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--nhl-blue);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge.gold {
  background: var(--stanley-gold);
  color: #000;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero h1 .hl      { color: var(--nhl-blue-light); }
.hero h1 .hl-gold { color: var(--stanley-gold); }

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero-meta-item .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-meta-item .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}

.btn-primary { background: var(--nhl-blue); color: #fff; }
.btn-primary:hover { background: var(--nhl-blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-gold { background: var(--stanley-gold); color: #000; font-weight: 700; }
.btn-gold:hover { background: var(--stanley-gold-dark); transform: translateY(-1px); }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-blue  { background: var(--nhl-blue);       color: #fff; }
.badge-gold  { background: var(--stanley-gold);   color: #000; }
.badge-ice   { background: var(--ice);            color: #000; }
.badge-gray  { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }
.badge-live  { background: #cc2200; color: #fff; }
.badge-new   { background: #1a8a3a; color: #fff; }
.badge-soon  { background: #b85a00; color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.18s, background 0.18s;
}

.card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Event cards */
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nhl-blue), var(--nhl-blue-light));
}

.event-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.event-card .event-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.event-card .event-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.event-card .event-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   BRACKET / MATCHUP DISPLAY
   ============================================================ */

.matchup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
}

.matchup:hover { border-color: var(--border-light); }

.matchup-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nhl-blue-light);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.matchup-teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.matchup-team {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 1.05rem;
}

.matchup-seed {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.matchup-vs {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.matchup-detail {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.page-header .lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

/* ============================================================
   SCHEDULE
   ============================================================ */

.sched-section { margin-bottom: 2.5rem; }

.sched-day {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nhl-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(0,102,204,0.08);
  border-left: 3px solid var(--nhl-blue);
  border-radius: 0 4px 4px 0;
}

.sched-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: background 0.15s;
}

.sched-row:hover { background: var(--bg-card-hover); }

.sched-row.featured {
  border-color: rgba(0,102,204,0.3);
  background: rgba(0,102,204,0.06);
}

.sched-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-bright);
  min-width: 160px;
  font-size: 0.9rem;
}

.sched-name {
  font-weight: 700;
  color: var(--text-bright);
  font-size: 0.95rem;
}

.sched-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   STAT BOXES
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   CALLOUTS
   ============================================================ */

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--nhl-blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.callout.gold   { border-left-color: var(--stanley-gold); background: rgba(200,169,81,0.05); }
.callout.blue   { border-left-color: var(--nhl-blue-light); background: rgba(0,102,204,0.05); }

.callout-title {
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.callout p { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   PROSE
   ============================================================ */

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 1.75rem 0 0.5rem;
}

.prose p {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.prose ul, .prose ol {
  color: var(--text);
  margin: 0.75rem 0 1rem 1.5rem;
  font-size: 0.95rem;
}

.prose li { margin-bottom: 0.35rem; line-height: 1.65; }
.prose strong { color: var(--text-bright); font-weight: 700; }

/* ============================================================
   GRIDS
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* ============================================================
   CONFERENCE SECTIONS
   ============================================================ */

.conference-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nhl-blue-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   UTILITY
   ============================================================ */

.text-muted   { color: var(--text-muted); }
.text-bright  { color: var(--text-bright); }
.text-blue    { color: var(--nhl-blue-light); }
.text-gold    { color: var(--stanley-gold); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  margin-top: 5rem;
  text-align: center;
}

footer p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.8; }
footer a { color: var(--nhl-blue-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: rgba(5,8,16,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    line-height: 1;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.25rem; }
  .hero-meta { gap: 1.5rem; }
  .sched-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .sched-time { min-width: auto; }
  .matchup-teams { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
}

/* ============================================================
   TheFour11 parent site bar
   ============================================================ */

.the411-bar {
  background: #050810;
  border-bottom: 1px solid #1a2840;
  padding: 0.45rem 1.25rem;
  font-size: 0.78rem;
  color: #4a6a8a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.the411-bar a {
  color: #ff6b35;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.the411-bar a:hover { color: #ff8a5a; }
.the411-bar .sep { color: #2a3f5f; }

/* Ad unit styles */
.ad-unit {
  margin: 2rem auto;
  text-align: center;
  max-width: 728px;
}

.ad-unit-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.ad-unit ins {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

body:has(#navlinks.open) { overflow: hidden; }


/* ============================================================
   Sports Navigation Strip
   ============================================================ */

.sports-strip {
  background: #ff6b35;
  padding: 0.38rem 0 0.38rem 1.25rem;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.sports-strip a {
  color: rgba(0,0,0,0.65);
  font-weight: 600;
  text-decoration: none;
  padding: 0 0.45rem;
  transition: color 0.15s;
  white-space: nowrap;
}

.sports-strip a:first-child { padding-left: 0; }

.sports-strip a:hover { color: #000; }

.sports-strip a.active {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.sports-strip .ss-sep {
  color: rgba(0,0,0,0.28);
  flex-shrink: 0;
  user-select: none;
}

.ss-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ss-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #d94f1e;
  min-width: 140px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
  padding: 0.25rem 0;
}

.ss-group:hover .ss-dropdown,
.ss-group:focus-within .ss-dropdown { display: block; }

.ss-dropdown a {
  display: block;
  padding: 0.35rem 0.75rem;
  color: rgba(0,0,0,0.7);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.74rem;
}

.ss-dropdown a:hover { color: #000; background: rgba(0,0,0,0.08); }
