/* ============================================================
   Segredo dos Resultados — Podcast com Marcos Custódio
   Design system (CSS puro) — fiel ao layout original
   ============================================================ */

:root {
  /* Cores (OKLCH — mesmas do projeto original) */
  --background: oklch(0.145 0 0);
  --bg-soft: oklch(0.18 0 0);
  --foreground: oklch(0.965 0 0);
  --card: oklch(0.225 0 0);
  --muted-foreground: oklch(0.78 0 0);
  --primary: oklch(0.88 0.19 130);     /* verde-limão */
  --primary-foreground: oklch(0.205 0 0);
  --gold: oklch(0.72 0.095 80);        /* dourado */
  --border: oklch(0.28 0 0);

  --font-serif: 'Saira', 'Segoe UI', sans-serif;
  --font-sans: 'Sora', 'Segoe UI', sans-serif;

  --radius: 1.125rem;
  --container: 80rem;       /* max-w-7xl */
  --header-h: 80px;
}

/* Fallback de cor para navegadores sem suporte a oklch */
@supports not (color: oklch(0 0 0)) {
  :root {
    --background: #0a0a0a;
    --bg-soft: #161616;
    --foreground: #f4f4f4;
    --card: #1f1f1f;
    --muted-foreground: #b3b3b3;
    --primary: #c2f041;
    --primary-foreground: #1a1a1a;
    --gold: #c5a86a;
    --border: #333333;
  }
}

/* -------- Acessibilidade: skip-link e sr-only -------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; }

.serif { font-family: var(--font-serif); }
.gold { color: var(--gold); }
.muted { color: var(--muted-foreground); }
.muted.lg { font-size: 1.125rem; margin-bottom: 1.5rem; }
.sm { font-size: 0.875rem; }
.arrow { display: inline-block; transition: transform .25s ease; }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { padding: 6rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.section-lead {
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 3.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  margin-bottom: 1.25rem;
}

/* -------- Ícones SVG -------- */
.ico, .ico-lg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico { width: 18px; height: 18px; }
.ico-lg { width: 32px; height: 32px; }

/* -------- Botões -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: rgba(255,255,255,0.15); color: var(--foreground); }
.btn-ghost:hover { background: var(--foreground); color: var(--background); }
.btn-dark { background: var(--background); color: var(--foreground); }
.btn-header { padding: 0.75rem 1.75rem; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.link-arrow:hover .arrow { transform: translateX(4px); }

/* -------- Header -------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
@supports not (background: color-mix(in oklab, red, blue)) {
  .site-header { background: rgba(10,10,10,0.85); }
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img { height: 48px; width: auto; }
@media (min-width: 768px) { .logo-img { height: 56px; } }

.nav-desktop { display: none; gap: 2rem; }
.nav-desktop a { font-size: 0.875rem; color: var(--muted-foreground); transition: color .2s ease; }
.nav-desktop a:hover { color: var(--foreground); }
@media (min-width: 1024px) { .nav-desktop { display: flex; align-items: center; } }

.btn-header { display: none; }
@media (min-width: 480px) { .btn-header { display: inline-flex; } }

/* Hambúrguer */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--foreground); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Menu mobile */
.mobile-menu {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: color-mix(in oklab, var(--background) 95%, transparent);
  backdrop-filter: blur(20px);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.5rem 1.5rem; }
.mobile-menu nav a {
  padding: 0.85rem 0.25rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .2s ease;
}
.mobile-menu nav a:hover { color: var(--foreground); }
.mobile-menu nav .btn { margin-top: 1rem; justify-content: center; border-bottom: none; }

/* -------- Hero -------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.94) 0%, rgba(0,0,0,0.78) 38%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.12) 100%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 32%),
    url('../assets/img/mic-hero.jpg');
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .hero {
    background-image:
      linear-gradient(to bottom, rgba(0,0,0,0.62), rgba(0,0,0,0.94)),
      url('../assets/img/mic-hero.jpg');
  }
}
.hero-grid { display: grid; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5.4rem);
  line-height: 0.95;
  font-weight: 700;
  margin-bottom: 2rem;
  text-wrap: balance;
}
.hero-text {
  color: var(--muted-foreground);
  font-size: 1.2rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-player {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
}
.player-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
}
.player-frame img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.7; transition: opacity .3s ease;
}
.player-frame:hover img { opacity: 0.9; }
.play-badge {
  position: absolute; inset: 0; margin: auto;
  width: 80px; height: 80px; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
  transition: transform .3s ease;
}
.play-badge svg { width: 28px; height: 28px; margin-left: 4px; }
.player-frame:hover .play-badge { transform: scale(1.1); }
.player-meta {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--muted-foreground); font-size: 0.875rem; margin-top: 1.25rem;
}

/* -------- Plataformas -------- */
.platforms-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .platforms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .platforms-grid { grid-template-columns: repeat(4, 1fr); } }
.platform-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}
.platform-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
.platform-card .ico-lg { margin: 0 auto; }
.platform-card h3 { margin: 1.25rem 0 0.5rem; font-size: 1.25rem; }
.platform-card p { color: var(--muted-foreground); font-size: 0.875rem; }

/* -------- Grid de cards (episódios / artigos / frases) -------- */
.cards-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

