@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #2774AE;
  --navy-hover: #1d5a86;
  --gold: #FFD100;
  --gold-dark: #c9a800;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── NAV ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: #1a4a75;
  height: 58px; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.nav-logo { color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; text-decoration: none; flex-shrink: 0; }
.nav-logo span { color: var(--gold); }
.nav-count { color: rgba(255,255,255,.55); font-size: .78rem; white-space: nowrap; margin-left: auto; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, rgba(20,54,84,.55) 0%, rgba(20,54,84,.88) 55%, #143654 100%), url('drivetime-crew.jpg') center 25%/cover no-repeat, #143654;
  color: #fff;
  padding: 72px 24px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,209,0,.10) 0%, transparent 65%);
}
.hero-brand { position: relative; z-index: 1; margin-bottom: 44px; }
.hero-eyebrow { color: rgba(255,255,255,.6); font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -.01em; color: var(--gold); }
.hero-title em { color: rgba(255,255,255,.85); font-style: normal; display: block; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.hero-subtitle { font-size: clamp(.9rem, 2vw, 1.1rem); color: rgba(255,255,255,.75); margin-bottom: 6px; font-weight: 400; }
.hero-tagline { font-size: .875rem; color: rgba(255,255,255,.4); font-style: italic; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; position: relative; z-index: 1; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.1); }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: .68rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ── LAYOUT ──────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── FILTERS ─────────────────────────────────── */
.filters-section { padding: 38px 0 4px; }
.discovery-intro { max-width: 720px; margin-bottom: 18px; }
.discovery-eyebrow, .share-eyebrow { color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.discovery-intro h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.25; letter-spacing: -.02em; }
.discovery-intro > p:last-child { color: var(--text-secondary); font-size: .9rem; margin-top: 5px; }
.directory-search { max-width: 760px; position: relative; margin-bottom: 18px; }
.directory-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--navy); pointer-events: none; }
.directory-search input {
  width: 100%; padding: 14px 18px 14px 50px; border: 1px solid #b9cadd; border-radius: 10px;
  background: #fff; color: var(--text); font: 400 1rem/1.3 inherit; outline: none;
  box-shadow: 0 3px 12px rgba(39,116,174,.08); transition: border-color .2s, box-shadow .2s;
}
.directory-search input::placeholder { color: #7c8da1; }
.directory-search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(39,116,174,.14), 0 3px 12px rgba(39,116,174,.08); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.filters-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filters-row-secondary { margin-top: 12px; }
.filter-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; margin-right: 2px; }
.filter-btn {
  padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; font-size: .78rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.filter-select {
  min-width: 210px; padding: 7px 34px 7px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-secondary); font: 500 .78rem/1.2 inherit;
  cursor: pointer; outline: none;
}
.filter-select:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(39,116,174,.12); }
.clear-filters {
  border: 0; background: transparent; color: var(--navy); cursor: pointer;
  font: 500 .75rem/1.2 inherit; padding: 7px 8px;
}
.clear-filters:hover { text-decoration: underline; }

