/* ============================================================
   FLO-STATE Podcast — stylesheet
   Aesthetic: bold dark with purple accents, streetwear edge,
   confident typography, cinematic spacing.
============================================================ */

:root {
  --bg:          #050507;
  --bg-soft:     #0d0b13;
  --panel:       rgba(255,255,255,0.03);
  --panel-hi:    rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.18);

  --accent-1:    #7b2cbf;
  --accent-2:    #9b5de5;
  --accent-3:    #c77dff;
  --accent-glow: rgba(123, 44, 191, 0.35);

  --text:        #f4f0ff;
  --text-soft:   #b8b0c8;
  --text-mute:   #7d7589;

  --max:         1240px;
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   24px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow: 0 0 80px -20px var(--accent-glow);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ============================================================
   BACKGROUND LAYERS
============================================================ */

#bgCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  mix-blend-mode: screen; opacity: 0.95;
}

.bg-gradient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%,   rgba(123,44,191,0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(199,125,255,0.05), transparent 60%),
    var(--bg);
}

.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   LAYOUT
============================================================ */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

main { position: relative; z-index: 1; }

section { position: relative; z-index: 1; }

.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }

/* ============================================================
   HEADER / NAV
============================================================ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .35s var(--ease-out), background .35s var(--ease-out), backdrop-filter .35s var(--ease-out);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(5,5,7,0.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { height: 44px; width: auto; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  color: var(--text-soft);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color .25s var(--ease-out);
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--accent-2);
  transition: width .3s var(--ease-out);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

.nav-toggle { display: none; }

/* ============================================================
   HERO
============================================================ */

.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero-inner {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  width: 100%;
}
.hero-media {
  width: min(560px, 78%);
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-media::before {
  content: ''; position: absolute; inset: -10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  animation: pulse-glow 6s var(--ease-in-out) infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
/* The mask lives on the wrapper so we can zoom the <video> inside it
   without scaling the mask. This lets the logo artwork fill more of
   the visible circle while the mask + surrounding glow stay put. */
.hero-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle, #000 70%, transparent 71%);
          mask-image: radial-gradient(circle, #000 70%, transparent 71%);
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: transparent;
  transform: scale(1.18);
  transform-origin: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 60px rgba(255,255,255,0.18);
}
.hero h1 .accent {
  color: var(--accent-2);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 0 40px rgba(155, 93, 229, 0.5);
}
.hero-lead {
  max-width: 620px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  margin: 0;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: all .3s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px var(--accent-glow);
}
.btn--ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--panel-hi);
  border-color: var(--border-hi);
}
.btn .arrow {
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   SECTION HEADER
============================================================ */

.section-head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-3);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0;
}
.section-sub {
  color: var(--text-soft);
  font-size: clamp(15px, 1.2vw, 17px);
  margin: 0; line-height: 1.6;
}

/* ============================================================
   FEATURED EPISODE
============================================================ */

.featured {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(123,44,191,0.10), rgba(155,93,229,0.04)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.featured__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.featured__art img {
  width: 100%; height: 100%; object-fit: cover;
}
.featured__body { position: relative; z-index: 1; }
.featured__label {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent-3); font-weight: 600;
  margin-bottom: 18px;
}
.featured__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.featured__meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--text-mute); font-size: 13px;
  margin-bottom: 18px;
}
.featured__meta span::before { content: '— '; opacity: 0.5; }
.featured__meta span:first-child::before { content: ''; }
.featured__desc { color: var(--text-soft); margin: 0 0 28px; }

/* Custom audio player */
.player {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.player__top {
  display: flex; align-items: center; gap: 16px;
}
.player__playBtn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 24px -4px var(--accent-glow);
  transition: transform .25s var(--ease-out);
}
.player__playBtn:hover { transform: scale(1.06); }
.player__playBtn svg { width: 22px; height: 22px; }
.player__time {
  font-variant-numeric: tabular-nums;
  color: var(--text-soft); font-size: 13px;
  min-width: 90px;
}
.player__progress {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.player__progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 999px;
  transition: width .1s linear;
}
.player__viz {
  width: 100%; height: 60px; display: block;
}

