/* =============================================
   TIMELINE.CSS - Green Park Stadium Portal
   Enterprise timeline page styles
   ============================================= */

/* =============================================
   HERO SECTION
   ============================================= */

.tl-hero {
  background: linear-gradient(-45deg, #1E3A8A, #1B5E20, #0F172A, #0EA5E9);
  background-size: 400% 400%;
  animation: tlGradientBG 15s ease infinite;
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

@keyframes tlGradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tl-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(245,158,11,0.1) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 80% 30%, rgba(30, 58, 138, 0.2) 0%, transparent 60%);
}

.tl-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.tl-hero > .container {
  z-index: 2;
  position: relative;
}

.tl-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  color: var(--saffron-gold);
  margin-bottom: 1.5rem;
}

.tl-hero-label {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.tl-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.tl-glitch {
  position: relative;
  color: white;
}

.tl-hero-sep {
  margin: 0 0.5rem;
  color: var(--saffron-gold);
}

.tl-hero-sub {
  color: var(--saffron-gold);
}

.tl-hero-desc {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.6;
}

/* =============================================
   FILTER BAR
   ============================================= */

.tl-filter-bar {
  background: white;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.tl-filter-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 10px 20px;
  border: 2px solid #E2E8F0;
  background: white;
  color: var(--dark-bg);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tl-filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.tl-filter-divider {
  width: 1px;
  height: 30px;
  background: #E2E8F0;
  margin: 0 1rem;
}

.tl-count-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
}

/* =============================================
   STATS BAR
   ============================================= */

.tl-stats-bar {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2744 100%);
  padding: 2rem 0;
}

.tl-stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.tl-stat-item:last-child {
  border-right: none;
}

.tl-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--saffron-gold);
  margin-bottom: 0.25rem;
}

.tl-stat-lbl {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   YEAR NAVIGATION
   ============================================= */

.tl-yearnav {
  background: #F8FAFC;
  padding: 1rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.tl-year-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border: none;
  background: white;
  color: var(--dark-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tl-year-btn:hover {
  background: var(--primary-color);
  color: white;
}

.tl-year-btn.active {
  background: var(--primary-color);
  color: white;
}

/* =============================================
   TIMELINE BODY
   ============================================= */

.tl-body {
  background: #F8FAFC;
}

.tl-col {
  min-height: 400px;
}

/* =============================================
   TIMELINE SPINE
   ============================================= */

.tl-spine-col {
  position: relative;
}

.tl-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--primary-color), var(--dark-green));
}

.tl-spine-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, var(--saffron-gold), var(--primary-color), var(--dark-green));
}

.tl-spine-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--saffron-gold);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
}

/* =============================================
   TIMELINE CARDS
   ============================================= */

.tl-card {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tl-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-card-left {
  padding-right: 3rem;
}

.tl-card-right {
  padding-left: 3rem;
}

.tl-card-inner {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.tl-card:hover .tl-card-inner {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.tl-card-topbar {
  height: 5px;
  background: var(--fc, var(--primary-color));
}

.tl-card-body {
  padding: 1.5rem;
}

.tl-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--fc-glow, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tl-card:hover .tl-card-glow {
  opacity: 1;
}

.tl-card-connector {
  position: absolute;
  top: 30px;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--fc, var(--primary-color)), transparent);
}

.tl-card-left .tl-card-connector {
  right: 0;
  background: linear-gradient(270deg, var(--fc, var(--primary-color)), transparent);
}

.tl-card-right .tl-card-connector {
  left: 0;
}

/* Card Meta */
.tl-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tl-card-format {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 50px;
  color: white;
}

.tl-card-year {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--dark-bg);
}

/* Card Matchup */
.tl-card-matchup {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tl-card-team1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.tl-card-team2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark-bg);
}

.tl-card-vs {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Card Result */
.tl-card-result {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.tl-card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.tl-card-comp {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.tl-card-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =============================================
   FIRST-CLASS SECTION
   ============================================= */

.tl-fc-section {
  border-top: 2px solid #E2E8F0;
}

.tl-fc-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--dark-bg);
  border-radius: 50%;
  color: white;
  margin-bottom: 1rem;
}

.tl-fc-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.tl-fc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.tl-fc-card-top {
  height: 5px;
  background: var(--fc, var(--dark-bg));
}

.tl-fc-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--dark-bg);
  color: white;
  padding: 4px 10px;
  border-radius: 50px;
}

.tl-fc-year {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.tl-fc-result {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-color);
}

.tl-fc-comp {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =============================================
   CTA SECTION
   ============================================= */

.tl-cta {
  background: white;
  padding-top: 3rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991.98px) {
  .tl-card-left,
  .tl-card-right {
    padding: 0 1rem;
  }

  .tl-card-connector {
    display: none;
  }

  .tl-spine-col {
    display: none !important;
  }

  .tl-col {
    padding: 0;
  }

  .tl-stat-num {
    font-size: 1.5rem;
  }

  .tl-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 575.98px) {
  .tl-filter-btn {
    padding: 8px 14px;
    font-size: 0.7rem;
  }

  .tl-stat-item {
    padding: 0.5rem;
  }
}