/* Championships Premium Styles */

/* --- List View (Index) Styles --- */
.page-hero {
  background: url('https://placehold.co/1920x600/101010/222.png?text=CHAMPIONSHIPS') center/cover;
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4rem;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), var(--bg-color));
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 4rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  background: linear-gradient(45deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3rem;
  padding-bottom: 5rem;
}

.champ-card {
  background: #151518;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a2a2e;
  transition: all 0.4s ease;
  position: relative;
}

.champ-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.champ-card-img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.champ-card:hover .champ-card-img {
  transform: scale(1.1);
}

.champ-card-body {
  padding: 2rem;
  position: relative;
  z-index: 2;
  background: #151518;
  margin-top: -20px;
  border-radius: 16px 16px 0 0;
}

.champ-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-style: italic;
}

.champ-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.c-badge {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  color: #aaa;
}

.btn-card {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-card:hover {
  background: var(--primary-color);
  color: #fff;
}

/* --- Detail View (Split Header) Styles --- */

/* Background overlay for atmosphere */
padding-bottom: 5rem;
background-color: var(--bg-color);
position: relative;
}

/* Background overlay for atmosphere */
.championship-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60vh;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.championship-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 10, 0.85) 0%, rgba(8, 8, 10, 1) 100%);
  backdrop-filter: blur(5px);
}

/* Header Grid */
.detail-header-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  padding-top: 5rem;
  margin-bottom: 4rem;
  align-items: center;
}

.header-content {
  color: white;
}

.header-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-badges {
  display: flex;
  gap: 15px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge i {
  color: var(--primary-color);
}

.header-price-card {
  background: rgba(255, 46, 46, 0.1);
  border: 1px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 2rem;
  min-width: 250px;
}

.price-display {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 5px;
}

.price-sub {
  color: #aaa;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  gap: 15px;
}

.btn-race {
  background: var(--primary-color);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(255, 46, 46, 0.4);
}

.btn-race:hover {
  background: #ff1a1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 46, 46, 0.6);
  color: #fff;
}

.poster-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s;
}

.poster-frame:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.poster-img {
  width: 100%;
  display: block;
}

/* Nav Tabs */
.champ-nav {
  position: sticky;
  top: 80px;
  /* Offset for main header */
  z-index: 100;
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a2e;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item a {
  display: block;
  padding: 1.5rem 0;
  color: #777;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-item a:hover,
.nav-item a.active {
  color: #fff;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 100%;
}

/* Content Sections */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-card {
  background: #151518;
  border: 1px solid #2a2a2e;
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 3rem;
  scroll-margin-top: 150px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #2a2a2e;
  padding-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #fff;
  text-transform: uppercase;
  font-style: italic;
}

.section-text {
  color: #bbb;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Stats inside About */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.mini-stats {
  background: #1e1e24;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #333;
}

.progress-wrap {
  margin: 1rem 0;
}

.prog-bar {
  background: #333;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.prog-fill {
  background: var(--primary-color);
  height: 100%;
}

/* Stages Timeline Style */
.stages-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.stage-box {
  background: #1e1e24;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
  transition: transform 0.3s;
}

.stage-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stage-visual {
  height: 150px;
  background: #000;
  position: relative;
}

.stage-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.stage-box:hover .stage-visual img {
  opacity: 1;
}

.stage-content {
  padding: 1.5rem;
}

.stage-date {
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.stage-content h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.stage-schedule {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: #888;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.schedule-row span {
  color: #ccc;
}

/* Pilots Grid Clean */
.grid-pilots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.pilot-unit {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.pilot-unit:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.pilot-av {
  width: 45px;
  height: 45px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ccc;
  border: 2px solid #555;
}

.pilot-det h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pilot-det p {
  color: #666;
  font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 900px) {
  .detail-header-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
  }

  .poster-frame {
    display: none;
    /* Hide poster on mobile to save space or move to bottom */
  }

  .header-badges,
  .header-actions {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 1rem;
    font-size: 0.8rem;
  }
}