/* ═══════════════════════════════════════
   styles/timeline.css - Left Panel
   ═══════════════════════════════════════ */
#timeline-panel {
  width: var(--panel-width);
  min-width: var(--panel-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-panel-end) 100%);
  border-right: 1px solid var(--gold-faint);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  position: relative;
}

.panel-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(180, 160, 120, 0.1);
}

.panel-header .subtitle {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.panel-header h1 {
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
}

.panel-header .tagline {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

/* Year selector */
.year-selector {
  padding: 10px 24px;
  border-bottom: 1px solid var(--gold-ghost);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.year-btn {
  flex: 1;
  min-width: 44px;
  padding: 7px 4px;
  background: transparent;
  border: 1px solid var(--gold-ghost);
  border-radius: 3px;
  color: var(--text-ghost);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  text-align: center;
}

.year-btn:hover { background: var(--gold-ghost); color: var(--text-secondary); }
.year-btn.active {
  background: var(--gold-ghost);
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  font-weight: bold;
}
.year-btn.all-btn { letter-spacing: 1.5px; font-size: 10px; text-transform: uppercase; }

/* Play button */
.play-section {
  padding: 12px 24px;
  border-bottom: 1px solid var(--gold-ghost);
}

#play-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--gold-ghost);
  border: 1px solid var(--gold-faint);
  border-radius: 4px;
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-serif);
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

#play-btn:hover { background: rgba(180, 160, 120, 0.12); }
#play-btn.playing {
  background: rgba(180, 40, 40, 0.2);
  border-color: rgba(180, 40, 40, 0.4);
  color: #d08080;
}

/* Timeline list */
#timeline-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.timeline-event {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  transition: all 0.3s ease;
  opacity: 0.65;
}

.timeline-event:hover { background: rgba(180, 160, 120, 0.04); opacity: 0.85; }

.timeline-event.active {
  background: var(--gold-ghost);
  opacity: 1;
}

.timeline-event.past { opacity: 0.4; }

.event-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 20px;
  padding-top: 3px;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-faint);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.timeline-event.active .event-dot {
  width: 12px;
  height: 12px;
}

.event-line {
  width: 1px;
  flex: 1;
  min-height: 20px;
  background: var(--gold-ghost);
}

.timeline-event.past .event-line { background: rgba(180, 160, 120, 0.15); }

.event-content { flex: 1; padding-bottom: 8px; }

.event-date {
  font-size: 11px;
  color: var(--text-ghost);
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.timeline-event.active .event-date { letter-spacing: 1.5px; }

.event-title {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.timeline-event.active .event-title {
  color: var(--text-primary);
  font-weight: 600;
}

.event-description {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 6px;
  display: none;
  animation: fadeIn 0.4s ease;
}

.timeline-event.active .event-description { display: block; }

/* Legend */
#legend {
  padding: 16px 24px;
  border-top: 1px solid rgba(180, 160, 120, 0.1);
}

#legend .legend-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-ghost);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-swatch.circle { border-radius: 50%; }

.legend-label {
  font-size: 12px;
  color: var(--text-dim);
}
