/*
 * TNS Blog — Tipografia e layout harmônico para posts
 * Arquivo: tns-blog.css
 * Localização: wp-content/themes/astra-child/tns-blog.css
 */

/* ── VARIÁVEIS ── */
:root {
  --tns-verde: #1D9E75;
  --tns-verde-escuro: #0F6E56;
  --tns-verde-claro: #E1F5EE;
  --tns-dark: #0a0a0a;
  --tns-muted: #6b7280;
  --tns-border: #e5e7eb;
}

/* ── CONTAINER DO POST ── */
.single-post .entry-content {
  font-family: 'DM Sans', Georgia, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #374151 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  float: none !important;
}

/* Remove espaços duplos causados por <br> no conteúdo importado */
.single-post .entry-content br + br {
  display: none;
}

.single-post .entry-content p:empty {
  display: none;
}

/* ── PARÁGRAFOS ── */
.single-post .entry-content p {
  margin-bottom: 20px;
  margin-top: 0;
}

/* ── CABEÇALHO E META DO POST ── */
.single-post .entry-header {
  max-width: 720px !important;
  margin: 40px auto 32px !important;
  padding: 0 24px !important;
  float: none !important;
}

/* Esconde o e-mail do autor */
.single-post .byline {
  display: none;
}

.single-post .entry-meta {
  font-size: 13px;
  color: #6b7280;
}

/* ── TÍTULO DO POST ── */
.single-post .entry-title {
  font-family: Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--tns-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ── IMAGEM DESTACADA ── */
.single-post .post-thumbnail {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.single-post .post-thumbnail img {
  border-radius: 16px;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ── TÍTULOS ── */
.single-post .entry-content h2 {
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--tns-dark);
  line-height: 1.2;
  margin-top: 52px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--tns-verde-claro);
}

.single-post .entry-content h3 {
  font-family: Georgia, serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--tns-verde-escuro);
  margin-top: 36px;
  margin-bottom: 12px;
}

.single-post .entry-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--tns-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 28px;
  margin-bottom: 10px;
}

/* ── PARÁGRAFOS ── */
.single-post .entry-content p {
  margin-bottom: 24px;
}

/* ── IMAGEM DESTACADA (hero) — proporção áurea 1.618:1, padrão em todos os posts ── */
.single-post .post-thumb-img-content {
  max-width: 920px;
  margin: 0 auto 40px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}

.single-post .post-thumb-img-content img.wp-post-image {
  width: 100%;
  aspect-ratio: 1.618 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ── IMAGENS DO CORPO DO TEXTO — mesma proporção áurea, consistência visual ── */
.single-post .entry-content img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1.618 / 1;
  object-fit: cover;
  height: auto;
  margin: 34px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.single-post .entry-content figure img {
  margin: 0;
}

/* ── FAIXA "LER RESUMO" + "OUVIR TEXTO" — inspirado em revistas de viagem de referência ── */
.tns-resumo-audio-bar {
  max-width: 720px;
  margin: 0 auto 34px;
  padding: 21px 24px;
  background: var(--tns-verde-claro);
  border-radius: 14px;
  border: 1px solid rgba(29,158,117,0.25);
}

.tns-resumo-toggle summary {
  cursor: pointer;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--tns-verde-escuro);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tns-resumo-toggle summary::-webkit-details-marker { display: none; }

.tns-resumo-toggle[open] summary { margin-bottom: 13px; }

.tns-resumo-texto {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1f2937;
  margin: 0;
}

.tns-ouvir-btn {
  margin-top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--tns-verde);
  color: var(--tns-verde-escuro);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 21px;
  cursor: pointer;
  transition: background 0.2s;
}

.tns-ouvir-btn:hover { background: var(--tns-verde-claro); }

/* ── ESPAÇAMENTO HARMÔNICO (escala próxima à proporção áurea: 8, 13, 21, 34, 55) ── */
.single-post .entry-content > *:first-child { margin-top: 0; }
.single-post .entry-content h2 { margin-top: 55px; }
.single-post .entry-content h3 { margin-top: 34px; }

.single-post .entry-content figure {
  margin: 32px 0;
}

.single-post .entry-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--tns-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ── LISTAS ── */
.single-post .entry-content ul,
.single-post .entry-content ol {
  padding-left: 0;
  margin: 20px 0 28px;
  list-style: none;
}

.single-post .entry-content ul li,
.single-post .entry-content ol li {
  padding: 10px 0 10px 36px;
  position: relative;
  border-bottom: 1px solid var(--tns-border);
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
}

.single-post .entry-content ul li:last-child,
.single-post .entry-content ol li:last-child {
  border-bottom: none;
}

.single-post .entry-content ul li::before {
  content: "🌿";
  position: absolute;
  left: 0;
  font-size: 14px;
  top: 12px;
}

.single-post .entry-content ol {
  counter-reset: tns-counter;
}

.single-post .entry-content ol li {
  counter-increment: tns-counter;
}

.single-post .entry-content ol li::before {
  content: counter(tns-counter);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: var(--tns-verde);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
}

/* ── CITAÇÕES ── */
.single-post .entry-content blockquote {
  background: var(--tns-verde-claro);
  border-left: 4px solid var(--tns-verde);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--tns-verde-escuro);
  line-height: 1.7;
}

.single-post .entry-content blockquote p {
  margin: 0;
  color: var(--tns-verde-escuro);
}

/* ── TABELAS ── */
.single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.single-post .entry-content table thead {
  background: var(--tns-verde);
  color: #fff;
}

.single-post .entry-content table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}

.single-post .entry-content table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.single-post .entry-content table tbody tr:hover {
  background: var(--tns-verde-claro);
}

.single-post .entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tns-border);
  color: #374151;
}

/* ── IMAGENS NO CONTEÚDO ── */
.single-post .entry-content img {
  display: block;
  width: 100% !important;
  height: auto;
  border-radius: 12px;
  margin: 32px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── LINKS ── */
.single-post .entry-content a {
  color: var(--tns-verde);
  text-decoration: underline;
  text-decoration-color: rgba(29,158,117,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.single-post .entry-content a:hover {
  color: var(--tns-verde-escuro);
}

/* ── SEPARADOR ── */
.single-post .entry-content hr {
  border: none;
  border-top: 2px solid var(--tns-verde-claro);
  margin: 48px 0;
}

/* ── TÍTULO DO POST ── */
.single-post .entry-title {
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--tns-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ── IMAGEM DESTACADA ── */
.single-post .post-thumbnail {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
.single-post .post-thumbnail img {
  border-radius: 16px !important;
  width: 100% !important;
  max-height: 480px !important;
  object-fit: cover !important;
  margin-bottom: 40px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .single-post .entry-content {
    font-size: 16px;
    padding: 0 16px;
  }

  .single-post .entry-content h2 {
    font-size: 22px;
    margin-top: 36px;
  }

  .single-post .entry-content img {
    border-radius: 8px;
    margin: 20px 0;
  }

  .single-post .entry-content table {
    font-size: 12px;
  }

  .single-post .entry-content table td,
  .single-post .entry-content table th {
    padding: 10px 10px;
  }
}
/* ── MAPA DO ROTEIRO ── */
.tns-roteiro-mapa-wrap {
  margin: 48px 0 24px;
}

.tns-roteiro-mapa-titulo {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--tns-dark);
  margin: 0 0 6px;
}

.tns-roteiro-mapa-sub {
  font-size: 14px;
  color: var(--tns-muted);
  margin: 0 0 20px;
}

.tns-roteiro-map {
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tns-border);
}
