/* ==============================================
   TIMELINE STYLES - Horizontal & Vertical
   ============================================== */

/* Horizontal Timeline (index.html) */
.timeline-horizontal {
  position: relative;
  padding: var(--space-xxl) 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.timeline-track {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  min-width: max-content;
  position: relative;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-neon-green) 0%,
    var(--color-neon-yellow) 50%,
    var(--color-neon-red) 100%
  );
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--color-neon-green);
}

.timeline-item {
  position: relative;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: var(--z-elevated);
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: var(--color-neon-green);
  border: 4px solid var(--color-bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-neon-green);
  position: relative;
  z-index: 2;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px var(--color-neon-green);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--color-neon-green);
  }
}

.timeline-content {
  margin-top: var(--space-md);
  text-align: center;
  background: rgba(10, 0, 51, 0.9);
  border: 2px solid var(--color-neon-green);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--glow-green);
}

.timeline-year {
  font-family: var(--font-retro);
  font-size: var(--size-lg);
  color: var(--color-neon-yellow);
  margin-bottom: var(--space-sm);
  text-shadow: var(--glow-yellow);
}

.timeline-title {
  font-family: var(--font-title);
  font-size: var(--size-sm);
  color: var(--color-neon-green);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.timeline-desc {
  font-size: var(--size-caption);
  color: var(--color-text-secondary);
  flex-grow: 1;
}

/* Vertical Timeline (timeline.html) */
.timeline-vertical {
  position: relative;
  max-width: var(--width-medium);
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--color-neon-green) 0%,
    var(--color-neon-yellow) 50%,
    var(--color-neon-red) 100%
  );
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--color-neon-green);
}

.timeline-entry {
  position: relative;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

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

.timeline-entry-content {
  flex: 1;
  background: rgba(10, 0, 51, 0.9);
  border: 2px solid var(--color-neon-green);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-medium);
}

.timeline-entry:nth-child(odd) .timeline-entry-content::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid var(--color-neon-green);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.timeline-entry:nth-child(even) .timeline-entry-content::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 12px solid var(--color-neon-green);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.timeline-entry-content:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg), var(--glow-green);
}

.timeline-entry-dot {
  width: 20px;
  height: 20px;
  background: var(--color-neon-yellow);
  border: 4px solid var(--color-bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-neon-yellow);
  flex-shrink: 0;
  z-index: var(--z-elevated);
  animation: pulse-dot-yellow 2s ease-in-out infinite;
}

@keyframes pulse-dot-yellow {
  0%, 100% {
    box-shadow: 0 0 20px var(--color-neon-yellow);
  }
  50% {
    box-shadow: 0 0 30px var(--color-neon-yellow);
  }
}

.timeline-entry-year {
  font-family: var(--font-retro);
  font-size: var(--size-md);
  color: var(--color-neon-yellow);
  text-shadow: var(--glow-yellow);
  margin-bottom: var(--space-xs);
}

.timeline-entry-title {
  font-family: var(--font-title);
  font-size: var(--size-sm);
  color: var(--color-neon-green);
  margin-bottom: var(--space-sm);
}

.timeline-entry-desc {
  font-size: var(--size-caption);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Timeline Filters */
.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--size-caption);
  padding: var(--space-xs) var(--space-md);
  border: 2px solid var(--color-text-muted);
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--color-neon-green);
  color: var(--color-neon-green);
  background: rgba(0, 255, 153, 0.1);
  box-shadow: 0 0 10px var(--color-neon-green);
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-vertical::before {
    left: 20px;
  }
  
  .timeline-entry,
  .timeline-entry:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }
  
  .timeline-entry-dot {
    position: absolute;
    left: 12px;
  }
  
  .timeline-entry-content::after,
  .timeline-entry:nth-child(even) .timeline-entry-content::after {
    left: -12px;
    right: auto;
    border-right: 12px solid var(--color-neon-green);
    border-left: none;
  }
  
  .timeline-horizontal {
    padding: var(--space-lg) 0;
  }
  
  .timeline-track {
    gap: var(--space-md);
  }
  
  .timeline-item {
    min-width: 200px;
  }
}
