/* ================================================================
   ARTICLE VIEWER — Estilos específicos da página de artigo 
   (Base no blog.css existente)
   ================================================================ */

.article-page .hs-hero {
  min-height: 40vh;
  padding-bottom: 2rem;
}

.article-page .pt-extra {
  padding-top: calc(var(--navbar-h, 120px) + 2rem);
}

.article-meta-header {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #CEA642;
}

.article-main {
  padding: 3rem 0;
  background:
    radial-gradient(circle at 12% -12%, rgba(64, 97, 216, 0.05), transparent 38%),
    radial-gradient(circle at 88% 112%, rgba(206, 166, 66, 0.05), transparent 42%),
    radial-gradient(circle at 80% 88%, rgba(110, 155, 126, 0.06), transparent 28%),
    linear-gradient(154deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 231, 0.96));
}

.article-viewer-standalone {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(143, 181, 232, 0.24);
  background:
    radial-gradient(circle at 88% 88%, rgba(110, 155, 126, 0.12), transparent 24%),
    linear-gradient(150deg, #0D1165 0%, #0D1165 42%, #4061D8 100%);
  color: rgba(236, 244, 255, 0.96);
  padding: 32px;
  box-shadow: 0 20px 48px rgba(5, 12, 30, 0.32);
}

.article-cover {
  margin: 0 0 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(188, 211, 242, 0.32);
  background: rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 9;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body-wrapper p,
.article-body-wrapper li {
  font-family: var(--font-body);
  color: rgba(224, 236, 255, 0.9);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.article-body-wrapper ul {
  padding-left: 24px;
  margin-bottom: 1.5rem;
}

.article-body-wrapper li + li {
  margin-top: 8px;
}

/* Rich body reuse */
.article-body-wrapper .blog-rich-body h2 {
  font-size: 1.3rem;
  margin: 32px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(188, 211, 242, 0.14);
  color: #CEA642;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
}

.article-body-wrapper .blog-rich-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body-wrapper .blog-rich-body h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  color: #ebeff8;
  font-weight: 700;
  font-family: var(--font-display);
}

.article-body-wrapper .blog-rich-body strong {
  color: #ebeff8;
  font-weight: 700;
}

.article-body-wrapper .blog-rich-body em {
  font-style: italic;
  color: rgba(224, 236, 255, 0.96);
}

.article-body-wrapper .blog-rich-body figure.blog-fig {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(188, 211, 242, 0.22);
}

.article-body-wrapper .blog-rich-body figure.blog-fig img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body-wrapper .blog-rich-body figcaption {
  font-family: var(--font-body);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: rgba(201, 219, 243, 0.7);
  font-style: italic;
  background: rgba(0, 0, 0, 0.22);
  line-height: 1.4;
}

.article-body-wrapper .blog-rich-body .blog-callout {
  font-family: var(--font-body);
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #CEA642;
  background: rgba(206, 166, 66, 0.1);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(224, 236, 255, 0.92);
}

.article-body-wrapper .blog-rich-body .blog-callout--info {
  border-left-color: #4061D8;
  background: rgba(64, 97, 216, 0.1);
}

.article-body-wrapper .blog-rich-body .blog-callout--warning {
  border-left-color: #e6843c;
  background: rgba(230, 132, 60, 0.1);
}

.article-body-wrapper .blog-rich-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid rgba(64, 97, 216, 0.5);
  background: rgba(64, 97, 216, 0.08);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.article-body-wrapper .blog-rich-body blockquote cite {
  font-family: var(--font-body);
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: rgba(201, 219, 243, 0.62);
  font-style: normal;
}

.article-body-wrapper .blog-rich-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(206, 166, 66, 0.44), rgba(206, 166, 66, 0.04));
  margin: 32px 0;
}

.article-body-wrapper .blog-rich-body .blog-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.article-body-wrapper .blog-rich-body .blog-stat {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(188, 211, 242, 0.12);
  text-align: center;
}

.article-body-wrapper .blog-rich-body .blog-stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #CEA642;
  line-height: 1.2;
}

.article-body-wrapper .blog-rich-body .blog-stat-label {
  font-family: var(--font-body);
  display: block;
  font-size: 0.8rem;
  color: rgba(201, 219, 243, 0.68);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Base actions footer */
.article-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(188, 211, 242, 0.14);
}

.article-footer-actions a {
  display: flex;
  align-items: center;
}

.article-footer-actions .hs-btn-ghost {
  border: 1px solid rgba(188, 211, 242, 0.3);
  color: rgba(224, 236, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.article-footer-actions .hs-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 600px) {
  .article-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
