/* Timeline Page Styles */

.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.page-hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter Section */
.filter-section {
  padding: 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.filter-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

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

/* Timeline Full Section */
.timeline-full-section {
  padding: 4rem 2rem;
  background: var(--bg-primary);
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), var(--accent-bronze));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item-content {
  width: 45%;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  transition: all var(--transition-medium);
}

.timeline-item-content:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-hover);
}

.timeline-item:nth-child(odd) .timeline-item-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-item-content {
  margin-left: auto;
}

.timeline-item-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-item-content::before {
  right: -24px;
  border-left-color: var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-item-content::before {
  left: -24px;
  border-right-color: var(--card-bg);
}

.timeline-item-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--accent-gold);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  z-index: 2;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-item-dot {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

.timeline-item-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.timeline-item-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.timeline-item-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-item-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.timeline-item-category {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.timeline-item-region {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Timeline Navigation */
.timeline-nav-section {
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.timeline-periods {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.timeline-periods::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.period-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.period-dot {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 3px solid var(--border-color);
  border-radius: 50%;
  margin-bottom: 0.75rem;
  transition: all var(--transition-fast);
}

.period-marker:hover .period-dot,
.period-marker.active .period-dot {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

.period-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.period-marker:hover .period-label,
.period-marker.active .period-label {
  color: var(--text-primary);
}

.period-range {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }
  
  .timeline-item-content {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .timeline-item-content::before {
    display: none;
  }
  
  .timeline-item-dot {
    left: 20px;
  }
  
  .timeline-periods {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .timeline-periods::before {
    display: none;
  }
  
  .period-marker {
    flex: 1;
    min-width: 100px;
  }
}
