/* Additional styles for multi-page layout */

/* Le Mans Ultimate Official Style */

:root {
  --lmu-red: #E31E24;
  --lmu-dark-blue: #0a0e27;
  --lmu-blue: #1a1f3e;
  --lmu-purple: #2a1f3e;
  --accent-primary: #E31E24;
  --accent-secondary: #ff4444;
  --accent-gold: #ffd700;
  --bg-primary: #0a0e27;
  --bg-secondary: #141824;
  --bg-elevated: #1a1f3e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border: #2a2f4e;
  --border-subtle: #1a1f3e;
  --success: #00ff88;
  --warning: #ffaa00;
  --danger: #E31E24;
  --font-primary: 'Rajdhani', sans-serif;
}

body {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3e 50%, #2a1f3e 100%);
  background-attachment: fixed;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--lmu-red);
  background: rgba(227, 30, 36, 0.1);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--lmu-red);
  background: rgba(227, 30, 36, 0.15);
  border-color: var(--lmu-red);
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.4);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

/* Buttons */
.btn {
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--lmu-red);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(227, 30, 36, 0.6);
  transform: translateY(-2px);
  background: #ff2a30;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-primary);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  font-family: var(--font-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-actions .btn {
  flex: 1;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
  border-radius: 16px;
  border: 2px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lmu-red), #ff4444, transparent);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-primary);
  background: linear-gradient(90deg, var(--lmu-red), var(--text-primary), #ff4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-actions .btn {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(227, 30, 36, 0.3);
  border-color: var(--lmu-red);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  font-family: var(--font-primary);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.stat-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Driver Cards */
.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.driver-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.driver-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 217, 255, 0.2);
  border-color: var(--accent-primary);
}

.driver-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.driver-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 1.2rem;
}

.driver-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-primary);
}

.driver-class {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.driver-stat {
  display: flex;
  flex-direction: column;
}

.driver-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.driver-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-family: var(--font-primary);
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Filters */
.filters {
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* Mobile menu would go here */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .driver-grid {
    grid-template-columns: 1fr;
  }
}