/* Cards com foto de fundo + gradiente escuro na base (regra anti-genérico) */
.ep-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .3s ease;
}
.ep-card:hover { transform: translateY(-8px); }
.card-media { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ep-card:hover .card-media img { transform: scale(1.06); }
.ep-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 52%, rgba(0,0,0,0.93) 100%);
  z-index: 1;
}
.card-body { position: relative; z-index: 2; padding: 1.75rem; }
.tag { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; margin-bottom: 0.75rem; }
.card-body h3 { font-size: 1.375rem; margin-bottom: 0.75rem; line-height: 1.2; color: #fff; }
.card-body .muted { font-size: 0.95rem; margin-bottom: 1.5rem; color: rgba(255,255,255,0.82); }

/* Variante: thumbnail no topo + corpo sólido (ideal p/ capas do YouTube com texto) */
.ep-thumb {
  justify-content: flex-start;
  min-height: 0;
  background: var(--card);
}
.ep-thumb::before { display: none; }
.ep-thumb .card-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
.ep-thumb .card-body h3 { color: var(--foreground); }
.ep-thumb .card-body .muted { color: var(--muted-foreground); }

/* Badge de duração sobre a foto do episódio */
.ep-card .duration {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* CTA centralizado abaixo de uma grade */
.section-cta { margin-top: 3rem; text-align: center; }

/* -------- Cortes / Shorts -------- */
.cortes-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .cortes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cortes-grid { grid-template-columns: repeat(6, 1fr); } }
.corte-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 9 / 14;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease;
}
.corte-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.corte-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.corte-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.9) 100%);
  z-index: 1;
}
.corte-play {
  position: absolute; top: 0.7rem; left: 0.7rem;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.corte-play svg { width: 15px; height: 15px; margin-left: 2px; }
.corte-card:hover .corte-play { transform: scale(1.12); }
.corte-title {
  position: relative; z-index: 2;
  padding: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

/* -------- Frases -------- */
.quotes-bg { background: linear-gradient(180deg, oklch(0.16 0 0), oklch(0.12 0 0)); }
@supports not (color: oklch(0 0 0)) {
  .quotes-bg { background: linear-gradient(180deg, #1c1c1c, #131313); }
}
.quote-card {
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex; flex-direction: column;
}
.quote-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.3;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.quote-card figcaption { margin-top: auto; font-size: 0.875rem; }

/* -------- Host -------- */
.host-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .host-grid { grid-template-columns: 420px 1fr; gap: 5rem; }
}
.host-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 1.5rem;
}
@media (min-width: 1024px) { .host-photo img { height: 620px; } }
.host-copy .btn { margin-top: 1rem; }

/* -------- Manifesto -------- */
.manifesto-bg {
  padding: 7rem 0;
  text-align: center;
  background-image:
    linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.92)),
    url('../assets/img/manifesto-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (min-width: 1024px) { .manifesto-bg { padding: 9rem 0; } }
.manifesto-inner { max-width: 56rem; }
.manifesto-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 2.5rem;
  text-wrap: balance;
}
.manifesto-text { font-size: clamp(1.125rem, 2vw, 1.5rem); color: #d7d7d7; line-height: 1.6; }

/* -------- Patrocinadores -------- */
.sponsors-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .sponsors-grid { grid-template-columns: repeat(4, 1fr); } }
.sponsor {
  height: 8rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground);
  font-size: 1.25rem;
  transition: transform .25s ease, border-color .25s ease;
}
.sponsor:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }

/* -------- CTA -------- */
.cta { padding: 6rem 0; background: var(--primary); text-align: center; }
@media (min-width: 1024px) { .cta { padding: 8rem 0; } }
.cta-inner { max-width: 48rem; }
.cta-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.cta-text {
  font-size: 1.125rem;
  color: color-mix(in oklab, var(--primary-foreground) 90%, transparent);
  margin: 0 auto 2.5rem;
  max-width: 42rem;
}
@supports not (background: color-mix(in oklab, red, blue)) {
  .cta-text { color: rgba(26,26,26,0.9); }
}
.cta-form {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  max-width: 36rem; margin: 0 auto; justify-content: center;
}
.cta-form input {
  flex: 1; min-width: 240px;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: none; outline: none;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--background);
}
.cta-form input:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,0,0.25); }
.form-feedback { margin-top: 1rem; font-weight: 600; color: var(--primary-foreground); min-height: 1.2em; }

/* -------- Footer -------- */
.site-footer { padding: 3.5rem 0; border-top: 1px solid var(--border); background: oklch(0.1 0 0); }
@supports not (color: oklch(0 0 0)) { .site-footer { background: #0d0d0d; } }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted-foreground); font-size: 0.875rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--foreground); }

/* -------- Player em modal (lightbox) -------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.video-modal[hidden] { display: none; }
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}
.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
}
.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.8);
}
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close {
  position: absolute;
  top: -3.25rem; right: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.video-modal__close:hover { background: var(--primary); color: var(--primary-foreground); transform: scale(1.05); }
.video-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 600px) {
  .video-modal { padding: 1rem; }
  .video-modal__close { top: -3rem; }
}

/* -------- Acessibilidade -------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Estado de erro do formulário (WCAG: erro por campo) */
.cta-form input[aria-invalid="true"] {
  box-shadow: 0 0 0 3px var(--primary-foreground), 0 0 0 5px #b3261e;
}
.form-feedback.is-error { color: var(--primary-foreground); font-weight: 700; }

/* Touch targets >= 44px no mobile */
@media (max-width: 1024px) {
  .nav-desktop a,
  .mobile-menu nav a,
  .footer-links a,
  .link-arrow {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-links { gap: 0.5rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .manifesto-bg { background-attachment: scroll; }
}
