/* F1 Ticket Sales Website - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* CSS Variables for F1 Brand Colors */
:root {
  --f1-red: #E10600;
  --f1-dark-red: #C20000;
  --f1-black: #15151E;
  --f1-white: #FFFFFF;
  --f1-silver: #C8C8C8;
  --f1-dark-gray: #2A2A2A;
  --f1-light-gray: #F5F5F5;
  --gradient-primary: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
  --gradient-dark: linear-gradient(135deg, var(--f1-black) 0%, var(--f1-dark-gray) 100%);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.6;
  color: var(--f1-black);
  background-color: var(--f1-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--f1-black);
}

h3 {
  font-size: 1.8rem;
  color: var(--f1-red);
}

p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--f1-dark-gray);
}

/* Navigation */
.navbar {
  background: var(--gradient-dark) !important;
  padding: 1rem 0;
  box-shadow: var(--shadow-premium);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--f1-white) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.navbar-nav .nav-link {
  color: var(--f1-white) !important;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0.5rem;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link:hover {
  color: var(--f1-red) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(21, 21, 30, 0.7), rgba(21, 21, 30, 0.7)), url('../images/f1-hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--f1-white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--f1-silver);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--f1-white);
  opacity: 0.9;
}

/* Buttons */
.btn-f1-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--f1-white);
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.btn-f1-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(225, 6, 0, 0.4);
  color: var(--f1-white);
}

.btn-f1-secondary {
  background: transparent;
  border: 2px solid var(--f1-red);
  color: var(--f1-red);
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.btn-f1-secondary:hover {
  background: var(--f1-red);
  color: var(--f1-white);
  transform: translateY(-2px);
}

/* Race Cards */
.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.race-card {
  background: var(--f1-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
}

.race-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
}

.race-card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.race-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(225, 6, 0, 0.8), rgba(21, 21, 30, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.race-card:hover .race-card-overlay {
  opacity: 1;
}

.race-card-content {
  padding: 2rem;
}

.race-date {
  color: var(--f1-red);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.race-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--f1-black);
}

.race-location {
  color: var(--f1-dark-gray);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.price-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--f1-light-gray);
  border-radius: 10px;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 1rem;
}

.discounted-price {
  color: var(--f1-red);
  font-size: 1.5rem;
  font-weight: 700;
}

.discount-badge {
  background: var(--gradient-primary);
  color: var(--f1-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Individual Race Page Styles */
.race-hero {
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 80px;
}

.race-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 21, 30, 0.8), rgba(225, 6, 0, 0.6));
}

.race-hero-content {
  position: relative;
  z-index: 2;
  color: var(--f1-white);
  max-width: 800px;
}

.race-info-section {
  padding: 4rem 0;
  background: var(--f1-light-gray);
}

.info-card {
  background: var(--f1-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  border-left: 5px solid var(--f1-red);
}

.ticket-section {
  padding: 4rem 0;
  background: var(--f1-white);
}

.ticket-tier {
  background: var(--f1-white);
  border: 2px solid var(--f1-silver);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.ticket-tier:hover {
  border-color: var(--f1-red);
  box-shadow: var(--shadow-card);
}

.ticket-tier.selected {
  border-color: var(--f1-red);
  background: linear-gradient(45deg, rgba(225, 6, 0, 0.05), rgba(225, 6, 0, 0.02));
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: var(--f1-white);
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--f1-white);
  text-decoration: none;
  margin: 0 1rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--f1-red);
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .race-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .race-card {
    margin: 0 1rem;
  }
  
  .price-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .btn-f1-primary {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .race-card-content {
    padding: 1.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
}

/* Special Effects */
.speedline {
  position: relative;
  overflow: hidden;
}

.speedline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.speedline:hover::before {
  left: 100%;
}

/* Payment Section */
.payment-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--f1-light-gray);
  padding-top: 100px;
}

.payment-card {
  background: var(--f1-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  max-width: 600px;
  margin: 0 auto;
}