/* Timeline component styles */
.timeline-wrapper {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-primary);
  padding: 20px 0;
}

.timeline-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.timeline-title {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.timeline-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  padding-top: 40px;
}

.timeline-marker {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 40;
  width: 80px;
  flex-shrink: 0;
}

.timeline-dot {
  position: absolute;
  left: 36px;
  top: 40px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 2px solid var(--text-secondary);
  z-index: 2;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
}

.timeline-content {
  position: relative;
  padding-left: 40px;
  width: 100%;
}

.timeline-details {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-details p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.timeline-details ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.timeline-details li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.timeline-bar {
  position: absolute;
  left: 48px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--border-color) 10%, var(--border-color) 90%, transparent 100%);
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, #8b5cf6, #3b82f6, transparent);
  border-radius: 2px;
}

/* Responsive styles */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .timeline-header {
    margin-bottom: 60px;
  }
  
  .timeline-item {
    padding-top: 80px;
  }
  
  .timeline-marker {
    top: 120px;
    width: 160px;
  }
  
  .timeline-dot {
    left: 58px;
    top: 80px;
  }
  
  .timeline-year {
    font-size: 2.5rem;
    margin-right: 200px;
  }
  
  .timeline-content {
    padding-left: 80px;
  }
  
  .timeline-bar {
    left: 88px;
  }
  
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

@media (min-width: 1024px) {
  .timeline-header {
    padding: 0 40px;
  }
  
  .timeline-container {
    padding: 0 40px 60px;
  }
  
  .timeline-item {
    padding-top: 120px;
  }
  
  .timeline-marker {
    top: 140px;
    width: 200px;
  }
  
  .timeline-content {
    padding-left: 120px;
  }
  
  .timeline-bar {
    left: 108px;
  }
}

/* Dark theme consistency */
.timeline-wrapper {
  background-color: var(--bg-primary);
}

.timeline-title,
.timeline-year {
  color: var(--text-primary);
}

.timeline-subtitle,
.timeline-details,
.timeline-details p,
.timeline-details li {
  color: var(--text-secondary);
}

.timeline-dot {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
}

.timeline-bar {
  background: linear-gradient(to bottom, transparent 0%, var(--border-color) 10%, var(--border-color) 90%, transparent 100%);
}