/* ============================================================
   EPISODE GRID
============================================================ */

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.episode-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .35s var(--ease-out);
  position: relative;
}
.episode-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-1), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease-out);
  pointer-events: none;
}
.episode-card:hover {
  transform: translateY(-6px);
  background: var(--panel-hi);
}
.episode-card:hover::before { opacity: 1; }
.episode-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.episode-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.episode-card:hover .thumb img { transform: scale(1.06); }
.episode-card .thumb::after {
  content: '►';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  color: #fff; font-size: 28px;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.episode-card:hover .thumb::after { opacity: 1; }
.episode-card .card-body { padding: 22px; }
.episode-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px; font-weight: 600;
  margin: 0 0 10px; line-height: 1.25;
}
.episode-card .meta {
  display: flex; gap: 10px;
  color: var(--text-mute); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.episode-card p {
  color: var(--text-soft);
  font-size: 14px; line-height: 1.55;
  margin: 0;
}

/* ============================================================
   ABOUT / HOST
============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-soft);
  font-size: 17px; line-height: 1.7;
}
.about-text p + p { margin-top: 16px; }

.feature-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-list li {
  display: flex; gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease-out);
}
.feature-list li:hover { border-color: var(--border-hi); }
.feature-list .num {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent-3);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em;
  flex-shrink: 0; min-width: 28px;
}
.feature-list strong {
  display: block; color: var(--text);
  font-weight: 600; margin-bottom: 4px;
}
.feature-list span { color: var(--text-mute); font-size: 14px; }

.host-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(123,44,191,0.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.host-card__avatar {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-1);
  padding: 6px;
  background: var(--bg);
  flex-shrink: 0;
}
.host-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.host-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.host-card .role {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-3); font-weight: 600;
  margin-bottom: 14px;
}
.host-card p { color: var(--text-soft); margin: 0; font-size: 16px; line-height: 1.65; }

/* ============================================================
   SUBSCRIBE
============================================================ */

.subscribe-card {
  text-align: center;
  padding: 80px 48px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(123,44,191,0.20), transparent 70%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.subscribe-form {
  display: flex; gap: 10px;
  max-width: 520px; margin: 32px auto 0;
}
.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(0,0,0,0.4);
  color: var(--text);
  font-family: inherit; font-size: 15px;
  outline: none;
  transition: border-color .25s var(--ease-out);
}
.subscribe-form input::placeholder { color: var(--text-mute); }
.subscribe-form input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(123,44,191,0.15);
}

/* ============================================================
   PLATFORMS / LISTEN ON
============================================================ */

.platforms {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 36px;
}
.platform {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px; font-weight: 500;
  transition: all .25s var(--ease-out);
}
.platform:hover {
  border-color: var(--border-hi);
  color: var(--text);
  transform: translateY(-2px);
}
.platform svg { width: 16px; height: 16px; }

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  position: relative; z-index: 1;
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.site-footer .brand .logo { height: 36px; }
.footer-meta {
  color: var(--text-mute); font-size: 13px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-soft); font-size: 13px;
  transition: color .25s var(--ease-out);
}
.footer-links a:hover { color: var(--text); }

/* ============================================================
   EPISODE DETAIL PAGES (used by generated episode .html)
============================================================ */

.episode-detail {
  padding: 160px 0 120px;
}
.episode-detail__inner {
  max-width: 820px; margin: 0 auto;
}
.episode-detail .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-mute); font-size: 13px;
  margin-bottom: 32px;
  transition: color .25s var(--ease-out);
}
.episode-detail .back:hover { color: var(--accent-3); }
.episode-detail h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.05; margin: 0 0 18px;
}
.episode-detail .meta {
  color: var(--text-mute); font-size: 14px;
  margin-bottom: 36px;
}
.episode-detail audio {
  width: 100%; margin: 0 0 36px;
}
.episode-detail h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; margin: 0 0 14px;
}
.episode-detail p {
  color: var(--text-soft);
  font-size: 17px; line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; padding: 32px; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .host-card { grid-template-columns: 1fr; text-align: center; padding: 36px; gap: 24px; }
  .host-card__avatar { margin: 0 auto; width: 140px; height: 140px; }
  .section { padding: 80px 0; }
  .subscribe-card { padding: 56px 28px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,5,7,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    width: 32px; height: 32px;
    background: transparent; border: none;
    align-items: center; justify-content: center;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .3s var(--ease-out);
  }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-inner { gap: 28px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { justify-content: center; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { width: 100%; }
  .subscribe-form .btn { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
