   BLOG — Listagem e Artigo
   ============================================================================ */
.blog-page-hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.blog-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 2rem auto 0;
}

/* Ícone de lupa — apenas o filho direto i, não o do botão */
.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
}

.blog-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 50px 14px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-search-wrap input::placeholder { color: var(--text-muted); }
.blog-search-wrap input:focus {
  outline: none;
  border-color: var(--border-gold-soft);
  box-shadow: 0 0 0 3px var(--gold-glow-soft);
}

.blog-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.6rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 2;
}
.blog-search-clear:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-soft);
  color: var(--gold-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.blog-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; opacity: 0.3; }

/* ── Artigo detalhe ── */
.artigo-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 60px;
}

.artigo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.artigo-breadcrumb a { color: var(--gold); transition: color 0.2s; }
.artigo-breadcrumb a:hover { color: var(--gold-light); }
.artigo-breadcrumb i { font-size: 0.6rem; opacity: 0.5; }

.artigo-titulo-page {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.artigo-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.artigo-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.artigo-meta-item i { color: var(--gold); font-size: 0.7rem; }

/* Barra de progresso de leitura */
.leitura-progresso {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold-light));
  z-index: 999;
  width: 0;
  transition: width 0.1s linear;
}

/* Controles TTS e Compartilhamento */
.artigo-controles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.controles-grupo { display: flex; align-items: center; gap: 10px; }

.controles-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* btn-controle e btn-social: visual base do showcase */
.btn-controle,
.btn-social {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.6s var(--ease-out-expo);
}
.btn-controle:hover,
.btn-social:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
  color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-controle:active,
.btn-social:active { transform: translateY(0); }

/* Imagem destaque */
.artigo-img-destaque-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-subtle);
}

.artigo-img-destaque-wrap img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  display: block;
}

/* Conteúdo do artigo */
.artigo-conteudo {
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 1.05rem;
}

.artigo-conteudo h2, .artigo-conteudo h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
}

.artigo-conteudo h2 { font-size: 1.8rem; }
.artigo-conteudo h3 { font-size: 1.35rem; }

.artigo-conteudo p { margin-bottom: 1.25rem; }

.artigo-conteudo a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artigo-conteudo strong { color: var(--text-primary); }

.artigo-conteudo blockquote {
  border-left: 2px solid var(--gold);
  padding: 16px 20px;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.artigo-conteudo ul, .artigo-conteudo ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.artigo-conteudo li { margin-bottom: 0.4rem; }

.artigo-conteudo img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.artigo-conteudo code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold-light);
}

/* CTA WhatsApp no artigo */
.artigo-cta-wa {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  margin: 3rem 0;
  flex-wrap: wrap;
}

.artigo-cta-wa-icon {
  width: 52px;
  height: 52px;
  background: rgba(37,211,102,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.artigo-cta-wa-text { flex-grow: 1; min-width: 0; }
.artigo-cta-wa-text strong { display: block; font-size: 1rem; color: var(--text-primary); margin-bottom: 4px; }
.artigo-cta-wa-text span { font-size: 0.875rem; color: var(--text-muted); }

.btn-wa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: none;
  overflow: hidden;
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  color: #052e0f;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
  animation: pulse-green 3s infinite ease-in-out;
  transition: all 0.6s var(--ease-out-expo);
}
.btn-wa i { opacity: 0.7; color: #052e0f; }
.btn-wa:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(34, 197, 94, 0.3); }
.btn-wa:hover i { opacity: 1; color: #052e0f; }
.btn-wa:active { transform: translateY(0); }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.2); }
  50%       { box-shadow: 0 0 40px rgba(34, 197, 94, 0.35); }
}
  50%      { box-shadow: 0 0 34px rgba(34,197,94,0.34); }
}

.artigo-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .artigo-cta-wa { flex-direction: column; text-align: center; }
}

/* ============================================================================

/* ── Blog card ── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold-soft);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px var(--border-gold-soft);
}
.blog-card-img { height: 180px; overflow: hidden; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-img-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--border-medium); font-size: 2rem;
}
.blog-card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .06em; color: var(--text-muted);
}
.blog-card-meta i { color: var(--gold); margin-right: 4px; }
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 300;
  color: var(--text-primary); line-height: 1.3;
  transition: color .2s;
}
.blog-card:hover .blog-card-title { color: var(--gold-light); }
.blog-card-excerpt {
  font-size: .875rem; color: var(--text-muted);
  line-height: 1.6; flex: 1;
}
.blog-card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-family: var(--font-mono);
  letter-spacing: .08em; color: var(--gold); margin-top: auto;
  transition: gap .2s;
}
.blog-card:hover .blog-card-link { gap: 10px; }

@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   TTS — Controles de áudio
   ============================================================================ */

/* Estado "lendo": anel pulsante no botão play */
.btn-controle.lendo {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-glow);
}

.btn-controle.lendo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  opacity: 0;
  animation: tts-pulse 1.6s ease-in-out infinite;
}

@keyframes tts-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  50%  { opacity: 0;   transform: scale(1.35); }
  100% { opacity: 0;   transform: scale(1.35); }
}

/* Grupo TTS separado visualmente */
.tts-group {
  border-right: 1px solid var(--border-subtle);
  padding-right: 14px;
  margin-right: 4px;
}

@media (max-width: 640px) {
  .artigo-controles {
    flex-direction: column;
    align-items: flex-start;
  }
  .tts-group {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-right: 0;
    padding-bottom: 12px;
    margin-right: 0;
    margin-bottom: 4px;
    width: 100%;
  }
}
