/* Schedule Page Styles - Premium Upgrade (Complete) */

/* Hero Section */
.schedule-hero {
  text-align: center;
  margin-bottom: 40px;
  padding: 80px 20px 60px;
  background: radial-gradient(circle at top center, rgba(225, 6, 0, 0.15) 0%, transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -1px;
}

.schedule-hero h1 span {
  background: linear-gradient(135deg, #ff4500, #e10600);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.schedule-hero p {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-inline: auto;
}

/* Filters */
.schedule-filters {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #e10600;
  border-color: #ff4500;
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 6, 0, 0.4);
}

/* Schedule Grid */
#schedule-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
  padding: 20px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Modern Race Card */
.race-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Accent Line */
.race-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #e10600, #ff8c00);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.race-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(225, 6, 0, 0.3);
  background: rgba(30, 30, 30, 0.8);
}

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

.race-card.past {
  opacity: 0.6;
  filter: grayscale(60%);
}

.race-card.past:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Card Header & Badges */
.race-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.race-round {
  background: rgba(225, 6, 0, 0.1);
  color: #ff4500;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(225, 6, 0, 0.2);
}

.race-badges {
  display: flex;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.sprint {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.badge.upcoming {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.past {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Info */
.race-info {
  margin-bottom: 28px;
}

.race-info h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.1;
}

.circuit-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.circuit-name { color: #e0e0e0; }
.circuit-location { color: #9ca3af; }
.icon { font-size: 1.1rem; }

/* Sessions Grid */
.sessions-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.session-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.session-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.session-card.primary {
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.08), rgba(255, 69, 0, 0.02));
  border-left: 4px solid #e10600;
}

.session-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-label {
  font-weight: 700;
  color: #d1d5db;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-card.primary .session-label {
  color: #ff4500;
}

.session-date {
  color: #9ca3af;
  font-size: 0.85rem;
}

.session-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  color: #fff;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hidden Class for Filters */
.hidden {
  display: none !important;
}

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

.race-card {
  animation: fadeInUp 0.5s ease forwards;
}


/* ==========================================================================
   RESTORED & UPGRADED: CTA & OVERVIEW SECTION 
   ========================================================================== */

/* CTA Container */
.schedule-cta {
  background: rgba(20, 20, 20, 0.6);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 60px auto 80px;
  max-width: 1400px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Subtle glow behind the CTA */
.schedule-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.cta-content p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Season Highlights (Stats) */
.season-highlights {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.highlight-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.highlight-stat:hover {
  transform: translateY(-5px);
}

.highlight-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.highlight-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ff4500;
  line-height: 1;
  text-shadow: 0 2px 15px rgba(225, 6, 0, 0.2);
}

.highlight-label {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* Quick Navigation Grid */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.quick-nav-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quick-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.quick-nav-card:hover::before {
  left: 100%;
}

.quick-nav-card:hover {
  transform: translateY(-8px);
  background: rgba(225, 6, 0, 0.05);
  border-color: #e10600;
  box-shadow: 0 10px 30px rgba(225, 6, 0, 0.3);
}

.nav-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(0, 0, 0, 0.4);
  height: 70px;
  width: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-nav-card:hover .nav-icon {
  transform: scale(1.1) rotate(8deg);
  background: rgba(225, 6, 0, 0.2);
  border-color: rgba(225, 6, 0, 0.4);
}

.quick-nav-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.quick-nav-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  #schedule-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .schedule-hero h1 { 
    font-size: 2.5rem; 
  }
  
  .schedule-cta {
    padding: 40px 20px;
    margin: 40px 20px;
  }

  .season-highlights {
    gap: 30px;
    flex-direction: column;
  }
  
  .highlight-value {
    font-size: 3rem;
  }
  
  .quick-nav-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* Premium Next Race Notice Banner */
.notice {
  max-width: 800px;
  margin: -20px auto 40px; /* Pulls it up closer to the hero section */
  padding: 20px 30px;
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.8), rgba(20, 20, 24, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(225, 6, 0, 0.15);
  position: relative;
  overflow: hidden;
}

/* Glowing left accent line */
.notice::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
}

.notice.show {
  display: flex; /* Uses flex to align the icon and text perfectly */
  animation: noticeSlideDown 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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