/* ═══════════════════════════════════════
   STORIED FLAVOURS — Timeline
   ═══════════════════════════════════════ */

/* ── Page background image ── */
.timeline-page {
  position: relative;
}

.timeline-page::before {
  content: '';
  position: fixed;
  top: var(--topbar-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  background: url('../assets/timeline-bg.png') center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.timeline-page > * {
  position: relative;
  z-index: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.timeline-header h1 { font-size: var(--font-size-3xl); }

.timeline-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.timeline-view {
  position: relative;
  padding-left: 110px;
  margin-left: 0;
  max-width: none;
}

.timeline-view::before {
  content: '';
  position: absolute;
  left: 82px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-amber), var(--color-terracotta), var(--color-sage));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-8);
  animation: fadeIn var(--duration-normal) var(--ease-out) both;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 3px solid var(--color-amber);
  background: var(--surface-page);
}

.timeline-dot.recipe    { border-color: var(--color-amber); }
.timeline-dot.story     { border-color: var(--color-terracotta); }
.timeline-dot.milestone { border-color: var(--color-sage); }
.timeline-dot.tradition { border-color: var(--color-dusty-rose); }

.timeline-date {
  position: absolute;
  left: -106px;
  width: 62px;
  top: 4px;
  text-align: right;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-card {
  display: block;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--duration-normal);
  text-decoration: none;
  color: inherit;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-card h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}

.timeline-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-card-links {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* Timeline event detail */
.timeline-event-detail { max-width: 700px; margin: 0 auto; }

.timeline-event-detail h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

.timeline-event-date {
  font-size: var(--font-size-lg);
  color: var(--color-amber-dark);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.timeline-event-desc {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.timeline-event-linked { margin-bottom: var(--space-6); }
.timeline-event-linked h3 { font-size: var(--font-size-base); margin-bottom: var(--space-3); }
