/* =====================================================
   ARTIGO BLOG — layout centralizado (planilha)
   ===================================================== */

:root {
  --paper-bg: var(--white, #FFFFFF);
  --ink-color: var(--ink, #0A1628);
}

body {
  background-color: var(--paper-bg);
  color: var(--ink-color);
  -webkit-font-smoothing: antialiased;
}

.artigo-page {
  padding-top: 0;
}

.artigo-page .article-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px !important;
}

.artigo-page .reveal.active {
  opacity: 1;
  transform: none;
}

/* Barra de progresso */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  background: transparent;
}
#progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--indigo, #3B5BFF), var(--gold, #D4AF9E));
  width: 0%;
  transition: width .1s;
}

/* Botão voltar */
.btn-back-elegant {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--white, #fff);
  color: var(--ink, #0A1628);
  border: 1px solid var(--line, #E6EAF0);
  transition: all .3s;
  margin: 32px 0 0;
}
.btn-back-elegant:hover {
  background: var(--ink, #0A1628);
  color: #fff;
  border-color: var(--ink, #0A1628);
}

/* Header */
.article-header {
  text-align: center;
  margin: 40px 0 48px;
}

.meta-category,
.article-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--indigo, #3B5BFF);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--indigo-soft, #E8EDFF);
  border: 1px solid rgba(59,91,255,.15);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-title,
.article-header h1 {
  font-family: 'Inter', sans-serif !important;
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
  line-height: 1.12 !important;
  color: var(--ink, #0A1628) !important;
  margin: 0 0 20px !important;
  text-align: center;
}

.author-compact,
.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 14px;
  color: var(--muted, #5B6678);
  line-height: 1.5;
}
.author-compact strong { color: var(--ink, #0A1628); font-weight: 600; }
.author-compact .sep { opacity: .35; user-select: none; }
.author-compact i { margin-right: 4px; color: var(--gold, #D4AF9E); }

/* Imagem destaque — centralizada */
.featured-image-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 56px;
  padding: 0 28px;
  box-sizing: border-box;
}
.featured-image-container img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(56vw, 520px);
  object-fit: cover;
  object-position: center center;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 24px 60px -24px rgba(10,22,40,.18);
}

/* Conteúdo */
.article-content {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-2, #1E2A3D);
  text-align: left;
}
.article-content p { margin-bottom: 24px; }
.article-content h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink, #0A1628);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.article-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #0A1628);
  margin: 36px 0 12px;
}
.article-content a {
  color: var(--indigo, #3B5BFF);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover { color: var(--indigo-dark, #1A2F8F); }
.article-content ul,
.article-content ol {
  margin: 20px 0 28px;
  padding-left: 24px;
}
.article-content li { margin-bottom: 12px; line-height: 1.75; }
.article-content blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--bg, #FAFBFC);
  border-left: 3px solid var(--gold, #D4AF9E);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: var(--ink-2, #1E2A3D);
}
.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 32px auto;
  border-radius: 16px;
}

/* Footer / compartilhar */
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line, #E6EAF0);
  text-align: center;
}
.share-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted, #5B6678);
  margin-bottom: 16px;
}
.social-share-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-share {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg, #FAFBFC);
  border: 1px solid var(--line, #E6EAF0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink, #0A1628);
  text-decoration: none;
  font-size: 16px;
  transition: all .25s;
}
.btn-share:hover {
  background: var(--ink, #0A1628);
  color: #fff;
  border-color: var(--ink, #0A1628);
  transform: translateY(-2px);
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #eef1f6 25%, #e2e7ef 50%, #eef1f6 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 10px;
}
.sk-title { height: 52px; width: min(88%, 640px); margin: 0 auto 20px; }
.sk-text { height: 16px; width: 100%; margin-bottom: 14px; }
.sk-img {
  height: min(42vw, 360px);
  width: min(100%, 900px);
  margin: 0 auto 36px;
  border-radius: 20px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.artigo-error {
  text-align: center;
  padding: 100px 24px;
}
.artigo-error h2 {
  margin-bottom: 20px;
  color: var(--ink, #0A1628);
}

@media (max-width: 768px) {
  .artigo-page .article-wrapper { padding: 0 18px 64px !important; }
  .featured-image-container { padding: 0 18px; margin-bottom: 40px; }
  .featured-image-container img { max-height: 280px; border-radius: 16px; }
  .article-header { margin: 28px 0 36px; }
  .article-content { font-size: 16px; line-height: 1.75; }
  .btn-back-elegant { margin-top: 20px; }
}