/* ── SECTION HEADERS ─────────────────────────── */
.section-header { padding: 36px 0 16px; }
.section-title { font-size: 1.2rem; font-weight: 700; }
.section-sub { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

/* ── BADGES ──────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: .68rem; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.badge-emba  { background: #e0edf5; color: #003B5C; }
.badge-femba { background: #fff5d6; color: #7a5600; }
.badge-ucla-nus { background: #f0e6fa; color: #5b21a6; }
.badge-released   { background: #ecfdf5; color: #047857; }
.badge-upcoming   { background: #eff6ff; color: #1d4ed8; }
.badge-production { background: #fff7ed; color: #c2410c; }
.badge-scheduled  { background: #f1f5f9; color: #64748b; border: 1px solid var(--border); }

/* ── TOC TABLE ───────────────────────────────── */
.toc-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.toc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.toc-table th { padding: 10px 14px; text-align: left; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-light); border-bottom: 1px solid var(--border); white-space: nowrap; }
.toc-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.toc-table tr:last-child td { border-bottom: none; }
.toc-table tr:hover td { background: #fafcff; }
.ep-num { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .75rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.guest-link { font-weight: 600; color: var(--navy); text-decoration: none; }
.guest-link:hover { color: var(--gold-dark); text-decoration: underline; }
.title-co { color: var(--text-secondary); font-size: .8rem; line-height: 1.4; }
.host-cell { color: var(--text-secondary); white-space: nowrap; }
.release-cell { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }
.action-links { display: flex; gap: 6px; flex-wrap: wrap; }
.alink { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 500; padding: 3px 8px; border-radius: 4px; text-decoration: none; transition: all .15s; white-space: nowrap; }
.alink-episode   { background: #eff6ff; color: #1d4ed8; }
.alink-episode:hover { background: #dbeafe; }
.alink-soundbite { background: #f0fdf4; color: #047857; }
.alink-soundbite:hover { background: #dcfce7; }
.alink-linkedin  { background: #f0f9ff; color: #0369a1; }
.alink-linkedin:hover { background: #e0f2fe; }
.alink-pending   { color: var(--text-muted); font-style: italic; }

/* ── GUEST CARDS ─────────────────────────────── */
.guests-grid { display: flex; flex-direction: column; gap: 20px; }

.guest-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.guest-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.card-body { display: grid; grid-template-columns: 160px 1fr; }

.photo-col {
  background: var(--bg-light); border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.duo-guest { display: flex; flex-direction: column; gap: 0; }
.duo-person { padding: 4px 0; }
.duo-divider { border-top: 1px solid var(--border); margin: 14px 0; }
.card-name-sm { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 2px; line-height: 1.2; }

.duo-avatars { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.duo-avatars .avatar-lg { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar-lg {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.host-pip { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.avatar-sm {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: #fff; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.host-label { font-size: .62rem; color: var(--text-muted); text-align: center; line-height: 1.3; }

.content-col { padding: 22px 26px; }
.card-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ep-tag { font-family: 'SF Mono', monospace; font-size: .7rem; font-weight: 600; color: var(--text-muted); }
.card-name { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.2; }
.card-titleco { font-size: .875rem; color: var(--text-secondary); margin-bottom: 14px; }
.card-bio { font-size: .85rem; color: var(--text-secondary); line-height: 1.75; }
.card-bio.placeholder { color: var(--text-muted); font-style: italic; }

.card-footer {
  padding: 12px 26px; border-top: 1px solid var(--border);
  background: var(--bg-light);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.flink { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 500; padding: 6px 14px; border-radius: var(--radius-sm); text-decoration: none; transition: all .15s; }
.flink-episode  { background: var(--navy); color: #fff; }
.flink-episode:hover { background: var(--navy-hover); }
.flink-soundbite { background: #fff; border: 1px solid var(--border); color: var(--text-secondary); }
.flink-soundbite:hover { border-color: #047857; color: #047857; }
.flink-linkedin { background: #fff; border: 1px solid var(--border); color: var(--text-secondary); }
.flink-linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.flink-pending { color: var(--text-muted); font-style: italic; font-size: .78rem; }
.footer-host { margin-left: auto; font-size: .75rem; color: var(--text-muted); white-space: nowrap; }
.footer-host strong { color: var(--text-secondary); font-weight: 500; }

/* ── MISC ────────────────────────────────────── */
.hidden { display: none !important; }
.no-results { text-align: center; padding: 64px 24px; color: var(--text-muted); }

/* ── SHARE CARD ─────────────────────────────── */
.share-card {
  margin: 56px 0 0; padding: 28px 32px; border-radius: 16px;
  background: linear-gradient(135deg, #edf6fc 0%, #f8fbfd 58%, #fff9d9 100%);
  border: 1px solid #cbdfea; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.share-copy { max-width: 680px; }
.share-copy h2 { font-size: 1.4rem; line-height: 1.25; margin-bottom: 7px; }
.share-copy > p:not(.share-eyebrow):not(.share-url) { color: var(--text-secondary); font-size: .9rem; }
.share-url { margin: 13px 0 14px; color: var(--navy); font-size: .76rem; font-weight: 600; overflow-wrap: anywhere; }
.copy-link { border: 0; border-radius: 7px; background: var(--navy); color: #fff; padding: 9px 16px; font: 600 .82rem/1 inherit; cursor: pointer; }
.copy-link:hover { background: var(--navy-hover); }
.copy-link:focus-visible { outline: 3px solid rgba(39,116,174,.25); outline-offset: 2px; }
.copy-feedback { margin-left: 9px; color: #047857; font-size: .78rem; font-weight: 600; }
.qr-wrap { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.qr-wrap img { width: 116px; height: 116px; background: #fff; padding: 7px; border-radius: 9px; box-shadow: var(--shadow); }
.qr-wrap span { color: var(--text-secondary); font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ── FOOTER ──────────────────────────────────── */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); padding: 36px 24px; text-align: center; }
.site-footer p { font-size: .8rem; color: var(--text-muted); line-height: 2; }
.site-footer strong { color: var(--text-secondary); font-weight: 600; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 680px) {
  .hero { padding: 44px 16px 36px; }
  .hero-stats { gap: 28px; }
  .nav-count { display: none; }
  .card-body { grid-template-columns: 1fr; }
  .photo-col { flex-direction: row; border-right: none; border-bottom: 1px solid var(--border); padding: 16px; width: 100%; }
  .content-col { padding: 16px 20px; }
  .card-footer { padding: 12px 20px; }
  .filter-select { width: 100%; min-width: 0; }
  .filters-row-secondary .filter-label { width: 100%; }
  .directory-search input { font-size: 1rem; padding-right: 12px; }
  .share-card { padding: 24px 20px; align-items: flex-start; gap: 18px; }
  .qr-wrap img { width: 96px; height: 96px; }
}

@media (max-width: 460px) {
  .share-card { flex-direction: column; }
  .qr-wrap { align-self: center; }
}

/* ── PRINT ───────────────────────────────────── */
@media print {
  .nav, .filters-section { display: none; }
  .guest-card { break-inside: avoid; box-shadow: none; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
