:root {
  --timeline-bg-ink: #0e1e2a;
  --timeline-bg-sea: #173648;
  --timeline-bg-dawn: #f8e0bc;
  --timeline-text: #f3ece2;
  --timeline-soft: rgba(243, 236, 226, 0.78);
  --timeline-line: #6bd0e8;
  --timeline-accent: #ffc177;
  --timeline-card: rgba(10, 28, 40, 0.76);
  --timeline-border: rgba(255, 193, 119, 0.3);
}

.timeline-page {
  margin: 0;
  color: var(--timeline-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 193, 119, 0.22), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(107, 208, 232, 0.22), transparent 28%),
    linear-gradient(160deg, var(--timeline-bg-ink) 0%, var(--timeline-bg-sea) 48%, #1f4658 100%);
  background-attachment: fixed;
  font-family: Cambria, "Palatino Linotype", "Book Antiqua", serif;
}

.timeline-page .container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1rem 2.8rem;
}

.timeline-page .page-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -1rem;
  padding: 0.8rem 1rem;
  background: rgba(8, 20, 30, 0.68);
  border-bottom: 1px solid rgba(255, 193, 119, 0.24);
  backdrop-filter: blur(8px);
}

.timeline-main {
  padding-top: 0.9rem;
}

.timeline-hero h1 {
  margin: 0.8rem 0 0.9rem;
  max-width: 20ch;
  line-height: 1.08;
  font-size: clamp(1.8rem, 4.3vw, 3rem);
  color: #fff6e9;
}

.hero-kicker {
  margin: 0;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: #ffd8ab;
  font-weight: 700;
}

.hero-lead {
  margin: 0;
  max-width: 65ch;
  line-height: 1.6;
  color: var(--timeline-soft);
}

.filters-panel,
.timeline-wrap {
  margin-top: 1.2rem;
  border: 1px solid var(--timeline-border);
  border-radius: 16px;
  background: var(--timeline-card);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.2);
}

.filters-panel {
  padding: 0.95rem 1rem 1.05rem;
}

.timeline-wrap {
  padding: 1rem;
}

.filters-panel h2,
.timeline-wrap h2 {
  margin: 0.1rem 0 0.9rem;
  color: #ffe7c8;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.filter-chip {
  border: 1px solid rgba(255, 193, 119, 0.42);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-weight: 700;
  color: #ffe8cb;
  background: rgba(14, 35, 48, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip.active {
  color: #2b1600;
  background: linear-gradient(120deg, #ffc177, #ffe2bd);
  border-color: rgba(255, 232, 200, 0.8);
}

.result-count {
  margin: 0.25rem 0 0;
  color: #f4d8b5;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.72rem;
  padding-left: 1.05rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--timeline-line), var(--timeline-accent));
  opacity: 0.65;
}

.timeline-event {
  position: relative;
  border: 1px solid rgba(107, 208, 232, 0.3);
  border-radius: 12px;
  padding: 0.75rem 0.88rem;
  background: rgba(7, 23, 35, 0.7);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.timeline-event.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -0.86rem;
  top: 0.92rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #7ed7ec;
  background: #fff6ea;
  box-shadow: 0 0 0 3px rgba(126, 215, 236, 0.18);
}

.event-meta {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.74rem;
  color: #a9e7f4;
  font-weight: 700;
}

.timeline-event h3 {
  margin: 0;
  color: #ffe8cc;
}

.timeline-event p {
  margin: 0.35rem 0 0;
  color: rgba(243, 236, 226, 0.88);
}

.empty-state {
  border: 1px dashed rgba(255, 193, 119, 0.45);
  border-radius: 10px;
  padding: 0.8rem;
  color: #ffe2be;
  background: rgba(14, 35, 48, 0.45);
}

@media (max-width: 760px) {
  .timeline-page .container {
    padding: 0 0.7rem 2.2rem;
  }

  .timeline-page .page-topbar {
    margin: 0 -0.7rem;
    padding: 0.75rem 0.7rem;
  }
}
