/* Modern Cybersecurity Design System - Inspired by Coda */

/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Import local fonts */
@import url('fonts.css');

/* Neon Cyber - Modern cyberpunk aesthetic */
:root {
  /* Neon accent colors */
  --neon-cyan: #00fff9;
  --neon-cyan-bright: #6afffa;
  --neon-cyan-dim: #00d9d4;
  --neon-magenta: #ff00ff;
  --neon-purple: #bd00ff;
  --neon-pink: #ff006e;

  /* Neutrals - Pure black base */
  --black: #000000;
  --gray-950: #0a0a0a;
  --gray-900: #121212;
  --gray-850: #1a1a1a;
  --gray-800: #1f1f1f;
  --gray-700: #2a2a2a;
  --gray-600: #3d3d3d;
  --gray-500: #525252;
  --gray-400: #737373;
  --gray-300: #a3a3a3;
  --gray-200: #d4d4d4;
  --gray-100: #e5e5e5;
  --white: #ffffff;

  /* Semantic colors */
  --bg-primary: var(--black);
  --bg-secondary: var(--gray-950);
  --bg-elevated: var(--gray-900);
  --bg-card: var(--gray-900);
  --border-subtle: var(--gray-850);
  --border-default: var(--gray-800);
  --border-accent: var(--neon-cyan);
  --text-primary: var(--white);
  --text-secondary: var(--gray-200);
  --text-muted: var(--gray-400);
  --text-accent: var(--neon-cyan);

  /* Neon glow shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.7), 0 4px 6px -4px rgb(0 0 0 / 0.7);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.8), 0 8px 10px -6px rgb(0 0 0 / 0.8);
  --shadow-glow-cyan: 0 0 20px rgb(0 255 249 / 0.4), 0 0 40px rgb(0 255 249 / 0.2);
  --shadow-glow-cyan-strong: 0 0 30px rgb(0 255 249 / 0.6), 0 0 60px rgb(0 255 249 / 0.3);
  --shadow-glow-purple: 0 0 20px rgb(189 0 255 / 0.4), 0 0 40px rgb(189 0 255 / 0.2);
  --shadow-glow-pink: 0 0 20px rgb(255 0 110 / 0.4), 0 0 40px rgb(255 0 110 / 0.2);

  /* Border radius - modern, rounded */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base typography and layout */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-weight: 400;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography scale */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

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

/* Layout utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

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

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

/* Navigation - Modern glassmorphism */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: var(--space-xs) 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: all var(--transition-base);
  filter: brightness(0) saturate(100%) invert(79%) sepia(95%) saturate(2551%) hue-rotate(142deg) brightness(102%) contrast(101%);
  /* This filter converts the logo to neon cyan color */
}

.logo:hover img {
  transform: scale(1.05);
  filter: brightness(0) saturate(100%) invert(79%) sepia(95%) saturate(2551%) hue-rotate(142deg) brightness(120%) contrast(101%) drop-shadow(0 0 10px rgba(0, 255, 249, 0.8));
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
  position: relative;
  padding: var(--space-xs) 0;
}

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

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

.nav-links a.active {
  color: var(--neon-cyan);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--neon-cyan);
}

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

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
  background: transparent;
  display: none;
  z-index: 999;
}

.nav-dropdown:hover::before {
  display: block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.625rem;
  opacity: 0.7;
  transition: all var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  opacity: 1;
  transform: translateY(2px);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  min-width: 220px;
  padding: var(--space-sm);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 255, 249, 0.1);
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-default);
  border-top: 1px solid var(--border-default);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
  animation: dropdownSlideIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--neon-cyan);
  border-radius: 0 2px 2px 0;
  transition: height var(--transition-base);
}

.nav-dropdown-menu a:hover::before,
.nav-dropdown-menu a.active::before {
  height: 60%;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 255, 249, 0.08);
  color: var(--text-primary);
  padding-left: 1.25rem;
}

.nav-dropdown-menu a.active {
  background: rgba(0, 255, 249, 0.12);
  color: var(--neon-cyan);
  font-weight: 600;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

/* Hero section - Neon glow */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 249, 0.08), transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 20%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(189, 0, 255, 0.06), transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.hero-compact {
  padding: 8rem 0 4rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--white) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 255, 249, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

/* Buttons - Neon cyber style */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--neon-cyan);
  color: var(--black);
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-cyan-bright), var(--neon-cyan));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan-strong);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 2px solid var(--border-accent);
  box-shadow: var(--shadow-sm), 0 0 10px rgba(0, 255, 249, 0.2);
}

