/* =====================================================
   TRACK & STADIUM - Racing & Sports Game Reviews
   Visual Language: Diagonal Lines, Tempo Indicators, Stat Blocks
   ===================================================== */

/* === CSS Variables === */
:root {
  /* Primary Palette - Racing */
  --racing-red: #E63946;
  --racing-dark: #1D1E2C;
  --racing-accent: #FFB703;
  --racing-asphalt: #2B2D42;
  --racing-speed: #00F5D4;
  
  /* Primary Palette - Sports */
  --sports-green: #2D6A4F;
  --sports-field: #40916C;
  --sports-gold: #D4A418;
  --sports-court: #3A5A40;
  
  /* Neutrals */
  --bg-dark: #0D0D12;
  --bg-card: #16171F;
  --bg-elevated: #1E1F2B;
  --text-primary: #F8F9FA;
  --text-secondary: #ADB5BD;
  --text-muted: #6C757D;
  --border-subtle: rgba(255,255,255,0.08);
  --border-accent: rgba(255,255,255,0.15);
  
  /* Tempo Indicators */
  --tempo-high: #00F5D4;
  --tempo-medium: #FFB703;
  --tempo-low: #E63946;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Titillium Web', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Diagonal angle */
  --diagonal-angle: -4deg;
}

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

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

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

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 50px,
      rgba(255,255,255,0.01) 50px,
      rgba(255,255,255,0.01) 51px
    ),
    radial-gradient(ellipse at 20% 0%, rgba(230,57,70,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(45,106,79,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.text-accent { color: var(--racing-accent); }
.text-racing { color: var(--racing-red); }
.text-sports { color: var(--sports-green); }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding: var(--space-3xl) 0;
}

.section--racing {
  position: relative;
}

.section--racing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230,57,70,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.section--sports {
  position: relative;
}

.section--sports::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45,106,79,0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,18,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--racing-red) 0%, var(--sports-green) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  transform: skewX(var(--diagonal-angle));
}

.logo__icon span {
  transform: skewX(4deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-md) var(--space-sm);
  position: relative;
  font-size: 1.0625rem;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--racing-accent);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, var(--racing-red) 0%, transparent 50%);
  opacity: 0.05;
  transform: rotate(-15deg);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, var(--sports-green) 0%, transparent 50%);
  opacity: 0.05;
  transform: rotate(-15deg);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-elevated);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--racing-accent);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--border-subtle);
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title span {
  background: linear-gradient(90deg, var(--racing-red), var(--racing-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 550px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--racing-red) 0%, #c1121f 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(230,57,70,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(230,57,70,0.4);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}

.btn--secondary:hover {
  background: var(--bg-card);
  border-color: var(--racing-accent);
}

.btn--sports {
  background: linear-gradient(135deg, var(--sports-green) 0%, var(--sports-court) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(45,106,79,0.3);
}

.btn--sports:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(45,106,79,0.4);
}

/* === Section Headers === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section-header__title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-header__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  transform: skewX(var(--diagonal-angle));
}

.section-header__icon--racing {
  border-left: 3px solid var(--racing-red);
}

.section-header__icon--sports {
  border-left: 3px solid var(--sports-green);
}

/* === Game Cards - Racing Grid (Dynamic) === */
.racing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--racing-red), var(--racing-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-accent);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card:hover .game-card__image img {
  transform: scale(1.1);
}

.game-card__image img {
  transition: transform var(--transition-slow);
}

.game-card--sports::before {
  background: linear-gradient(90deg, var(--sports-green), var(--sports-gold));
}

.game-card__image {
  position: relative;
  height: 180px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__platform {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0,0,0,0.7);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  z-index: 2;
}

.game-card:hover .game-card__platform {
  background: rgba(0,0,0,0.9);
  transform: scale(1.05);
}

.game-card__body {
  padding: var(--space-lg);
  transition: background var(--transition-base);
}

.game-card:hover .game-card__body {
  background: var(--bg-elevated);
}

.game-card__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--racing-accent);
  margin-bottom: var(--space-sm);
}

.game-card--sports .game-card__category {
  color: var(--sports-green);
}

.game-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-base);
}

.game-card:hover .game-card__title {
  color: var(--racing-accent);
}

.game-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Tempo Indicator === */
.tempo-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.tempo-indicator__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tempo-indicator__bar {
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.tempo-indicator__fill {
  height: 100%;
  border-radius: 2px;
  transition: width var(--transition-slow);
}

.tempo-indicator__fill--high {
  background: linear-gradient(90deg, var(--tempo-high), var(--racing-accent));
}

.tempo-indicator__fill--medium {
  background: linear-gradient(90deg, var(--tempo-medium), var(--racing-red));
}

.tempo-indicator__fill--low {
  background: var(--tempo-low);
}

.tempo-indicator__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* === Sports Table Layout === */
.sports-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sports-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  align-items: center;
  transition: all var(--transition-base);
}

.sports-row:hover {
  border-color: var(--sports-green);
  background: var(--bg-elevated);
}

.sports-row__image {
  width: 120px;
  height: 80px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sports-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sports-row__content {
  flex: 1;
}

.sports-row__category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--sports-green);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.sports-row__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.sports-row__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.sports-row__stats {
  display: flex;
  gap: var(--space-lg);
}

.stat-block {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.stat-block__value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--racing-accent);
}

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

/* === Featured Review Card === */
.featured-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2xl);
}

.featured-review__image {
  min-height: 400px;
  background: var(--bg-elevated);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-review__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-review__badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  background: var(--racing-accent);
  color: var(--bg-dark);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.featured-review__content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-review__category {
  color: var(--racing-red);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.featured-review__title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.featured-review__excerpt {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.featured-review__stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
}

/* === Filters === */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--border-subtle);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-group__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.filter-group select,
.filter-group input {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  min-width: 150px;
  cursor: pointer;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--racing-accent);
}

