/* =========================================================
   iFody Blog — Home page (arquitetura SEO com layouts variados)
   Seções: bhero · stats-bar · ctabs · start-here · editorial · home-faq
   (most-read e newsletter ficam em styles-blog.css / styles-comments.css)
   Usa as variáveis de design do tema (--pink, --bg, --grad-primary…).
   ========================================================= */

/* ============================================
   1. HERO (split texto + mídia)
   ============================================ */
.bhero {
  background:
    radial-gradient(ellipse 70% 60% at 15% 0%, rgba(255, 61, 138, .14) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(139, 60, 255, .14) 0%, transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bhero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 44px;
}
@media (min-width: 900px) {
  .bhero__grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    padding: 72px 0;
  }
}

.bhero__title {
  font-family: 'Fraunces', 'Outfit', serif;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 14px 0 18px;
}
.bhero__title em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bhero__lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 46ch;
}

.bhero__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  max-width: 520px;
  transition: border-color .25s, box-shadow .25s;
}
.bhero__search:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 61, 138, .1);
}
.bhero__search svg { color: var(--text-3); flex-shrink: 0; }
.bhero__search input {
  flex: 1; min-width: 0;
  background: transparent; border: 0;
  color: var(--text); font-family: inherit;
  font-size: 15px; outline: none; padding: 11px 0;
}
.bhero__search input::placeholder { color: var(--text-3); }
.bhero__search .btn { flex-shrink: 0; }

.bhero__hot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bhero__hot-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bhero__hot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-light);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid rgba(255, 61, 138, .25);
  border-radius: 999px;
  transition: all .2s;
}
.bhero__hot-link:hover {
  background: rgba(255, 61, 138, .1);
  border-color: var(--pink);
}

/* Mídia do hero */
.bhero__media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
@media (min-width: 900px) { .bhero__media { aspect-ratio: 1/1; max-height: 480px; } }
.bhero__video,
.bhero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bhero__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(15, 10, 26, .5) 100%);
}
.bhero__media-badge {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(15, 10, 26, .8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
}
.bhero__media-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 61, 138, .6);
  animation: bhero-pulse 2s infinite;
}
@keyframes bhero-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 61, 138, .6); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 61, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 138, 0); }
}

/* ============================================
   2. STATS BAR
   ============================================ */
.stats-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.stats-bar__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 0;
}
@media (min-width: 720px) { .stats-bar__row { grid-template-columns: repeat(4, 1fr); } }

.stats-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  justify-content: center;
}
@media (min-width: 720px) {
  .stats-bar__item:not(:last-child) { border-right: 1px solid var(--line); }
}
.stats-bar__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 61, 138, .1);
  color: var(--pink-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stats-bar__value {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
}
.stats-bar__label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ============================================
   3. CATEGORY TABS (CSS-only via radio inputs)
   ============================================ */
.ctabs { padding: 56px 0; background: var(--bg); }
@media (min-width: 720px) { .ctabs { padding: 76px 0; } }

.ctabs__head { text-align: center; margin-bottom: 32px; }
.ctabs__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.ctabs__sub { color: var(--text-2); font-size: 16px; margin: 0; }

/* Radios escondidos */
.ctabs__radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* Navegação de abas */
.ctabs__nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px 24px;
  padding: 0 20px 4px;
}
.ctabs__nav::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .ctabs__nav { flex-wrap: wrap; justify-content: center; margin: 0 0 28px; padding: 0; overflow: visible; }
}

.ctabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s var(--ease);
  user-select: none;
}
.ctabs__tab:hover { border-color: var(--text-3); color: var(--text); }
.ctabs__tab-emoji { font-size: 18px; line-height: 1; }

/* Painéis: escondidos por padrão */
.ctabs__panel { display: none; animation: ctab-fade .3s var(--ease); }
@keyframes ctab-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Liga cada radio ao seu painel e ao estado ativo da aba.
   A ordem dos radios é a mesma das abas e dos painéis. */
#ctab-contos-eroticos:checked            ~ .ctabs__panel--contos-eroticos,
#ctab-guias-de-prazer:checked            ~ .ctabs__panel--guias-de-prazer,
#ctab-posicoes-sexuais:checked           ~ .ctabs__panel--posicoes-sexuais,
#ctab-massagem-erotica:checked           ~ .ctabs__panel--massagem-erotica,
#ctab-fetiches-e-fantasias:checked       ~ .ctabs__panel--fetiches-e-fantasias,
#ctab-identidades-e-sexualidade:checked  ~ .ctabs__panel--identidades-e-sexualidade {
  display: block;
}

/* Estado ativo da aba: cada radio (irmão anterior) marca o label correspondente
   dentro de .ctabs__nav. Os radios ficam ANTES de .ctabs__nav no HTML. */
#ctab-contos-eroticos:checked           ~ .ctabs__nav label[for="ctab-contos-eroticos"],
#ctab-guias-de-prazer:checked           ~ .ctabs__nav label[for="ctab-guias-de-prazer"],
#ctab-posicoes-sexuais:checked          ~ .ctabs__nav label[for="ctab-posicoes-sexuais"],
#ctab-massagem-erotica:checked          ~ .ctabs__nav label[for="ctab-massagem-erotica"],
#ctab-fetiches-e-fantasias:checked      ~ .ctabs__nav label[for="ctab-fetiches-e-fantasias"],
#ctab-identidades-e-sexualidade:checked ~ .ctabs__nav label[for="ctab-identidades-e-sexualidade"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
/* Foco acessível via teclado */
.ctabs__radio:focus-visible ~ .ctabs__nav label[for] { outline: 2px solid var(--pink); outline-offset: 2px; }