.btn-secondary:hover {
  background: var(--gray-850);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

/* Cards - Neon border design */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-md);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 0.6;
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-default);
    flex-direction: column;
    gap: 0;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links a {
    padding: var(--space-md);
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .hero-compact {
    padding: 6rem 0 3rem;
  }
}

/* Utility classes */
.text-gradient-neon {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
}

.glow-cyan {
  box-shadow: var(--shadow-glow-cyan);
}

.glow-purple {
  box-shadow: var(--shadow-glow-purple);
}

.glow-pink {
  box-shadow: var(--shadow-glow-pink);
}

.neon-border {
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 249, 0.3), inset 0 0 10px rgba(0, 255, 249, 0.1);
}

/* Tip Calculator Styles */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.input-section,
.output-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-slow);
}

.input-section:hover,
.output-section:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  font-size: 0.9375rem;
  letter-spacing: -0.011em;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 249, 0.1), 0 0 20px rgba(0, 255, 249, 0.2);
}

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

.tip-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tip-btn {
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.tip-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 249, 0.3);
  transform: translateY(-2px);
}

.tip-btn.active {
  background: var(--neon-cyan);
  color: var(--black);
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkbox-container input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--neon-cyan);
  cursor: pointer;
}

.checkbox-container label {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  cursor: pointer;
  user-select: none;
}

.calculation-display {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.calc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.calc-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.calc-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.calc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: var(--space-sm) 0;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive adjustments for tip calculator */
@media (max-width: 968px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tip-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tip-buttons {
    grid-template-columns: 1fr;
  }
}

/* F1 Countdown Styles */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
  flex-wrap: wrap;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 100px;
}

.time-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 255, 249, 0.6);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.race-time-local {
  text-align: center;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.local-time-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.local-time-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

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

.countdown-status {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.race-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}

.race-info-card:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-cyan);
}

.race-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.race-flag {
  font-size: 4rem;
  line-height: 1;
}

.race-details {
  flex: 1;
}

.race-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.race-location {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.race-round {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.race-weekend-schedule,
.circuit-info {
  margin-bottom: var(--space-2xl);
}

.race-weekend-schedule:last-child,
.circuit-info:last-child {
  margin-bottom: 0;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.schedule-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.schedule-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 249, 0.2);
}

.schedule-day {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.session {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
}

.session.main-event {
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-sm);
  background: rgba(0, 255, 249, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--neon-cyan);
}

.circuit-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stat:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 249, 0.2);
  transform: translateY(-2px);
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 249, 0.4);
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.driver-standings,
.constructor-standings {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.standings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: auto;
}

.standings-header {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 90px;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--neon-cyan);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  min-width: max-content;
}

.standings-item {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 90px;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  min-width: max-content;
}

.standings-item:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.standings-item:hover {
  background: var(--gray-850);
  border-left: 3px solid var(--neon-cyan);
  padding-left: calc(var(--space-md) - 3px);
}

.standings-item .position {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--neon-cyan);
  text-align: center;
  white-space: nowrap;
}

.standings-item .driver-name,
.standings-item .constructor-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.standings-item .team {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.standings-item .wins {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

.standings-item .points {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-align: right;
  white-space: nowrap;
}

/* Special styling for podium positions */
.standings-item.position-1 .position {
  color: var(--neon-cyan-bright);
  text-shadow: 0 0 15px rgba(0, 255, 249, 0.8);
  font-size: 1.5rem;
}

.standings-item.position-1 {
  background: rgba(0, 255, 249, 0.05);
  border-left: 3px solid var(--neon-cyan-bright);
  padding-left: calc(var(--space-lg) - 3px);
}

.standings-item.position-2 .position,
.standings-item.position-3 .position {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 249, 0.5);
}

/* Responsive F1 styles */
@media (max-width: 768px) {
  .countdown-timer {
    gap: var(--space-lg);
  }

  .time-unit {
    min-width: 80px;
  }

  .time-value {
    font-size: 2.5rem;
  }

  .race-header {
    flex-direction: column;
    text-align: center;
  }

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

  .circuit-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Adjust standings table for mobile */
  .standings-header,
  .standings-item {
    grid-template-columns: 50px 1fr 80px;
    font-size: 0.875rem;
  }

  .standings-header .header-team,
  .standings-header .header-wins,
  .standings-item .team,
  .standings-item .wins {
    display: none;
  }

  .standings-item .driver-name,
  .standings-item .constructor-name {
    font-size: 0.9375rem;
  }
}
