/* =====================================================
   HFR Theme – Concept 21 DARK
   File: /assets/css/theme.css
   Version: 1.0.0
   Description: Full site theme based on Concept 21 DARK.
                Replaces style.css as the primary stylesheet.
   ===================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --orange: #ff6600;
  --orange-hover: #ff8533;
  --orange-glow: rgba(255, 102, 0, 0.15);
  --orange-border: rgba(255, 102, 0, 0.3);

  --bg-deepest: #000;
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;

  --text-primary: #fff;
  --text-body: #e0e0e0;
  --text-muted: #b0b0b0;
  --text-dim: #808080;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.08);

  --discord: #5865F2;
  --twitch: #9146FF;
  --youtube: #FF0000;

  --cap: 1400px;
  --cap-narrow: 900px;

  --font-body: 'Rubik', sans-serif;
  --font-display: 'Jura', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg-deepest);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.container { max-width: var(--cap); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--cap-narrow); margin: 0 auto; padding: 0 2rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-wrap {
  max-width: var(--cap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 66px; width: auto; }

/* Nav Links */
.header-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.header-menu a:hover { color: var(--orange); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.nav-dropdown-toggle:hover { color: var(--orange); }

.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform 0.3s;
}

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--orange-border);
  border-radius: 6px;
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--orange-glow);
  color: var(--orange);
  padding-left: 1.75rem;
}

/* Join / CTA Button in Nav */
.join-header-btn {
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--orange) !important;
  border: 2px solid var(--orange);
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s;
}

.join-header-btn:hover {
  background: var(--orange);
  color: #000 !important;
}

/* Vote Link */
.vote-link {
  color: var(--orange) !important;
  font-weight: 700;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  gap: 5px;
}

/* Close button – hidden on desktop, shown in mobile breakpoint */
.close-menu { display: none; }

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

.menu-overlay.open { display: block; }

/* =========================================================
   HERO – Concept 21 Side-by-Side
   ========================================================= */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  align-items: center;
}

.hero-content {
  padding: 4rem;
  max-width: 650px;
  margin-left: auto;
}

.hero-label {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-h1 span { color: var(--orange); }

.hero-p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* Hero Inline Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.3rem;
}

/* Shared Buttons */
.btn-solid {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: var(--orange);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
  text-align: center;
}

.btn-solid:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.btn-outline-dark {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-subtle);
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
  text-align: center;
}

.btn-outline-dark:hover { border-color: var(--text-primary); }

/* Hero Visual (right pane) */
.hero-visual {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(255, 102, 0, 0.15);
}

.hero-slider {
  position: absolute;
  inset: 3px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tagline-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  padding: 3rem 2.5rem 2rem;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 10;
}

.hero-tagline-overlay.active { opacity: 1; }

.hero-tagline-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--orange);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* =========================================================
   FEATURE ROWS (Homepage alternating sections)
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

/* Checkerboard: applied per-pane */
.pane-tinted { background: rgba(199, 199, 199, 0.12) !important; }
.pane-dark { background: #000 !important; }

.feature-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Content in LEFT cell: pad left to push text toward center */
.feature-content:first-child { padding-left: max(4rem, calc(100% - 520px)); }

/* Content in RIGHT cell: pad right to push text toward center */
.feature-content:last-child { padding-right: max(4rem, calc(100% - 520px)); }

.feature-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--orange-glow);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--orange-border);
}

.feature-h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.feature-link {
  color: var(--orange);
  font-weight: 600;
  font-size: 1rem;
  transition: text-decoration 0.2s;
}

.feature-link:hover { text-decoration: underline; }