/* Conteúdo do painel */
.ctabs__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ctabs__panel-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.ctabs__panel-title a { color: var(--text); text-decoration: none; }
.ctabs__panel-title a:hover { color: var(--pink-light); }
.ctabs__panel-desc { font-size: 15px; color: var(--text-2); margin: 0; max-width: 60ch; line-height: 1.55; }

.ctabs__panel-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-light);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ctabs__panel-all:hover { color: var(--pink); }
.ctabs__panel-all svg { transition: transform .2s; }
.ctabs__panel-all:hover svg { transform: translateX(3px); }

.ctabs__subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.ctabs__sub-chip {
  display: inline-block;
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: all .2s var(--ease);
}
.ctabs__sub-chip:hover {
  color: var(--pink-light);
  border-color: var(--pink);
  background: rgba(255, 61, 138, .06);
}

.ctabs__posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .ctabs__posts { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.ctabs__post {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: all .2s var(--ease);
}
@media (min-width: 640px) { .ctabs__post { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; } }
.ctabs__post:hover { border-color: var(--pink); transform: translateY(-3px); }

.ctabs__post-thumb {
  width: 72px; height: 72px;
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}
@media (min-width: 640px) { .ctabs__post-thumb { width: 100%; height: 130px; border-radius: 0; } }
.ctabs__post-thumb img,
.ctabs__post-grad { width: 100%; height: 100%; object-fit: cover; display: block; }

.ctabs__post-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
@media (min-width: 640px) { .ctabs__post-body { padding: 12px 14px 14px; } }
.ctabs__post-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ctabs__post:hover .ctabs__post-title { color: var(--pink-light); }
.ctabs__post-meta { font-size: 11px; color: var(--text-3); }

.ctabs__empty {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.ctabs__empty p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ============================================
   4. START HERE (guias-pilar)
   ============================================ */
.start-here { padding: 56px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .start-here { padding: 76px 0; } }

.start-here__head { max-width: 640px; margin-bottom: 32px; }
.start-here__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 10px 0 0;
}

.start-here__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .start-here__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .start-here__grid { grid-template-columns: repeat(4, 1fr); } }

.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.pillar-card:hover { transform: translateY(-5px); border-color: var(--pink); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }

.pillar-card__media {
  position: relative;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pillar-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar-card__emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }

.pillar-card__body { padding: 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pillar-card__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold, #C9A961);
}
.pillar-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
}
.pillar-card__desc { font-size: 13px; color: var(--text-2); line-height: 1.5; margin: 0; }
.pillar-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-light);
  margin-top: auto;
  padding-top: 8px;
}
.pillar-card__cta svg { transition: transform .2s; }
.pillar-card:hover .pillar-card__cta svg { transform: translateX(3px); }

/* ============================================
   6. EDITORIAL TIMELINE (E-E-A-T)
   ============================================ */
.editorial { padding: 56px 0; background: var(--bg); }
@media (min-width: 720px) { .editorial { padding: 76px 0; } }
.editorial__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 900px) {
  .editorial__inner { grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
}

.editorial__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 10px 0 14px;
}
.editorial__lead { font-size: 15px; color: var(--text-2); line-height: 1.65; margin: 0; }
@media (min-width: 900px) { .editorial__intro { position: sticky; top: calc(var(--header-h, 64px) + 20px); } }

/* Timeline */
.editorial__timeline {
  list-style: none;
  margin: 0; padding: 0;
  position: relative;
}
.editorial__timeline::before {
  content: '';
  position: absolute;
  left: 21px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--pink) 0%, var(--purple, #8B3CFF) 100%);
  opacity: .3;
}
.editorial__step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
}
.editorial__step:last-child { padding-bottom: 0; }
.editorial__step-dot {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.editorial__step-title { display: block; font-weight: 700; font-size: 16px; color: var(--text); margin: 8px 0 4px; }
.editorial__step-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* ============================================
   8. HOME FAQ (accordion)
   ============================================ */
.home-faq { padding: 56px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .home-faq { padding: 76px 0; } }
.home-faq__inner { max-width: 780px; }
.home-faq__head { text-align: center; margin-bottom: 28px; }
.home-faq__title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 34px);
  letter-spacing: -.02em;
  margin: 8px 0 0;
}

.home-faq__list { display: flex; flex-direction: column; gap: 10px; }
.home-faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s;
}
.home-faq__item[open] { border-color: var(--pink); }
.home-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  position: relative;
  user-select: none;
}
.home-faq__q::-webkit-details-marker { display: none; }
.home-faq__icon {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
}
.home-faq__icon::before,
.home-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--pink-light);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.home-faq__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.home-faq__icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.home-faq__item[open] .home-faq__icon::after { transform: rotate(90deg); opacity: 0; }

.home-faq__a {
  padding: 0 20px 20px;
  animation: faq-reveal .3s var(--ease);
}
@keyframes faq-reveal { from { opacity: 0; } to { opacity: 1; } }
.home-faq__a p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin: 0 0 12px; }
.home-faq__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-light);
  text-decoration: none;
}
.home-faq__link:hover { color: var(--pink); }
.home-faq__link svg { transition: transform .2s; }
.home-faq__link:hover svg { transform: translateX(3px); }
