/* ============================================================
   timeline.css — Chronological Timeline Page Styles
   ============================================================ */

/* ── Filter Bar ──────────────────────────────────────────────── */
.timeline-filter-bar {
  background: var(--color-navy-mid);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
  position: sticky;
  top: var(--nav-height);
  z-index: var(--z-raised);
}

.timeline-filter-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5em 1.4em;
  background: transparent;
  border: 1px solid rgba(201,161,50,0.3);
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-btn.active {
  background: var(--color-gold-alpha);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.filter-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-right: var(--space-xs);
}

.filter-select {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  background: var(--color-navy);
  border: 1px solid rgba(201,161,50,0.3);
  color: rgba(255,255,255,0.7);
  padding: 0.4em 2em 0.4em 0.9em;
  border-radius: var(--radius-full);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23C9A132' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
}

.filter-select:focus { outline: none; border-color: var(--color-gold); }

/* ── Timeline Track ──────────────────────────────────────────── */
.timeline-section {
  background: var(--color-navy);
  padding: var(--space-4xl) 0;
}

.timeline-track {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark), transparent);
  transform: translateX(-50%);
}

/* ── Timeline Entry ──────────────────────────────────────────── */
.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0 var(--space-xl);
  margin-bottom: var(--space-2xl);
  align-items: start;
  transition: opacity var(--transition-base);
}

.timeline-entry.hidden { display: none; }

.tl-left  { text-align: right; padding-top: var(--space-sm); }
.tl-right { padding-top: var(--space-sm); }

.timeline-entry:nth-child(odd)  .tl-left  { order: 1; }
.timeline-entry:nth-child(odd)  .tl-center { order: 2; }
.timeline-entry:nth-child(odd)  .tl-right { order: 3; }
.timeline-entry:nth-child(even) .tl-left  { order: 3; text-align: left; }
.timeline-entry:nth-child(even) .tl-center { order: 2; }
.timeline-entry:nth-child(even) .tl-right { order: 1; text-align: right; }

.tl-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
  gap: var(--space-xs);
}

.tl-dot {
  width: 14px;
  height: 14px;
  background: var(--color-gold);
  border-radius: 50%;
  border: 2px solid var(--color-navy);
  box-shadow: 0 0 0 2px var(--color-gold-dark);
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-entry:hover .tl-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 3px var(--color-gold), var(--shadow-gold);
}

.tl-line {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: var(--color-border);
}

/* Card */
.tl-card {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tl-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-gold); }

.tl-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.tl-badge { margin-bottom: var(--space-sm); }

.tl-headline {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.tl-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top var(--transition-fast);
}

.tl-desc.expanded { max-height: 200px; margin-top: var(--space-sm); }

.timeline-empty {
  text-align: center;
  padding: var(--space-4xl);
  font-family: var(--font-ui);
  color: rgba(255,255,255,0.4);
  display: none;
}

/* Mobile */
@media (max-width: 767px) {
  .timeline-track::before { left: 20px; }

  .timeline-entry {
    grid-template-columns: 40px 1fr;
    gap: 0 var(--space-md);
  }

  .timeline-entry:nth-child(odd) .tl-left,
  .timeline-entry:nth-child(even) .tl-left { display: none; }

  .timeline-entry:nth-child(odd) .tl-center,
  .timeline-entry:nth-child(even) .tl-center { order: 1; }

  .timeline-entry:nth-child(odd) .tl-right,
  .timeline-entry:nth-child(even) .tl-right { order: 2; text-align: left; }

  .tl-center { align-items: flex-start; padding-left: 13px; }
}
