/*
Theme Name: PitSideTV
Theme URI: https://pitsidetv.com
Author: PitSideTV
Author URI: https://pitsidetv.com
Description: Dark motorsport media theme for PitSideTV - where real racing meets sim racing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pitsidetv
*/

/* ═══════════════════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════════════════ */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-tertiary: #1A1A2E;
  --bg-elevated: #1E1E30;
  --accent-red: #E10600;
  --accent-red-dark: #B30500;
  --accent-red-glow: rgba(225, 6, 0, 0.15);
  --accent-cyan: #00B4D8;
  --accent-cyan-dark: #0090AA;
  --accent-cyan-glow: rgba(0, 180, 216, 0.15);
  --text-primary: #EAEAEA;
  --text-secondary: #8A8A9A;
  --text-muted: #555566;
  --border-color: #2A2A3A;
  --border-light: #3A3A4A;
  --success: #00C853;
  --warning: #FFB300;
  --danger: #FF3D00;
  --font-display: 'Rajdhani', 'Exo 2', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', 'Courier New', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
  --max-width: 1280px;
  --nav-height: 64px;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-red); text-decoration: none; transition: color var(--transition); }
a:hover { color: #FF4444; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

::selection { background: var(--accent-red); color: white; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding-top: calc(var(--nav-height) + 2rem);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   CARBON FIBRE TEXTURE
   ═══════════════════════════════════════════════════════ */
.carbon-texture {
  position: relative;
}
.carbon-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='3' height='3' fill='%23ffffff' fill-opacity='0.02'/%3E%3Crect x='3' y='3' width='3' height='3' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 1;
}
.carbon-texture > * { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
}

.nav-logo-text span {
  color: var(--accent-red);
}

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

.nav-links a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: var(--accent-red);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-social a {
  color: var(--text-muted);
  font-size: 1.125rem;
  transition: color var(--transition);
}
.nav-social a:hover { color: var(--text-primary); }

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
  overflow: hidden;
  padding: 4rem 1.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--accent-red-glow) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0, 180, 216, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero-title span { color: var(--accent-red); }

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent-red);
  margin: 0 auto 1.5rem;
}

/* ═══════════════════════════════════════════════════════
   LATEST BROADCAST SPOTLIGHT
   ═══════════════════════════════════════════════════════ */
.broadcast-spotlight {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.broadcast-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan));
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spotlight-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-red);
  background: var(--accent-red-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
}

.spotlight-track {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spotlight-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
}

.spotlight-stat {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.spotlight-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

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

.spotlight-stat-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.spotlight-stat--gold .spotlight-stat-value { color: #FFD700; }
.spotlight-stat--silver .spotlight-stat-value { color: #C0C0C0; }
.spotlight-stat--bronze .spotlight-stat-value { color: #CD7F32; }
.spotlight-stat--cyan .spotlight-stat-value { color: var(--accent-cyan); }

.spotlight-track-image {
  width: 100%;
  max-width: 200px;
  margin: 1rem auto 0;
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════
   FILTER TABS
   ═══════════════════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  position: relative;
  transition: all var(--transition);
}

.filter-tab:hover { color: var(--text-secondary); }

.filter-tab.active {
  color: var(--text-primary);
}
.filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-red);
}

.filter-tab[data-filter="real-world"].active::after { background: var(--accent-red); }
.filter-tab[data-filter="sim-racing"].active::after { background: var(--accent-cyan); }

/* ═══════════════════════════════════════════════════════
   CONTENT TAGS (REAL WORLD / SIM RACING)
   ═══════════════════════════════════════════════════════ */
.content-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  line-height: 1.4;
}

.content-tag--real {
  background: var(--accent-red);
  color: white;
}

.content-tag--sim {
  background: var(--accent-cyan);
  color: #0A0A0F;
}

.content-tag--crossover {
  background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan));
  color: white;
}

/* ═══════════════════════════════════════════════════════
   CONTENT CARDS
   ═══════════════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

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

.card:hover.card--real { box-shadow: 0 8px 32px rgba(225, 6, 0, 0.12); }
.card:hover.card--sim { box-shadow: 0 8px 32px rgba(0, 180, 216, 0.12); }

.card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: var(--bg-tertiary);
  overflow: hidden;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img { transform: scale(1.05); }

.card-image .content-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.card-image .card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(225, 6, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover .card-play-btn { opacity: 1; }
.card-play-btn svg { fill: white; width: 20px; height: 20px; margin-left: 2px; }

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-series {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color var(--transition);
}

.card:hover .card-title { color: var(--accent-red); }
.card--sim:hover .card-title { color: var(--accent-cyan); }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   DRIVER CARDS
   ═══════════════════════════════════════════════════════ */
.driver-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.driver-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.driver-card-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.driver-card-class {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.driver-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.driver-stat {
  padding: 0.5rem 0;
}

.driver-stat-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* ═══════════════════════════════════════════════════════
   SINGLE ARTICLE
   ═══════════════════════════════════════════════════════ */
.article-header {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.article-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.article-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.article-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-body p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.5rem; color: var(--text-secondary); }
.article-body h2 { color: var(--text-primary); margin: 2.5rem 0 1rem; }
.article-body h3 { color: var(--text-primary); margin: 2rem 0 0.75rem; }
.article-body img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent-red);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-body blockquote p { color: var(--text-primary); font-style: italic; margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════
   DRIVER PROFILE
   ═══════════════════════════════════════════════════════ */
.driver-profile-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.driver-profile-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.driver-profile-name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
}

.driver-profile-summary {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.driver-profile-stat {
  text-align: center;
}

.driver-profile-stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.driver-profile-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Race history table */
.race-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.race-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-color);
  text-align: left;
}

.race-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.race-table tr:hover td {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.race-table .pos-gain { color: var(--success); }
.race-table .pos-loss { color: var(--danger); }
.race-table .pos-same { color: var(--text-muted); }
.race-table .podium-row { border-left: 3px solid var(--accent-cyan); }
.race-table .dnf-row { opacity: 0.5; }

/* ═══════════════════════════════════════════════════════
   BROADCAST ARCHIVE
   ═══════════════════════════════════════════════════════ */
.broadcast-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.broadcast-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-elevated);
}

.broadcast-card-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.broadcast-card-track {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.broadcast-card-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.broadcast-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.broadcast-card-stat {
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
}
.broadcast-card-stat:last-child { border-right: none; }

/* ═══════════════════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════════════════ */
.search-bar {
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.875rem 1.25rem 0.875rem 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--accent-red); }

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer-social a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--accent-red); }

/* ═══════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.pagination a:hover { border-color: var(--accent-red); color: var(--text-primary); }
.pagination .current { background: var(--accent-red); color: white; border-color: var(--accent-red); }

/* ═══════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════ */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-section p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 767px) {
  :root { --nav-height: 56px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
  }
  .nav-toggle { display: block; }
  .nav-social { display: none; }

  .hero-title { font-size: 2.25rem; }
  .hero { min-height: 300px; padding: 3rem 1.5rem; }

  .card-grid { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr 1fr; }

  .article-title { font-size: 1.75rem; }
  .article-body { padding: 2rem 1rem; }

  .driver-profile-header .container { flex-direction: column; text-align: center; }
  .driver-profile-summary { justify-content: center; flex-wrap: wrap; }
  .driver-profile-name { font-size: 1.875rem; }

  .race-table { display: block; overflow-x: auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-red { color: var(--accent-red); }
.text-cyan { color: var(--accent-cyan); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }
.fade-in:nth-child(6) { animation-delay: 0.5s; }