.feature-visual {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   CALENDAR (Homepage schedule section)
   ========================================================= */
.cal-pane {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cal-title {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1rem;
}

.cal-month {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cal-nav {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
}

.cal-nav:hover { border-color: var(--orange); color: var(--orange); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  width: 100%;
  max-width: 420px;
}

.cal-dow {
  text-align: center;
  font-size: 0.55rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 0 0.6rem;
  font-weight: 700;
}

.cal-day {
  text-align: center;
  padding: 0.3rem 0.15rem;
  font-size: 0.85rem;
  color: #444;
  position: relative;
  cursor: default;
  transition: background 0.15s;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day.in-month { color: #999; }
.cal-day.today .day-num { color: var(--text-primary); font-weight: 700; }
.cal-day.has-event { cursor: pointer; }
.cal-day.has-event .day-num { color: var(--text-primary); }
.cal-day.has-event:hover .day-ring-wrap { transform: scale(1.1); transition: transform 0.15s; }

.cal-day.is-next .day-ring-wrap::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,102,0,0.25);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.day-ring-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-num {
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  line-height: 1;
}

.day-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.day-ring.ring-0 { width: 34px; height: 34px; border-width: 2.5px; }
.day-ring.ring-outer { width: 38px; height: 38px; border-width: 2px; }
.day-ring.ring-inner { width: 28px; height: 28px; border-width: 2px; }
.day-ring.ring-out3 { width: 38px; height: 38px; border-width: 2px; }
.day-ring.ring-mid3 { width: 30px; height: 30px; border-width: 2px; }
.day-ring.ring-in3 { width: 22px; height: 22px; border-width: 2px; }

/* Calendar legend */
.cal-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cal-legend-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  flex-shrink: 0;
}

/* Calendar detail pane (right side) */
.cal-detail-pane {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
}

.cal-detail-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--orange-glow);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid var(--orange-border);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

.cal-detail-track {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cal-detail-info {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.cal-detail-divider {
  width: 60px;
  border-top: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}

.cal-detail-date {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cal-detail-time {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}

.cal-detail-link {
  margin-top: 1.75rem;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Multi-event cards */
.cal-event-card {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  border-left: 3px solid;
  background: rgba(255,255,255,0.03);
}

.cal-event-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.cal-event-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   RESULTS & STANDINGS (Homepage – Concept E)
   ========================================================= */

/* Shared */
.results-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.results-link {
  margin-top: 1.75rem;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  transition: text-decoration 0.2s;
  display: inline-block;
}

.results-link:hover { text-decoration: underline; }

/* LEFT: Winner Spotlight */
.results-winner-pane {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.results-winner-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--orange-glow);
  border: 2.5px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.results-winner-circle span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
}

.results-winner-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.results-winner-track {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  font-style: italic;
}

.results-winner-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.results-winner-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.results-badge {
  padding: 0.25rem 0.65rem;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid;
}

.results-winner-stats {
  display: flex;
  gap: 2rem;
}

.results-winner-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.results-stat-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.results-stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* RIGHT: Standings Bars */
.results-standings-pane {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.results-standings-season {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.results-standings-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.results-bars {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.results-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.results-bar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-bar-pos {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 1.1rem;
  color: var(--text-dim);
}

.results-bar-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.results-bar-pts {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.results-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.results-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* =========================================================
   WORLD MAP (Homepage track map section)
   ========================================================= */
.map-pane {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.map-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.map-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.map-zoom-out {
  font-size: 0.7rem;
  color: var(--orange);
  cursor: pointer;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  background: none;
  border: 1px solid var(--orange-border);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-zoom-out.visible { opacity: 1; pointer-events: auto; }
.map-zoom-out:hover { background: rgba(255, 102, 0, 0.1); }

.map-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
}

.map-container svg { width: 100%; height: auto; display: block; }

.pin-label {
  font-family: var(--font-display);
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.3s;
}

.map-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legend-dot-done { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.legend-dot-upcoming { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255, 102, 0, 0.5); }

.pin-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 102, 0, 0.35);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  transform: translate(-50%, -120%);
}

.pin-tooltip.visible { opacity: 1; }
.pin-tooltip-track { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.pin-tooltip-meta { color: var(--text-muted); margin-bottom: 2px; }
.pin-tooltip-winner { font-weight: 600; }

/* Track list pane */
.tracks-pane {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tracks-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.tracks-list {
  display: flex;
  flex-direction: column;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.track-row:hover { background: rgba(255, 255, 255, 0.04); }
.track-row.active { background: rgba(255, 102, 0, 0.08); }

.track-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.track-dot.done { background: var(--orange); }
.track-dot.upcoming { border: 1.5px solid rgba(255, 102, 0, 0.45); }

.track-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.track-country {
  font-size: 0.65rem;
  color: var(--text-dim);
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.track-winner {
  font-size: 0.7rem;
  color: var(--orange);
  font-weight: 600;
  min-width: 85px;
  text-align: right;
}

.track-date {
  font-size: 0.7rem;
  color: var(--text-dim);
  min-width: 85px;
  text-align: right;
}

.track-row.upcoming-row { opacity: 0.4; }
.track-row.upcoming-row:hover, .track-row.upcoming-row.active { opacity: 0.75; }

.race-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  margin: 0;
  background: transparent;
  height: auto;
}

.race-pane-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  padding: 3rem 2.5rem;
  background: inherit;
  transition: background 0.3s;
}

.race-pane-link:hover {
  background: rgba(255, 102, 0, 0.08);
}

.race-pane-today {
  background: rgba(255, 102, 0, 0.03);
}

.race-pane-season {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.75rem;
}

.race-pane-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background: var(--orange-glow);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid var(--orange-border);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.race-pane-badge.today {
  background: linear-gradient(135deg, var(--orange) 0%, #FF4500 100%);
  color: #fff;
  border: none;
}

.race-pane-track {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.race-pane-detail {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.race-pane-divider {
  width: 60px;
  border-top: 1px solid var(--border-card);
  margin: 1.5rem auto;
}

.race-pane-today .race-pane-divider {
  border-color: var(--orange-border);
}

.race-pane-date {
  color: var(--orange);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.race-pane-time {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Countdown Timer */
.race-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
  width: 100%;
  max-width: 320px;
}

.countdown-unit { text-align: center; min-width: 40px; }

.countdown-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.countdown-sep {
  color: rgba(255, 255, 255, 0.12);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  margin-top: -0.6rem;
}

.view-more {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--orange);
  font-weight: 600;
  transition: text-decoration 0.2s;
}

.view-more:hover { text-decoration: underline; }

/* =========================================================
   PAGE HERO (Inner pages – schedule, about, etc.)
   ========================================================= */
.page-hero {
  text-align: center;
  padding: 4rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-dark);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-dark);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  max-width: var(--cap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-brand img { height: 40px; margin-bottom: 0.5rem; }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.footer-social a {
  color: var(--text-dim);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer-social a svg { width: 20px; height: 20px; fill: currentColor; }
.footer-social a.discord:hover { color: var(--discord); }
.footer-social a.twitch:hover { color: var(--twitch); }
.footer-social a.youtube:hover { color: var(--youtube); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 968px) {
  .hamburger { display: flex; }

  .header-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 5rem 0 2rem;
    gap: 0;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-subtle);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 999;
  }

  .header-menu.open { right: 0; }

  .close-menu {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
  }

  .close-menu:hover { color: var(--orange); }

  .header-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    margin: 0;
  }

  /* Mobile Dropdown */
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-toggle {
    padding: 0.85rem 1.5rem;
    text-align: left;
    font-size: 1.05rem;
  }

  .dropdown-arrow { display: none; }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    padding: 0;
  }

  .nav-dropdown-menu.visible { display: block; }

  .nav-dropdown-menu a {
    padding: 0.6rem 1.5rem 0.6rem 2.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .nav-dropdown-menu a:hover { padding-left: 2.5rem; }

  .join-header-btn {
    margin: 0.5rem 1.5rem;
    text-align: center;
  }

  /* Hero */
  .hero-row { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 3rem 1.5rem; max-width: 100%; margin: 0; }
  .hero-h1 { font-size: 2.5rem; }
  .hero-visual { height: 350px; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

  /* Features */
  .feature-row { grid-template-columns: 1fr; }
  .feature-content { padding: 2.5rem 1.5rem; margin: 0; }
  .feature-content:first-child,
  .feature-content:last-child { padding: 2.5rem 1.5rem; }
  .feature-visual { height: 280px; }
  .feature-h2 { font-size: 1.8rem; }

  /* Calendar */
  .cal-pane { padding: 1.5rem; }
  .cal-detail-pane { padding: 2rem 1.5rem; }
  .cal-detail-track { font-size: 1.5rem; }

  /* Race pane */
  .race-pane-link { padding: 2rem 1.5rem; }
  .race-pane-track { font-size: 1.5rem; }

  /* Results & Standings */
  .results-winner-pane,
  .results-standings-pane { padding: 2rem 1.5rem; }
  .results-winner-name { font-size: 1.5rem; }
  .results-winner-circle { width: 80px; height: 80px; }
  .results-winner-circle span { font-size: 1.8rem; }
  .results-standings-season { font-size: 1.1rem; }

  /* World Map */
  .map-pane { padding: 2rem 1.5rem; }
  .tracks-pane { padding: 2rem 1.5rem; }
  .map-title { font-size: 1.1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero-content { padding: 2rem 1.25rem; }
  .hero-h1 { font-size: 2rem; }
  .hero-p { font-size: 1rem; }
  .hero-visual { height: 280px; }
  .hero-tagline-text { font-size: 1.2rem; }

  .feature-visual { height: 220px; }
  .feature-content { padding: 2rem 1.25rem; }
  .feature-content:first-child,
  .feature-content:last-child { padding: 2rem 1.25rem; }

  .hero-stats { gap: 1rem; }
  .hero-stat-value { font-size: 0.9rem; }

  .race-pane-link { padding: 1.5rem 1.25rem; }
  .race-pane-track { font-size: 1.3rem; }

  /* Results & Standings */
  .results-winner-pane,
  .results-standings-pane { padding: 1.5rem 1.25rem; }
  .results-winner-circle { width: 64px; height: 64px; }
  .results-winner-circle span { font-size: 1.4rem; }
  .results-winner-name { font-size: 1.2rem; }
  .results-winner-stats { gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
  .results-stat-num { font-size: 1rem; }
  .results-winner-track { font-size: 0.8rem; }
  .results-winner-meta { font-size: 0.75rem; }
  .results-winner-badges { gap: 0.35rem; }
  .results-badge { font-size: 0.55rem; padding: 0.2rem 0.5rem; }
  .results-bar-name { font-size: 0.75rem; }
  .results-bar-pts { font-size: 0.75rem; }
  .results-bar-pos { font-size: 0.8rem; }

  /* World Map */
  .map-pane { padding: 1.5rem 1rem; }
  .tracks-pane { padding: 1.5rem 1rem; }
  .track-country { display: none; }
  .track-winner, .track-date { min-width: 70px; font-size: 0.65rem; }

  .footer-grid { grid-template-columns: 1fr; }

  .page-hero { padding: 3rem 1.25rem 2rem; }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 400px) {
  .results-winner-stats { gap: 0.75rem; }
  .results-stat-num { font-size: 0.9rem; }
  .results-stat-label { font-size: 0.55rem; }
  .results-winner-circle { width: 56px; height: 56px; }
  .results-winner-circle span { font-size: 1.2rem; }
  .results-winner-name { font-size: 1.1rem; }
  .cal-pane { padding: 1rem; }
  .cal-grid { max-width: 100%; }
}
