/* ================================================================
   WhiteCoder World News — timeline.css
   Smart Story Timeline Styles
   ================================================================ */

.story-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  position: relative;
}

/* ── Spine (dot + vertical line) ─────────────────────────────────── */
.timeline-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--bg);
  flex-shrink: 0;
  margin-top: 18px;
  transition: background var(--transition);
  z-index: 1;
}

.timeline-dot-focal {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin: 4px 0;
  min-height: 24px;
}

.timeline-item:last-child .timeline-line {
  display: none;
}

/* ── Timeline Card ───────────────────────────────────────────────── */
.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.timeline-focal .timeline-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-card);
}

.timeline-focal .timeline-card:hover {
  transform: translateX(3px);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-hover);
}

.timeline-date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.timeline-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color var(--transition);
}
.timeline-card-title:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .timeline-spine { width: 14px; }
  .timeline-dot   { width: 10px; height: 10px; margin-top: 16px; }
  .timeline-dot-focal { width: 14px; height: 14px; }
  .timeline-item  { gap: 12px; }
  .timeline-card  { padding: 12px 14px; }
}
