/* ══════════════════════════════════════════════════════════════
   CAREER TIMELINE EXPLORER - Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.tl-hero {
  background: linear-gradient(135deg, #1a3c5e 0%, #2e75b6 100%);
  color: #fff; padding: 5rem 0 3.5rem; text-align: center;
}
.tl-hero .eyebrow { color: rgba(255,255,255,0.65); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.tl-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.tl-hero .lead { color: rgba(255,255,255,0.88); max-width: 580px; margin: 0 auto 0.75rem; line-height: 1.6; }

/* ── Search box ─────────────────────────────────────────────── */
.tl-search-wrap { max-width: 640px; margin: 0 auto 1.25rem; }

.tl-search-box {
  display: flex; align-items: center;
  background: var(--white, #fff);
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  gap: 0.6rem;
  transition: border-color 0.2s;
}
.tl-search-box:focus-within { border-color: #2952a3; }
.tl-search-icon { font-size: 1rem; flex-shrink: 0; }
.tl-search-box input {
  flex: 1; border: none; outline: none;
  font-size: 1rem; background: transparent;
  color: var(--charcoal, #1a1a2e);
  font-family: var(--font-ui, sans-serif);
}
.tl-search-box input::placeholder { color: var(--muted, #9ca3af); }
#tl-search-clear {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--muted, #9ca3af);
  padding: 0; line-height: 1;
}
#tl-search-clear:hover { color: var(--charcoal, #1a1a2e); }

/* ── Sport filter chips ─────────────────────────────────────── */
.tl-sport-filter {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: center; max-width: 640px; margin: 0 auto;
}
.tl-sport-chip {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--white, #fff);
  color: var(--body, #374151);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tl-sport-chip:hover { border-color: #2952a3; color: #2952a3; }
.tl-sport-chip.active { background: #2952a3; color: #fff; border-color: #2952a3; }

/* ── Search results dropdown ────────────────────────────────── */
.tl-results {
  max-width: 640px; margin: 0.5rem auto 0;
  background: var(--white, #fff);
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
}
.tl-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; padding: 0.75rem 1.25rem;
  background: none; border: none; border-bottom: 1px solid var(--border, #e5e7eb);
  cursor: pointer; text-align: left;
  transition: background 0.1s;
}
.tl-result-item:last-of-type { border-bottom: none; }
.tl-result-item:hover { background: var(--bg2, #f9fafb); }
.tl-result-icon { font-size: 1.1rem; flex-shrink: 0; }
.tl-result-name { font-weight: 600; font-size: 0.95rem; color: var(--charcoal, #1a1a2e); flex: 1; }
.tl-result-name mark { background: #fff3cd; color: inherit; border-radius: 2px; }
.tl-result-meta { font-size: 0.78rem; color: var(--muted, #6b7280); white-space: nowrap; }
.tl-results-more { padding: 0.6rem 1.25rem; font-size: 0.78rem; color: var(--muted, #6b7280); text-align: center; background: var(--bg2, #f9fafb); }

/* ── Athlete header ─────────────────────────────────────────── */
.tl-athlete-header {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.tl-athlete-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #1a3c5e, #2e75b6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head, Georgia); font-size: 1.6rem; font-weight: 700;
  flex-shrink: 0;
}
.tl-athlete-info { flex: 1; min-width: 200px; }
.tl-athlete-sport {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #2952a3; margin-bottom: 0.3rem;
}
.tl-athlete-info h2 { font-size: 1.8rem; margin: 0 0 0.3rem; }
.tl-athlete-meta { font-size: 0.88rem; color: var(--muted, #6b7280); margin: 0 0 0.4rem; }
.tl-athlete-bio { font-size: 0.92rem; color: var(--body, #374151); margin: 0; line-height: 1.6; max-width: 520px; }
.tl-athlete-famous { font-size: 0.88rem; color: var(--muted, #6b7280); font-style: italic; margin: 0.3rem 0 0; }

/* ── Quick facts pills ──────────────────────────────────────── */
.tl-facts-row {
  display: flex !important; flex-wrap: wrap; gap: 0.6rem;
  margin: 1rem 0 1.75rem; align-items: flex-start;
}
.tl-fact {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg2, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  min-width: 80px;
}
.tl-fact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue, #2952a3);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.tl-fact-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal, #1a1a2e);
  line-height: 1.2;
}

/* ── Fun fact callout ───────────────────────────────────────── */
.tl-funfact {
  background: var(--gold-bg, #fffbeb);
  border: 1.5px solid rgba(200,147,58,0.3);
  border-left: 4px solid #c8933a;
  border-radius: var(--radius, 8px);
  padding: 0.9rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--body, #374151);
  line-height: 1.6;
}
.tl-funfact::before {
  content: '💡 Did You Know? ';
  font-weight: 700;
  color: #c8933a;
}

/* ── Timeline track — vertical ──────────────────────────────── */
.tl-wrap {
  margin: 0 0 1.5rem;
}
.tl-line { display: none; } /* no longer used */
.tl-events {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 8px);
  overflow: hidden;
}
.tl-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  transition: background 0.1s;
}
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: var(--bg2, #f9fafb); }
.tl-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue, #2952a3);
  text-align: right;
  white-space: nowrap;
}
.tl-label {
  font-size: 0.9rem;
  color: var(--body, #374151);
  line-height: 1.4;
}
.tl-row-detail {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
  margin-top: 0.1rem;
}
/* Type year colours */
.tl-type-birth .tl-year       { color: #2e7d32; }
.tl-type-trophy .tl-year      { color: #c8933a; }
.tl-type-award .tl-year       { color: #c8933a; }
.tl-type-milestone .tl-year   { color: var(--blue, #2952a3); }
.tl-type-record .tl-year      { color: #7b1fa2; }
.tl-type-international .tl-year { color: #0277bd; }
.tl-type-retired .tl-year     { color: var(--muted, #6b7280); }
.tl-type-club .tl-year        { color: var(--muted, #6b7280); }

/* ── Honours section ────────────────────────────────────────── */
.tl-honours-section {
  margin-top: 2rem; padding: 1.5rem;
  background: var(--gold-bg, #fffbeb);
  border: 1.5px solid rgba(200,147,58,0.3);
  border-left: 4px solid #c8933a;
  border-radius: var(--radius, 10px);
}
.tl-honours-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--charcoal, #1a1a2e);
}
.tl-honours-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tl-honour-item {
  font-size: 0.82rem; font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: var(--white, #fff);
  border: 1px solid rgba(200,147,58,0.35);
  border-radius: 50px;
  color: var(--body, #374151);
}

/* ── Prompt ─────────────────────────────────────────────────── */
.tl-prompt {
  text-align: center; padding: 4rem 2rem;
  background: var(--surface, #f9fafb);
  border: 2px dashed var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  max-width: 620px; margin: 0 auto;
}
.tl-prompt-icon { font-size: 3rem; margin-bottom: 1rem; }
.tl-prompt h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.tl-prompt p { color: var(--muted, #6b7280); margin-bottom: 1.25rem; line-height: 1.6; }
.tl-prompt-examples { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; }
.tl-prompt-examples span { font-size: 0.82rem; color: var(--muted, #6b7280); font-weight: 600; }
.tl-example-btn {
  font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.9rem;
  border-radius: 50px; border: 1.5px solid var(--border, #e5e7eb);
  background: var(--white, #fff); color: var(--charcoal, #1a1a2e);
  cursor: pointer; transition: all 0.15s;
}
.tl-example-btn:hover { border-color: #2952a3; color: #2952a3; }

/* ── Print ──────────────────────────────────────────────────── */
@media print {
  .tl-hero, #tl-search-section, #tl-prompt-section,
  #tl-back-btn, #tl-print-btn, .site-header, .site-footer,
  .ticker-wrap, .ad-wrap, .btn { display: none !important; }
  .tl-wrap { overflow: visible; }
  .tl-events { flex-wrap: wrap; min-width: unset; }
  .tl-event { min-width: 80px; padding-right: 1rem; margin-bottom: 1rem; }
  .tl-athlete-header { page-break-inside: avoid; }
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tl-athlete-header { gap: 1rem; }
  .tl-athlete-info h2 { font-size: 1.4rem; }
  .tl-hero { padding: 3rem 0 2.5rem; }
  .tl-sport-filter { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
  .tl-row { grid-template-columns: 48px 1fr; gap: 0.5rem; padding: 0.5rem 0.75rem; }
  .tl-year { font-size: 0.72rem; }
  .tl-label { font-size: 0.85rem; }
}
