/* ===== 시나리오 타임라인 ===== */

.timeline {
  position: relative;
  padding: 20px 0;
  margin-left: 40px;
}

/* 세로 선 */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-dim), var(--border), var(--gold-dim));
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* 연도 마커 */
.timeline-marker {
  position: absolute;
  left: -8px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--gold);
  z-index: 1;
}

.timeline-item:hover .timeline-marker {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(212, 168, 67, 0.4);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.timeline-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-hover);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.timeline-factions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* 반응형 */
@media (max-width: 768px) {
  .timeline {
    margin-left: 20px;
  }

  .timeline-item {
    padding-left: 28px;
  }
}
