/* ============================================================
   JOURNEY.CSS — Timeline page
   ============================================================ */

/* ---- Shared page header ---- */
.page-header {
  padding: 140px var(--spacing-30) 80px;
  background: var(--surface-void-canvas);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-header__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-19);
  align-items: center;
  text-align: center;
}

.page-header__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  line-height: 1.15;
}

.page-header__sub {
  font-size: var(--text-body-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-ash);
  line-height: 1.85;
  max-width: 520px;
  text-align: center;
}

/* ---- Stats bar ---- */
.timeline-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 14px var(--spacing-30);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: var(--surface-void-canvas);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  min-height: 44px;
}

.timeline-stats__sep {
  color: rgba(255,255,255,0.15);
}

@media (max-width: 480px) {
  .timeline-stats {
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--spacing-30);
  }
  .timeline-stats__sep { display: none; }
}

/* ---- Sticky header wrapper (stats + filter) ---- */
.journey-sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- Topic Filter Bar ---- */
.topic-filter-bar {
  background: var(--surface-void-canvas);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-filter-bar::-webkit-scrollbar { display: none; }

.topic-filter {
  flex: 1;
  min-width: max-content;
  padding: 16px 24px;
  font-family: var(--font-unbounded);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.topic-filter:hover {
  color: rgba(255,255,255,0.7);
}

.topic-filter--active {
  color: var(--color-pure-white);
  border-bottom-color: var(--color-pure-white);
}

/* ---- Timeline ---- */
.timeline-section {
  position: relative;
  padding: 80px 0 120px;
  background: var(--surface-void-canvas);
  min-height: 60vh;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.12);
  transform: translateX(-50%);
}

.timeline-events {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-loading {
  text-align: center;
  font-size: var(--text-caption);
  letter-spacing: 0.2em;
  color: var(--color-ash);
  padding: 80px 0;
}

/* ---- Event row ---- */
.timeline-event {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0;
  padding: 40px 0;
}

/* Dot at center line */
.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--color-pure-white);
  border: 1px solid var(--color-pure-white);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.timeline-event:hover .timeline-dot {
  transform: scale(1.6);
}

/* Card wrap — grid placement + reveal anchor */
.timeline-card-wrap {
  position: relative;
}

/* Left side */
.timeline-event:nth-child(odd) .timeline-card-wrap {
  grid-column: 1;
  margin-right: var(--spacing-30);
}

/* Right side */
.timeline-event:nth-child(even) .timeline-card-wrap {
  grid-column: 3;
  margin-left: var(--spacing-30);
}

/* Card — alternates left/right */
.timeline-card {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--spacing-25);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-15);
  transition: background 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-card:hover {
  background: var(--surface-carbon-panel);
  border-color: rgba(255,255,255,0.3);
}

.timeline-event:nth-child(odd) .timeline-card  { transform: translateX(-20px); }
.timeline-event:nth-child(even) .timeline-card { transform: translateX(20px); }

/* Dot always middle */
.timeline-event:nth-child(odd)  .timeline-dot { grid-column: 2; }
.timeline-event:nth-child(even) .timeline-dot { grid-column: 2; }

/* Spacer on empty side */
.timeline-event:nth-child(odd)  .timeline-spacer { grid-column: 3; }
.timeline-event:nth-child(even) .timeline-spacer { grid-column: 1; }

.timeline-card.revealed {
  opacity: 1;
  transform: none;
}

.timeline-card__year {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.22em;
  color: var(--color-ash);
}

.timeline-card__title {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-pure-white);
  line-height: 1.3;
}

.timeline-card__short {
  font-size: var(--text-caption);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-ash);
  line-height: 1.7;
}

.timeline-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-carbon);
  border: 1px solid rgba(255,255,255,0.05);
}

/* LIHAT BERITA — hidden behind card, slides out on hover */
.btn-reveal {
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%) translateY(0);
  opacity: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--color-ash);
  font-family: var(--font-unbounded);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 24px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              border-color 0.2s,
              color 0.2s;
}

.btn-reveal.visible {
  transform: translateX(-50%) translateY(calc(100% + 12px));
  opacity: 1;
  z-index: 3;
}

.btn-reveal:hover {
  border-color: var(--color-pure-white);
  color: var(--color-pure-white);
}

/* Major event highlight */
.timeline-event--major .timeline-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.timeline-event--major .timeline-card {
  border-color: rgba(255,255,255,0.25);
}

/* Footer */
.footer {
  background: var(--surface-carbon-panel);
  padding: 40px var(--spacing-30) 24px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-12);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-12);
}

.footer__brand {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
}

.footer__copy {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-ash);
}

.footer__disclaimer {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.18);
  line-height: 1.8;
  max-width: 520px;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .timeline-line { left: 24px; }

  .timeline-event {
    grid-template-columns: 48px 1fr;
    padding: 24px 0;
  }

  .timeline-dot { grid-column: 1 !important; }

  .timeline-card-wrap {
    grid-column: 2 !important;
    margin: 0 var(--spacing-20) 0 0 !important;
  }

  .timeline-card {
    transform: translateX(12px) !important;
  }

  .timeline-card.revealed { transform: none !important; }

  .btn-reveal { display: block; }
  .timeline-spacer { display: none; }
}

.timeline-card__photo-note { display: block; margin-bottom: 18px; color: var(--color-ash); font-size: 10px; letter-spacing: .08em; }
