/* article-content.css
   Estilos para conteúdo importado do WordPress (blog posts e páginas)
   Escopo: .article-content — não afeta reviews nem o restante do site
   ------------------------------------------------------------------ */

/* ── Tipografia base ─────────────────────────────────────────────────── */
.article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #1f2937;
  max-width: 780px;
}

.article-content p {
  margin: 0 0 1.25rem;
}

/* ── Headings ────────────────────────────────────────────────────────── */
.article-content h2,
.article-content h2.wp-block-heading {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #14532d;
  margin: 2.25rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #d1fae5;
  line-height: 1.3;
}

.article-content h3,
.article-content h3.wp-block-heading {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: #166534;
  margin: 1.75rem 0 .5rem;
  padding-left: .75rem;
  border-left: 3px solid #00c853;
  line-height: 1.35;
}

.article-content h4,
.article-content h4.wp-block-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
}

/* ── Listas ──────────────────────────────────────────────────────────── */
.article-content ul,
.article-content ul.wp-block-list,
.article-content ul.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.article-content ul li,
.article-content ul.wp-block-list li,
.article-content ul.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .55rem;
  line-height: 1.65;
  color: #374151;
}

.article-content ul li::before,
.article-content ul.wp-block-list li::before,
.article-content ul.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00c853;
  font-weight: 700;
  font-size: .9em;
  top: .1em;
}

/* Listas ordenadas */
.article-content ol,
.article-content ol.wp-block-list,
.article-content ol.step-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0 0 1.25rem;
}

.article-content ol li,
.article-content ol.wp-block-list li,
.article-content ol.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: .65rem;
  line-height: 1.65;
  color: #374151;
}

.article-content ol li::before,
.article-content ol.wp-block-list li::before,
.article-content ol.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.5rem;
  height: 1.5rem;
  background: #00c853;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Listas dentro de listas */
.article-content li ul,
.article-content li ol {
  margin-top: .4rem;
  margin-bottom: 0;
}

/* ── Tabelas ─────────────────────────────────────────────────────────── */

/* Wrapper responsivo */
.article-content figure.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.article-content table,
.article-content table.has-fixed-layout,
.article-content table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: #fff;
}

/* Cabeçalho */
.article-content thead tr {
  background: #14532d;
  color: #fff;
}

.article-content thead th {
  padding: .7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  border: none;
  white-space: nowrap;
}

/* Células */
.article-content tbody td {
  padding: .65rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}

/* Zebra striping */
.article-content tbody tr:nth-child(even) {
  background: #f9fafb;
}

.article-content tbody tr:hover {
  background: #f0fdf4;
}

/* Linha de destaque */
.article-content tr.highlight-row td {
  background: #dcfce7 !important;
  font-weight: 600;
  color: #14532d;
}

/* Status yes/no */
.article-content td.status-yes {
  color: #16a34a;
  font-weight: 600;
}

.article-content td.status-yes::before {
  content: "✓ ";
}

.article-content td.status-no {
  color: #dc2626;
  font-weight: 600;
}

.article-content td.status-no::before {
  content: "✗ ";
}

/* ── Imagens ─────────────────────────────────────────────────────────── */
.article-content figure.wp-block-image,
.article-content figure.wp-block-image.size-large {
  margin: 1.75rem 0;
  text-align: center;
}

.article-content figure.wp-block-image img,
.article-content img.aligncenter,
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.09);
}

.article-content figcaption {
  font-size: .8rem;
  color: #6b7280;
  margin-top: .5rem;
  font-style: italic;
}

/* ── Blockquote ──────────────────────────────────────────────────────── */
.article-content blockquote,
.article-content blockquote.wp-block-quote {
  border-left: 4px solid #00c853;
  background: #f0fdf4;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  color: #166534;
  font-style: italic;
}

.article-content blockquote p {
  margin: 0;
}

/* ── Separador ───────────────────────────────────────────────────────── */
.article-content hr,
.article-content .wp-block-separator {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

/* ── Strong / Em ─────────────────────────────────────────────────────── */
.article-content strong {
  color: #111827;
  font-weight: 700;
}

/* ── Article header ─────────────────────────────────────────────────── */
.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  margin: .5rem 0 0;
}

.post-tag {
  display: inline-block;
  font-size: .78rem;
  color: #16a34a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

/* ── Footer nav (CTAs finais) ────────────────────────────────────────── */
.article-footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.article-footer-nav .internal-link-box {
  flex: 1;
  min-width: 220px;
}

/* ── Responsivo ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .article-content {
    font-size: .95rem;
  }

  .article-content thead th,
  .article-content tbody td {
    padding: .5rem .65rem;
    font-size: .82rem;
  }

  .article-footer-nav {
    flex-direction: column;
  }
}
