/* ==========================================================================
   Amir's Podcast — site.css
   Dark, cinematic system built around the neon studio sign:
   warm near-black ground, neon red primary, electric blue for metadata.
   Display: Anton (fight-poster caps) · Body/UI: Barlow
   ========================================================================== */

:root {
  --bg: #0c0908;
  --surface: #161010;
  --surface-2: #201614;
  --line: rgba(243, 237, 229, 0.09);
  --red: #e8323e;
  --red-bright: #ff4a55;
  --blue: #5c8bf5;
  --text: #f3ede5;
  --muted: #a99c93;
  --faint: #7d7168;
  --radius: 14px;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--red-bright); text-decoration: none; }
a:hover { color: var(--text); }

::selection { background: var(--red); color: #fff; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Type ------------------------------------------------------------- */

h1, h2, h3 { margin: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.section-head { margin-bottom: 40px; }
.section-head .display { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 10px; }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 24px rgba(232, 50, 62, 0.35);
}
.btn-red:hover {
  background: var(--red-bright);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(255, 74, 85, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(243, 237, 229, 0.25);
}
.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---- Nav -------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(12, 9, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--red-bright); }
.wordmark:hover { color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--red); }
.nav-cta {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 9px 18px;
  border-radius: 5px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-bright); color: #fff; }

@media (max-width: 720px) {
  /* In-flow solid bar on small screens — a fixed transparent nav wraps to
     multiple rows here and collides with the hero headline. */
  .site-nav {
    position: static;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav .inner { flex-wrap: wrap; padding: 14px 0; row-gap: 10px; }
  .wordmark { font-size: 1.15rem; }
  .nav-cta { margin-left: auto; font-size: 0.85rem; padding: 8px 14px; }
  .nav-links { gap: 20px; order: 3; width: 100%; justify-content: flex-start; }
  .nav-links a { font-size: 0.88rem; padding: 2px 0; }
}

/* ---- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(620px, 94vh, 1020px);
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero_bg_1.png') center 30% / cover no-repeat;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 9, 8, 0.55) 0%, rgba(12, 9, 8, 0.05) 30%, rgba(12, 9, 8, 0.25) 62%, var(--bg) 96%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
  text-align: center;
}
.hero-content .display {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}
.hero-content .display .glow {
  color: var(--red-bright);
  text-shadow: 0 0 18px rgba(232, 50, 62, 0.85), 0 0 60px rgba(232, 50, 62, 0.45);
}
.hero-sub {
  max-width: 620px;
  margin: 18px auto 30px;
  font-size: 1.1rem;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(243, 237, 229, 0.16);
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.hero-stats strong { color: var(--text); font-weight: 600; }

@media (max-width: 720px) {
  /* Hero sizes to its content on phones — a fixed min-height overflows
     upward once the buttons and stats stack. */
  .hero { min-height: 0; align-items: stretch; }
  .hero-bg { background-position: center 18%; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(12, 9, 8, 0.45) 0%, rgba(12, 9, 8, 0.3) 20%, rgba(12, 9, 8, 0.68) 50%, var(--bg) 96%);
  }
  .hero-content { padding: 200px 0 48px; }
  .hero-content .display { font-size: clamp(2.1rem, 9vw, 3.4rem); }
  .hero-sub { font-size: 1rem; margin: 16px auto 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 10px 22px; margin-top: 36px; font-size: 0.88rem; }
}

/* ---- Sections --------------------------------------------------------- */

.section { padding: 90px 0; scroll-margin-top: 64px; }
.section.tight { padding: 64px 0; }

/* ---- Featured episode -------------------------------------------------- */

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.featured-media { position: relative; min-height: 320px; }
.featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, var(--surface) 100%);
}
.featured-body { padding: 44px 46px; }
.featured-body .display { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin: 14px 0 16px; }
.featured-intro { color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; }
.featured-guests { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.featured-guests li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--text);
}
.featured-guests li::before { content: "—"; color: var(--red-bright); flex: none; }
.featured-guests span { color: var(--muted); }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 26px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 860px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { min-height: 0; aspect-ratio: 16 / 10; }
  .featured-media::after { background: linear-gradient(180deg, transparent 70%, var(--surface) 100%); }
  .featured-body { padding: 30px 26px 38px; }
}

/* ---- Episode grid ------------------------------------------------------ */

