/* ============================================
   TIMELINE PAGE STYLES
   ============================================ */

.section-padding {
  padding: var(--section-padding) 0;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 15, 26, 0.7), var(--bg-dark));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TIMELINE NAVIGATION
   ============================================ */
.timeline-nav {
  background: var(--primary);
  padding: 30px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.timeline-eras {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.era-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition-fast);
  min-width: 120px;
}

.era-link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.era-link.active {
  background: var(--accent);
  border-color: var(--accent);
}

.era-dot {
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.era-link.active .era-dot {
  background: var(--primary);
}

.era-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.era-link.active .era-name {
  color: var(--primary);
}

.era-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.era-link.active .era-date {
  color: var(--primary);
  opacity: 0.8;
}

/* ============================================
   ERA SECTIONS
   ============================================ */
.era-section {
  padding: 80px 0;
  position: relative;
}

.era-section:nth-child(odd) {
  background: var(--bg-dark);
}

.era-section:nth-child(even) {
  background: var(--primary);
}

.era-header {
  text-align: center;
  margin-bottom: 60px;
}

.era-title-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.era-period {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.era-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-light);
  margin-bottom: 15px;
}

.era-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================
   TIMELINE EVENTS
   ============================================ */
.timeline-events {
  position: relative;
}

.timeline-events .container {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--border);
  border-radius: 2px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: height 0.1s linear;
}

.event-card {
  position: relative;
  width: 45%;
  margin-bottom: 60px;
}

.event-card.left {
  margin-left: 0;
  margin-right: auto;
  padding-right: 40px;
}

.event-card.right {
  margin-left: auto;
  margin-right: 0;
  padding-left: 40px;
}

.event-marker {
  position: absolute;
  top: 20px;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.event-card.left .event-marker {
  right: -40px;
  transform: translateX(50%);
}

.event-card.right .event-marker {
  left: -40px;
  transform: translateX(-50%);
}

.event-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
}

.event-content {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-medium);
}

.event-content:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.event-image {
  height: 220px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-content:hover .event-image img {
  transform: scale(1.1);
}

.event-text {
  padding: 25px;
}

.event-text h3 {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.event-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.event-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* ============================================
   TIMELINE CTA
   ============================================ */
.timeline-cta {
  background: var(--bg-dark);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

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

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   NOTIFICATION
   ============================================ */
.notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
  transform: translateX(150%);
  transition: transform var(--transition-medium);
  z-index: 9999;
}

.notification.show {
  transform: translateX(0);
}

.notification i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .timeline-line {
    left: 30px;
  }
  
  .event-card {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
    padding-left: 30px !important;
    padding-right: 0 !important;
  }
  
  .event-card.left .event-marker,
  .event-card.right .event-marker {
    left: -30px;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 50vh;
    min-height: 350px;
  }
  
  .timeline-eras {
    gap: 10px;
  }
  
  .era-link {
    min-width: auto;
    padding: 10px 15px;
  }
  
  .era-name {
    font-size: 0.85rem;
  }
  
  .era-date {
    display: none;
  }
  
  .event-card {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    padding-left: 20px !important;
  }
  
  .event-marker {
    width: 60px;
    height: 60px;
  }
  
  .event-year {
    font-size: 0.7rem;
  }
  
  .event-image {
    height: 180px;
  }
  
  .event-text {
    padding: 20px;
  }
  
  .event-text h3 {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}
