/* assets/timeline.css — Immortal Soul Timeline */

.tl-page { min-height: 100vh; background: var(--bg); }

/* ── HERO ─────────────────────────────────────────────────── */
.tl-hero {
  border-bottom: 1px solid var(--border-mid);
  background: var(--bg-surface);
  padding: 3rem 2rem 2.5rem;
}

.tl-hero-inner { max-width: 700px; margin: 0 auto; }

.tl-hero-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.tl-hero-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.tl-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.tl-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tl-stat { text-align: center; }

.tl-stat-n {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 3px;
}

.tl-stat-l {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tl-stat-div {
  width: 1px;
  height: 30px;
  background: var(--border-mid);
}

/* ── BODY ─────────────────────────────────────────────────── */
.tl-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.tl-track {
  position: relative;
}

/* The centre spine */
.tl-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-mid);
  transform: translateX(-50%);
}

/* ── ERA LABEL ────────────────────────────────────────────── */
.tl-era {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
}

.tl-era-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg);
  padding: 4px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 20px;
}

/* ── EVENT ────────────────────────────────────────────────── */
.tl-event {
  position: relative;
  display: flex;
  margin-bottom: 1.5rem;
}

.tl-event--left  { flex-direction: row-reverse; }
.tl-event--right { flex-direction: row; }

.tl-event--left  .tl-card { margin-right: calc(50% + 24px); text-align: right; }
.tl-event--right .tl-card { margin-left:  calc(50% + 24px); }

/* Dot on the spine */
.tl-dot {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  border: 2px solid var(--bg);
}

.tl-dot--b1 { background: var(--pill-b1-text, #7abf43); }
.tl-dot--b2 { background: var(--pill-b2-text, #6aabf0); }
.tl-dot--b3 { background: var(--amber); }

/* ── CARD ─────────────────────────────────────────────────── */
.tl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  flex: 1;
  max-width: calc(50% - 36px);
  transition: border-color 0.15s;
}

.tl-card:hover { border-color: var(--border-mid); }

.tl-card-year {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.tl-card-title {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.tl-card-body {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-family: var(--sans);
  margin-bottom: 0.5rem;
}

.tl-card-pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
}

.tl-pill-b1 { background: var(--pill-b1-bg); color: var(--pill-b1-text); }
.tl-pill-b2 { background: var(--pill-b2-bg); color: var(--pill-b2-text); }
.tl-pill-b3 { background: var(--pill-b3-bg); color: var(--pill-b3-text); }

/* ── LOCK BLOCK ───────────────────────────────────────────── */
.tl-lock-block {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.tl-lock-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.tl-lock-title {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-lock-sub {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px), ((pointer: coarse) and (max-width: 1400px)) {
  .tl-track::before { left: 16px; }

  .tl-event--left,
  .tl-event--right { flex-direction: row; }

  .tl-event--left  .tl-card,
  .tl-event--right .tl-card {
    margin-left: 40px;
    margin-right: 0;
    max-width: 100%;
    text-align: left;
  }

  .tl-dot { left: 16px; }
  .tl-era { justify-content: flex-start; padding-left: 40px; }
}