/* =====================================================
   OLHAPAUTA — SPRINT 5: UX & VISUAL PREMIUM
   Arquivo de overrides não-destrutivos.
   Carrega após todos os outros CSS do tema.
   Estratégia: aprimorar sem destruir.
===================================================== */

/* =====================================================
   MÓDULO 1 — TIPOGRAFIA FLUIDA (clamp)
   Melhora leitura e hierarchy sem mudar fontes base
===================================================== */

/* Títulos com tamanho fluido */
.entry-title {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.home .post-card--featured .title,
.blog .post-card--featured .title {
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.home .post-card--mini .title,
.blog .post-card--mini .title {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.28;
}

.home .globo-hero .hero-title {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.32;
}

/* Títulos de seção mais definidos */
.home .section-title,
.blog .section-title {
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: .12em;
}

/* Archive: títulos de card mais legíveis */
body:is(.category,.archive,.blog) .archive-post-title {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.25;
}

/* =====================================================
   MÓDULO 2 — UX DO SINGLE (leitura premium)
===================================================== */

/* Largura de leitura ideal (72 chars ~ 680px) */
.single .entry-text {
  max-width: 72ch;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.82;
  color: rgba(15,23,42,0.91);
}

/* Melhor respiro entre parágrafos */
.single .entry-text p {
  margin-bottom: 1.65em;
}

/* Melhor respiro entre anúncios no artigo */
.single .ad-break,
.single .in-content-ad-container {
  margin: 52px 0;
}

/* Título do artigo mais impactante */
.single .entry-title {
  font-size: clamp(26px, 4.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

/* Subtítulo com mais destaque */
.single .entry-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: rgba(15,23,42,0.72);
  margin-bottom: 28px;
}

/* Meta (autor/data) mais elegante */
.single .entry-meta {
  font-size: 13px;
  color: rgba(15,23,42,0.58);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,23,42,0.07);
  margin-bottom: 24px;
}

/* Author box mais premium */
.single .author-box {
  margin-top: 48px;
  border-radius: var(--radius-xl, 18px);
  border-left: 4px solid var(--accent, #e53935);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.single .author-box__name {
  font-size: 15px;
}

.single .author-box__bio {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(15,23,42,0.72);
}

/* Related posts mais premium */
.single .related-grid .related-item,
.single .related-grid > a {
  border-radius: var(--radius-xl, 18px);
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.single .related-grid .related-item:hover,
.single .related-grid > a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(229,57,53,0.20);
}

/* Thumbnail dos related com aspect-ratio */
.single .related-grid img {
  aspect-ratio: 3/2;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Share box mais leve */
.single .share-box {
  border-radius: var(--radius-xl, 18px);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* =====================================================
   MÓDULO 3 — HOMEPAGE PREMIUM
===================================================== */

/* Hero principal: sombra e profundidade */
.home .post-card--featured,
.blog .post-card--featured {
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl, 18px);
  border: none;
}

/* Badge destaque com glow sutil */
.home .badge--destaque,
.blog .badge--destaque {
  background: #e53935;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.18), 0 2px 8px rgba(229,57,53,0.28);
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: .10em;
}

/* Cards laterais do hero com borda mais suave */
.home .post-card--mini,
.blog .post-card--mini {
  border-radius: var(--radius-xl, 18px);
  border: none;
  box-shadow: var(--shadow-card);
}

/* Cards do grid-4 — hover mais elevado */
.home .post-card.card-vertical,
.blog .post-card.card-vertical {
  box-shadow: var(--shadow-card);
  border: none;
  border-radius: var(--radius-xl, 18px);
}

.home .post-card.card-vertical:hover,
.blog .post-card.card-vertical:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Seção Globo: colunas com separador visual melhor */
.globo-col {
  background: #fff;
  border-radius: var(--radius-lg, 14px);
  padding: 18px;
  border: 1px solid var(--line-2, rgba(15,23,42,0.08));
  box-shadow: var(--shadow-sm);
}

/* Globo items: thumb mais arredondada */
.globo-item .item-thumb {
  border-radius: 8px;
  flex-shrink: 0;
}

/* Magazine destaque: borda removida, sombra + radius maior */
.home .mag-big,
.blog .mag-big {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl, 18px);
}

/* Magazine laterais: radius maior */
.mag-small {
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(15,23,42,0.07);
}

.mag-small:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Section head: divisória com gradiente */
.home .section-head,
.blog .section-head {
  border-top: none;
  position: relative;
  padding-top: 18px;
}

.home .section-head::before,
.blog .section-head::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--accent, #e53935) 0%,
    rgba(15,23,42,0.10) 40%,
    transparent 100%
  );
}

/* Section more button mais premium */
.home .section-more,
.blog .section-more {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.home .section-more:hover,
.blog .section-more:hover {
  transform: translateY(-1px);
}

/* =====================================================
   MÓDULO 4 — MOBILE UX
===================================================== */

@media (max-width: 768px) {

  /* Mais respiro no site-main mobile */
  .home .site-main,
  .blog .site-main {
    padding: 20px 0 48px;
  }

  /* Container com mais respiro lateral no mobile */
  .container {
    padding: 0 16px;
  }

  /* Hero featured no mobile: altura mínima maior */
  .home .post-card--featured .thumb,
  .blog .post-card--featured .thumb {
    min-height: 300px;
  }

  /* Globo col: sem padding extra no mobile */
  .globo-col {
    padding: 14px;
  }

  /* Tap targets: globo items mais altos */
  .globo-item {
    min-height: 56px;
    align-items: center;
  }

  /* Cards do grid-4: thumbnail mais impactante no mobile */
  .card-vertical .card-thumb-small {
    height: 220px;
  }

  /* Grid-4 título no mobile: um pouco maior */
  .card-vertical .grid-title {
    font-size: 14px;
    line-height: 1.3;
  }

  /* Section spacing no mobile */
  .home .home-section,
  .blog .home-section {
    margin-top: 28px;
  }

  /* Related posts no mobile: 1 coluna */
  .related-grid {
    grid-template-columns: 1fr;
  }

  /* Entry meta no single */
  .single .entry-meta {
    font-size: 12px;
  }

  /* Single: breadcrumbs menores */
  .breadcrumbs {
    font-size: 10px;
  }

}

@media (max-width: 480px) {

  /* Hero muito pequeno: ocupar tela toda */
  .home .post-card--featured .thumb,
  .blog .post-card--featured .thumb {
    min-height: 260px;
  }

  /* Minis: 1 coluna no mobile pequeno */
  .home .featured-side,
  .blog .featured-side {
    grid-template-columns: 1fr;
  }

  .home .post-card--mini .thumb,
  .blog .post-card--mini .thumb {
    height: 180px;
  }

  /* Author box: sem imagem grande em mobile */
  .single .author-box__avatar img {
    width: 52px;
    height: 52px;
  }

  /* Globo no mobile: sem colunas extras */
  .globo-grid {
    gap: 20px;
  }

}

/* =====================================================
   MÓDULO 5 — CONSISTÊNCIA VISUAL
===================================================== */

/* Sidebar cards com sombra */
.single .single-sidebar .widget-box {
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(15,23,42,0.07);
}

/* Archive cards com sombra e radius maior */
body:is(.category,.archive,.blog) .archive-card {
  border-radius: var(--radius-xl, 18px);
  box-shadow: var(--shadow-card);
  border-color: rgba(15,23,42,0.07);
}

body:is(.category,.archive,.blog) .archive-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Archive sidebar: sombra */
body:is(.category,.archive,.blog) .archive-sidebar .widget-box {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg, 14px);
  border-color: rgba(15,23,42,0.07);
}

/* Footer: pequeno gradiente no topo */
.site-footer {
  border-top: none;
  position: relative;
}
.site-footer::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--accent, #e53935) 30%,
    var(--accent, #e53935) 70%,
    transparent 100%
  );
}