.episodes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.episode-search {
  flex: 1 1 260px;
  max-width: 380px;
  position: relative;
}
.episode-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 16px 12px 42px;
  outline: none;
  transition: border-color 0.15s ease;
}
.episode-search input::placeholder { color: var(--faint); }
.episode-search input:focus { border-color: var(--red); }
.episode-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--faint);
  pointer-events: none;
}
.episode-count {
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
@media (max-width: 980px) { .episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .episode-grid { grid-template-columns: 1fr; } }

.ep-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ep-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 50, 62, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(232, 50, 62, 0.12);
  color: var(--text);
}
.ep-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ep-card:hover .ep-thumb img { transform: scale(1.045); }
.ep-thumb .play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(12, 9, 8, 0.78);
  border: 1px solid rgba(243, 237, 229, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ep-card:hover .play-badge { background: var(--red); border-color: var(--red); }
.play-badge svg { width: 13px; height: 13px; fill: #fff; margin-left: 2px; }
.ep-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.ep-date {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.ep-title {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
  text-wrap: balance;
}
.ep-excerpt {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-watch {
  margin-top: auto;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.ep-card:hover .ep-watch { color: var(--red-bright); }

.ep-card.hidden-by-more, .ep-card.hidden-by-search { display: none; }

.episodes-more { text-align: center; margin-top: 44px; }
.no-results {
  display: none;
  text-align: center;
  color: var(--faint);
  padding: 40px 0 10px;
}

/* ---- About ------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.about-portrait { position: relative; }
.about-portrait img {
  border-radius: var(--radius);
  width: 100%;
}
.about-portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(232, 50, 62, 0.4);
  border-radius: var(--radius);
  z-index: -1;
}
.about-name {
  margin-top: 26px;
}
.about-name .display { font-size: 1.5rem; }
.about-name span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-copy p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }
.about-copy p strong { color: var(--text); }
.pull-quote {
  border-left: 3px solid var(--red);
  margin: 30px 0;
  padding: 6px 0 6px 24px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait { max-width: 420px; }
}

/* ---- Guests ------------------------------------------------------------ */

.guest-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--surface-2) transparent;
}
.guest-row::-webkit-scrollbar { height: 8px; }
.guest-row::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
.guest-card {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guest-card img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232, 50, 62, 0.5);
}
.guest-card h3 { font-size: 1.15rem; font-weight: 600; }
.guest-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---- Closing CTA band --------------------------------------------------- */

.closing {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
}
.closing-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero_bg_2.png') center 35% / cover no-repeat;
}
.closing-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 9, 8, 0.55) 30%, rgba(12, 9, 8, 0.55) 70%, var(--bg) 100%);
}
.closing .container { position: relative; z-index: 2; }
.closing .display { font-size: clamp(2rem, 5vw, 3.6rem); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
.closing p { color: var(--text); max-width: 520px; margin: 16px auto 30px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.site-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .meta {
  color: var(--faint);
  font-size: 0.9rem;
}
.site-footer .meta a { color: var(--muted); }
.site-footer .meta a:hover { color: var(--text); }

/* ---- Single episode page ------------------------------------------------ */

.post-hero {
  position: relative;
  padding: 170px 0 70px;
}
.post-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero_bg_2.png') center 30% / cover no-repeat;
}
.post-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 9, 8, 0.75) 0%, rgba(12, 9, 8, 0.55) 50%, var(--bg) 100%);
}
.post-hero .container { position: relative; z-index: 2; max-width: 880px; }
.post-hero .display { font-size: clamp(1.8rem, 4vw, 3rem); margin-top: 14px; text-shadow: 0 4px 26px rgba(0, 0, 0, 0.85); }
@media (max-width: 720px) {
  .post-hero { padding: 64px 0 52px; }
}
.post-date {
  margin-top: 14px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-main { max-width: 880px; margin: 0 auto; padding: 0 24px 90px; }
.post-video {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 40px 0 26px;
}
.post-video img { width: 100%; }
.post-video .big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(12, 9, 8, 0.8);
  border: 1px solid rgba(243, 237, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.post-video:hover .big-play { background: var(--red); transform: translate(-50%, -50%) scale(1.06); }
.big-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.post-actions { text-align: center; margin-bottom: 54px; }
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-body p, .post-body li { color: var(--muted); max-width: 68ch; }
.post-body strong { color: var(--text); }
.post-back { margin-top: 50px; }

/* ---- Reveal on scroll ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ep-card, .ep-thumb img { transition: none; }
}
