/* ==========================================================================
   CSS DO ARTIGO EDITORIAL - GESTAO POR COMPETENCIAS
   Microlearning "Em 1 Minuto", Audio Reader, Barra de Leitura & Engajamento
   ========================================================================== */

/* BARRA DE PROGRESSO DE LEITURA (STICKY NO TOPO) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-coral));
  width: 0%;
  z-index: 2000;
  transition: width 0.1s ease-out;
}

/* LAYOUT DO ARTIGO */
.article-page {
  padding: 40px 0 80px;
}

.article-header {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: left;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-breadcrumbs a {
  color: var(--text-secondary);
}
.article-breadcrumbs a:hover {
  color: var(--primary);
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.article-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}
.meta-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* BARRA DE FERRAMENTAS DO LEITOR (ÁUDIO + TAMANHO DE FONTE + FAVORITO) */
.reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.audio-reader-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-listen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-listen:hover {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-listen.playing {
  background: var(--accent-coral);
  color: #FFFFFF;
  border-color: var(--accent-coral);
}
.audio-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.text-resize-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-font-size {
  background: var(--surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-font-size:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-favorite-action {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.btn-favorite-action:hover, .btn-favorite-action.saved {
  color: var(--accent-coral);
}

/* CAIXA "EM 1 MINUTO: RESUMO EXECUTIVO" */
.executive-summary-box {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.02) 100%);
  border: 1.5px solid rgba(var(--primary-rgb), 0.25);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.summary-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.summary-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.summary-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.55;
}
.summary-bullets li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* CORPO DO ARTIGO (EDITORIAL DE ALTA LEGIBILIDADE) */
.article-body-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-main);
}
.article-body-content p {
  margin-bottom: 1.6em;
}
.article-body-content h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2.2em 0 0.8em;
  line-height: 1.3;
}
.article-body-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.8em 0 0.6em;
  line-height: 1.35;
}
.article-body-content ul, .article-body-content ol {
  margin: 1.4em 0 1.6em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--surface-elevated);
  padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 2em 0;
  color: var(--text-secondary);
}

/* IMAGENS EMBUTIDAS */
.article-figure {
  margin: 2.4em auto;
  text-align: center;
  max-width: 100%;
}
.article-figure img {
  border-radius: var(--radius-md);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  max-height: 480px;
  object-fit: contain;
}
.article-figure figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* BANNER DE E-BOOK CONTEXTUAL NO MEIO/RODAPÉ DO ARTIGO */
.article-ebook-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #FFFFFF;
  margin: 48px auto;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.article-ebook-banner img {
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.article-ebook-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.article-ebook-desc {
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.5;
}

/* BOTÕES DE COMPARTILHAMENTO SOCIAL */
.share-section {
  max-width: 780px;
  margin: 48px auto;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.share-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
}
.btn-share-whatsapp {
  background: #25D366;
}
.btn-share-whatsapp:hover {
  background: #1EBE5D;
}
.btn-share-linkedin {
  background: #0A66C2;
}
.btn-share-linkedin:hover {
  background: #084D93;
}
.btn-share-copy {
  background: var(--surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-share-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* BIO DO AUTOR RICARDO MENDES */
.author-box {
  max-width: 780px;
  margin: 40px auto;
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.author-photo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.author-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.author-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ARTIGOS RELACIONADOS */
.related-articles-section {
  max-width: 820px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}
.related-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .article-ebook-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}