/* === Guide Cards === */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.guide-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--racing-accent);
  transition: height var(--transition-base);
}

.guide-card:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.guide-card:hover::before {
  height: 100%;
}

.guide-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  border-left: 3px solid var(--racing-accent);
}

.guide-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.guide-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* === Info Blocks === */
.info-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
}

.info-block--highlight {
  border-left: 4px solid var(--racing-accent);
}

.info-block__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.info-block__content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-block__content p {
  margin-bottom: var(--space-md);
}

.info-block__content ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.info-block__content li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.info-block__content li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--racing-accent);
  font-weight: bold;
}

/* === Scoring Criteria === */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.criteria-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.criteria-card__weight {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--racing-accent);
  margin-bottom: var(--space-sm);
}

.criteria-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.criteria-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* === Forms === */
.form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-label--required::after {
  content: ' *';
  color: var(--racing-red);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--racing-accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--racing-accent);
}

.form-error {
  color: var(--racing-red);
  font-size: 0.75rem;
  margin-top: var(--space-xs);
}

/* === FAQ Accordion === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-fast);
}

.faq-item__question:hover {
  background: var(--bg-elevated);
}

.faq-item__icon {
  font-size: 1.25rem;
  transition: transform var(--transition-base);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  display: none;
}

.faq-item--open .faq-item__answer {
  display: block;
}

/* === Footer === */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand .logo {
  margin-bottom: var(--space-md);
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--racing-accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__legal a:hover {
  color: var(--racing-accent);
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  z-index: 9999;
  display: none;
}

.cookie-banner--visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner__text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.cookie-banner__text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.cookie-banner__options {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.cookie-option input {
  accent-color: var(--racing-accent);
}

.cookie-banner__buttons {
  display: flex;
  gap: var(--space-md);
}

.cookie-banner .btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
}

/* === Toast Notification === */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 10000;
  transform: translateX(150%);
  transition: transform var(--transition-base);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.toast--visible {
  transform: translateX(0);
}

.toast--success {
  border-color: var(--sports-green);
}

.toast--success .toast__icon {
  color: var(--sports-green);
}

.toast--error {
  border-color: var(--racing-red);
}

.toast--error .toast__icon {
  color: var(--racing-red);
}

.toast__icon {
  font-size: 1.5rem;
}

.toast__message {
  font-size: 0.875rem;
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  font-size: 1.25rem;
  line-height: 1;
}

/* === Breadcrumbs === */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumbs a:hover {
  color: var(--racing-accent);
}

.breadcrumbs__separator {
  color: var(--text-muted);
}

/* === Page Header === */
.page-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, transparent 100%);
  z-index: -1;
}

.page-header__title {
  margin-bottom: var(--space-md);
}

.page-header__desc {
  max-width: 600px;
  font-size: 1.125rem;
}

/* === Sitemap === */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
}

.sitemap-section__title {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--racing-accent);
}

.sitemap-section__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sitemap-section__links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.sitemap-section__links a:hover {
  color: var(--racing-accent);
  padding-left: var(--space-sm);
}

/* === Team Grid === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.team-member {
  text-align: center;
}

.team-member__avatar {
  width: 100px;
  height: 100px;
  background: var(--bg-elevated);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--racing-accent);
  border: 3px solid var(--border-subtle);
}

.team-member__name {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.team-member__role {
  font-size: 0.875rem;
  color: var(--racing-accent);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .featured-review {
    grid-template-columns: 1fr;
  }
  
  .featured-review__image {
    min-height: 250px;
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .sports-row {
    grid-template-columns: 1fr;
  }
  
  .sports-row__image {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .nav__list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-2xl);
    gap: var(--space-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }
  
  .nav__list--open {
    transform: translateX(0);
  }
  
  .nav__link {
    font-size: 1.5rem;
    padding: var(--space-md) 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    min-height: 50vh;
    text-align: center;
  }
  
  .hero__content {
    margin: 0 auto;
  }
  
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-group select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .btn {
    width: 100%;
  }
  
  .game-card {
    margin: 0 calc(-1 * var(--space-md));
    border-radius: 0;
  }
  
  .racing-grid {
    grid-template-columns: 1fr;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

#games-grid .game-card {
  opacity: 0;
  animation: scaleIn 0.5s ease forwards;
}

#games-grid .game-card:nth-child(1) { animation-delay: 0.1s; }
#games-grid .game-card:nth-child(2) { animation-delay: 0.15s; }
#games-grid .game-card:nth-child(3) { animation-delay: 0.2s; }
#games-grid .game-card:nth-child(4) { animation-delay: 0.25s; }
#games-grid .game-card:nth-child(5) { animation-delay: 0.3s; }
#games-grid .game-card:nth-child(6) { animation-delay: 0.35s; }
#games-grid .game-card:nth-child(7) { animation-delay: 0.4s; }
#games-grid .game-card:nth-child(8) { animation-delay: 0.45s; }
#games-grid .game-card:nth-child(9) { animation-delay: 0.5s; }
#games-grid .game-card:nth-child(10) { animation-delay: 0.55s; }
#games-grid .game-card:nth-child(11) { animation-delay: 0.6s; }
#games-grid .game-card:nth-child(12) { animation-delay: 0.65s; }

/* === Accessibility === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--racing-accent);
  outline-offset: 2px;
}

/* === Print === */
@media print {
  .header,
  .footer,
  .cookie-banner {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
  }
}