/* Hover suave em todos os links do header */
.site-header a {
  transition: color .2s ease;
}

/* Página de categoria: título da seção com borda esquerda */
body:is(.category,.archive,.blog) .archive-title {
  font-size: clamp(20px, 3.5vw, 38px);
}

/* =====================================================
   MÓDULO 6 — MICRO-DETALHES PREMIUM
===================================================== */

/* Scroll suave global */
html {
  scroll-behavior: smooth;
}

/* Foco acessível em qualquer elemento interativo */
:focus-visible {
  outline: 2px solid rgba(229,57,53,0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Seleção de texto com cor do tema */
::selection {
  background: rgba(229,57,53,0.15);
  color: var(--text, #0f172a);
}

/* Post category badge no single */
.single .post-category {
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(229,57,53,0.25);
}

/* Breadcrumbs: pill mais suave */
.breadcrumbs {
  border-radius: 999px;
}

/* Imagem da capa do single: shadow */
.single .entry-image {
  box-shadow: var(--shadow-md);
}

/* Load More button: mais premium */
.btn-load-more {
  letter-spacing: .06em;
  padding: 14px 40px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-load-more:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   SPRINT 6 — entry-header-top (badge + categoria)
===================================================== */
.single .entry-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.single .entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.single .entry-meta__sep {
  opacity: 0.4;
}

/* =====================================================
   MÓDULO 7 — DARK MODE (prefers-color-scheme: dark)
   Respeita preferência do sistema operacional.
   Escopo limitado: não altera header/footer (já escuros).
===================================================== */
@media (prefers-color-scheme: dark) {

  :root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface-2: #22263a;

    --text: #e8eaf2;
    --muted: #94a3b8;
    --muted-2: #64748b;

    --line: rgba(255,255,255,0.10);
    --line-2: rgba(255,255,255,0.06);

    --shadow-sm: 0 1px 4px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.30);
    --shadow-card: 0 2px 10px rgba(0,0,0,0.30);
  }

  /* Base */
  body {
    background: var(--bg);
    color: var(--text);
  }

  a { color: var(--text); }
  a:hover { color: var(--accent); }

  /* Cards da home */
  .home .post-card,
  .blog .post-card,
  .home a.post-card,
  .blog a.post-card {
    background: var(--surface);
    border-color: var(--line);
  }

  .home .post-card:hover,
  .blog .post-card:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.14);
  }

  /* Globo col */
  .globo-col {
    background: var(--surface);
    border-color: var(--line);
  }

  /* Magazine laterais */
  .mag-small {
    background: var(--surface);
    border-color: var(--line);
  }
  .mag-small:hover {
    background: var(--surface-2);
  }

  /* Section head */
  .home .section-more,
  .blog .section-more {
    background: var(--surface);
    border-color: var(--line);
    color: rgba(232,234,242,0.80);
  }

  /* Single */
  .single .entry-text {
    color: rgba(232,234,242,0.92);
  }

  .single .entry-meta {
    color: rgba(232,234,242,0.52);
    border-color: rgba(255,255,255,0.07);
  }

  .single .entry-subtitle {
    color: rgba(232,234,242,0.68);
  }

  .single .author-box {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border-left-color: var(--accent);
  }

  .single .author-box__bio {
    color: rgba(232,234,242,0.68);
  }

  .single .author-box__name a {
    color: var(--text);
  }

  .single .share-box {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  }

  /* Related posts */
  .single .related-grid .related-item,
  .single .related-grid > a {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
  }

  .single .related-grid .related-item:hover,
  .single .related-grid > a:hover {
    background: var(--surface-2);
  }

  /* Sidebar */
  .single .single-sidebar .widget-box,
  .single .widget-box {
    background: var(--surface);
    border-color: var(--line);
  }

  .single .widget-title {
    color: var(--text);
    border-color: var(--line);
  }

  .single .latest-link {
    color: rgba(232,234,242,0.80);
  }
  .single .latest-link:hover {
    color: var(--accent);
  }

  /* Archive */
  body:is(.category,.archive,.blog) {
    --a-bg: var(--bg);
    --a-text: var(--text);
    --a-surface: var(--surface);
    --a-surface-2: var(--surface-2);
    --a-line: var(--line);
    --a-line-2: var(--line-2);
    --a-muted: var(--muted);
  }

  body:is(.category,.archive,.blog) .archive-card {
    background: var(--surface);
    border-color: var(--line);
  }

  body:is(.category,.archive,.blog) .archive-card:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.14);
  }

  body:is(.category,.archive,.blog) .archive-post-title a {
    color: var(--text);
  }

  body:is(.category,.archive,.blog) .archive-excerpt {
    color: rgba(232,234,242,0.68);
  }

  body:is(.category,.archive,.blog) .archive-meta {
    color: rgba(232,234,242,0.45);
  }

  body:is(.category,.archive,.blog) .archive-sidebar .widget-box {
    background: var(--surface);
    border-color: var(--line);
  }

  body:is(.category,.archive,.blog) .sidebar-link {
    background: var(--surface-2);
    color: rgba(232,234,242,0.78);
    border-color: transparent;
  }

  body:is(.category,.archive,.blog) .sidebar-link:hover {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
  }

  /* Paginação */
  body:is(.category,.archive,.blog) .archive-pagination .page-numbers {
    background: var(--surface);
    border-color: var(--line);
    color: rgba(232,234,242,0.70);
  }

  body:is(.category,.archive,.blog) .archive-pagination .page-numbers.current,
  body:is(.category,.archive,.blog) .archive-pagination .page-numbers:hover {
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.14);
    color: var(--text);
  }

  /* Botão Load More */
  .btn-load-more {
    background: var(--text);
    color: var(--bg);
  }

  .btn-load-more:hover:not(:disabled) {
    background: rgba(232,234,242,0.88);
  }

  /* Seleção de texto */
  ::selection {
    background: rgba(229,57,53,0.22);
    color: var(--text);
  }

  /* Breadcrumbs no single */
  .single .breadcrumbs a {
    color: rgba(232,234,242,0.65);
  }

  .single .breadcrumbs .current {
    color: rgba(232,234,242,0.45);
  }

  /* Imagem de capa: sombra mais escura */
  .single .entry-image {
    box-shadow: 0 6px 28px rgba(0,0,0,0.55);
  }

}
/* FIM DO SPRINT 5 / SPRINT 6 CSS */

/* =====================================================
   MÓDULO SPRINT 7 — NEWSLETTER, KICKERS & E-E-A-T SOCIALS
===================================================== */

/* ── Newsletter Widget ── */
.widget-newsletter {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--line, rgba(15,23,42,0.10));
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.widget-newsletter .widget-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text, #0f172a);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.newsletter-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(15,23,42,0.65);
  margin-bottom: 18px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  border: 1.5px solid var(--line, rgba(15,23,42,0.12));
  border-radius: 10px;
  color: var(--text, #0f172a);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
  border-color: var(--accent, #e53935);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.10);
}

.newsletter-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  background: var(--accent, #e53935);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter-btn:hover {
  background: var(--accent-2, #c62828);
  transform: translateY(-1px);
}

.newsletter-btn:active {
  transform: translateY(0);
}

/* ── Card Kickers na Home ── */
.card-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent, #e53935);
  margin-bottom: 4px;
}

/* ── Author Profile Socials (author.php) ── */
.author-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(15,23,42,0.04);
  color: var(--text, #0f172a);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.author-social-link:hover {
  background: var(--text, #0f172a);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Author Box Socials (single.php) ── */
.author-box__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.author-box__social {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(15,23,42,0.04);
  color: var(--text, #0f172a);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.author-box__social:hover {
  background: var(--accent, #e53935);
  color: #fff;
}

/* ── Dark Mode Overrides para Sprint 7 ── */
@media (prefers-color-scheme: dark) {
  .widget-newsletter {
    background: var(--surface, #1a1d27);
    border-color: var(--line, rgba(255,255,255,0.08));
  }
  .widget-newsletter .widget-title {
    color: var(--text, #e8eaf2);
  }
  .newsletter-desc {
    color: rgba(232,234,242,0.60);
  }
  .newsletter-input {
    background: var(--bg, #0f111a);
    border-color: var(--line, rgba(255,255,255,0.10));
    color: var(--text, #e8eaf2);
  }
  .author-social-link,
  .author-box__social {
    background: rgba(255,255,255,0.06);
    color: var(--text, #e8eaf2);
  }
  .author-social-link:hover {
    background: var(--text, #e8eaf2);
    color: var(--bg, #0f111a);
  }
  .author-box__social:hover {
    background: var(--accent, #e53935);
    color: #fff;
  }
}

/* =====================================================
   MÓDULO SPRINT 8 — ACESSIBILIDADE WCAG & IMAGENS SEO
===================================================== */

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent, #e53935);
  color: #fff !important;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  border-radius: 0 0 8px 8px;
  z-index: 100000;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Oculto de forma acessível para leitores de tela */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ── Foco Visível Global via Teclado ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3.5px solid var(--accent, #e53935) !important;
  outline-offset: 2.5px !important;
}

/* Evita outlines duplicados ou indesejados no clique com mouse */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ── Correções de Contraste WCAG (Mínimo 4.5:1) ── */
/* Textos muito claros sob fundo branco agora usam uma tonalidade mais escura de cinza */
.single .entry-meta,
.archive-meta,
.search-count,
.error-404__post-date,
.newsletter-desc {
  color: rgba(15,23,42,0.65) !important; /* contraste suficiente no fundo branco */
}

/* Ajustes no modo escuro */
@media (prefers-color-scheme: dark) {
  .single .entry-meta,
  .archive-meta,
  .search-count,
  .error-404__post-date,
  .newsletter-desc {
    color: rgba(232,234,242,0.68) !important; /* contraste suficiente no fundo escuro */
  }
}

/* =====================================================
   MÓDULO SPRINT 9 — REAÇÕES EMOJI & COMENTÁRIOS PREMIUM
===================================================== */

/* ── Reações por Emoji ── */
.op-reactions-section {
  margin: 48px 0 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-2, rgba(15,23,42,0.08));
  border-bottom: 1px solid var(--line-2, rgba(15,23,42,0.08));
}

.op-reactions-title {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 900;
  color: var(--text, #0f172a);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -.01em;
}

.op-reactions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.op-reaction-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--line, rgba(15,23,42,0.10));
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              background 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.op-reaction-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--accent, #e53935);
  box-shadow: 0 4px 12px rgba(229,57,53,0.08);
}

.op-reaction-btn:active {
  transform: translateY(-1px);
}

.op-reaction-btn.is-active {
  background: rgba(229,57,53,0.05) !important;
  border-color: var(--accent, #e53935) !important;
  box-shadow: inset 0 0 0 1px var(--accent, #e53935);
}

.op-reaction-btn .emoji {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.op-reaction-btn:hover .emoji {
  transform: scale(1.18);
}

.op-reaction-btn .label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text, #0f172a);
  text-transform: uppercase;
  letter-spacing: .02em;
  opacity: 0.8;
}

.op-reaction-btn .op-reaction-count {
  font-size: 13px;
  font-weight: 900;
  color: var(--text, #0f172a);
}

.op-reaction-btn.is-active .op-reaction-count {
  color: var(--accent, #e53935);
}

/* ── Comentários Premium ── */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-2, rgba(15,23,42,0.08));
}

.comments-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  color: var(--text, #0f172a);
  margin-bottom: 28px;
  letter-spacing: -.02em;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-list .comment {
  margin: 0;
}

.comment-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--line, rgba(15,23,42,0.08));
  padding: 20px;
  border-radius: 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.comment-body:hover {
  border-color: rgba(15,23,42,0.14);
}

.comment-author-avatar img {
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: block;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-meta cite {
  font-style: normal;
  font-weight: 800;
  color: var(--text, #0f172a);
  font-size: 14px;
}

.comment-metadata {
  font-size: 12px;
  color: rgba(15,23,42,0.50);
  font-weight: 600;
}

.comment-metadata a {
  text-decoration: none;
}

.comment-content {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15,23,42,0.85);
}

.comment-content p {
  margin: 0 0 10px;
}
.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-reply {
  margin-top: 12px;
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #e53935);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  background: rgba(229,57,53,0.06);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.comment-reply-link:hover {
  background: var(--accent, #e53935);
  color: #fff;
}

/* Comentários aninhados */
.comment-list .children {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--line-2, rgba(15,23,42,0.08));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Formulário de Envio ── */
#respond {
  margin-top: 40px;
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--line, rgba(15,23,42,0.08));
  border-radius: 16px;
  padding: 24px;
}

.comment-reply-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text, #0f172a);
  margin-bottom: 20px;
  letter-spacing: -.01em;
}

.comment-reply-title a {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #e53935);
  margin-left: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  border: 1.5px solid var(--line, rgba(15,23,42,0.12));
  border-radius: 10px;
  color: var(--text, #0f172a);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent, #e53935);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.10);
}

.comment-form textarea {
  resize: vertical;
}

.form-submit {
  margin: 0;
}

.form-submit button {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  background: var(--text, #0f172a);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-submit button:hover {
  background: rgba(15,23,42,0.85);
  transform: translateY(-1px);
}

/* ── Responsividade ── */
@media (max-width: 768px) {
  .op-reactions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .comment-form-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .comment-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .comment-author-avatar img {
    width: 38px;
    height: 38px;
  }
  .comment-list .children {
    padding-left: 12px;
  }
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  .op-reactions-section {
    border-color: var(--line, rgba(255,255,255,0.08));
  }
  .op-reactions-title,
  .op-reaction-btn .label,
  .op-reaction-btn .op-reaction-count,
  .comments-title,
  .comment-meta cite,
  .comment-reply-title {
    color: var(--text, #e8eaf2);
  }
  .op-reaction-btn {
    background: var(--surface, #1a1d27);
    border-color: var(--line, rgba(255,255,255,0.08));
  }
  .op-reaction-btn:hover:not(:disabled) {
    background: var(--surface-2, #262936);
  }
  .comments-area {
    border-color: var(--line, rgba(255,255,255,0.08));
  }
  .comment-body,
  #respond {
    background: var(--surface, #1a1d27);
    border-color: var(--line, rgba(255,255,255,0.08));
  }
  .comment-body:hover {
    border-color: rgba(255,255,255,0.15);
  }
  .comment-author-avatar img {
    border-color: var(--surface, #1a1d27);
  }
  .comment-metadata {
    color: rgba(232,234,242,0.45);
  }
  .comment-content {
    color: rgba(232,234,242,0.80);
  }
  .comment-list .children {
    border-color: var(--line, rgba(255,255,255,0.08));
  }
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form textarea {
    background: var(--bg, #0f111a);
    border-color: var(--line, rgba(255,255,255,0.10));
    color: var(--text, #e8eaf2);
  }
  .form-submit button {
    background: var(--accent, #e53935);
  }
  .form-submit button:hover {
    background: var(--accent-2, #c62828);
  }
}

/* =====================================================
   MÓDULO SPRINT 12 — LINKAGEM INTERNA AUTOMÁTICA
===================================================== */
.op-auto-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(229, 57, 53, 0.35);
  transition: border-bottom-color 0.2s ease, color 0.2s ease;
}

.op-auto-link:hover {
  color: var(--accent, #e53935) !important;
  border-bottom-color: var(--accent, #e53935) !important;
  border-bottom-style: solid;
}

@media (prefers-color-scheme: dark) {
  .op-auto-link {
    border-bottom-color: rgba(229, 57, 53, 0.50);
  }
}

