/* ==========================================================================
   PowerBiz Artigos & Editorial — Design System de Leitura
   Tipografia refinada, legibilidade com alto contraste e poucas distrações.
   ========================================================================== */

/* Layout e Container Editorial */
.editorial-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-reading-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header Editorial (Hero da Seção / Artigos) */
.blog-hero {
  padding: calc(var(--section-pad) * 0.7) 0 calc(var(--section-pad) * 0.4);
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(75, 191, 236, 0.10), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(238, 139, 61, 0.06), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  max-width: 820px;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 16px 0 18px;
}

.blog-hero .lede {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 64ch;
}

/* ==========================================================================
   Card de Artigo em Destaque (Featured Article)
   ========================================================================== */
.featured-article-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  margin: 48px 0 64px;
  box-shadow: var(--shadow-sm);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.featured-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-alt);
}

.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-article-card:hover .featured-visual img {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--surface);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-meta .tag {
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
}

.article-meta .dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.featured-content h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.featured-content p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary-700);
}

.read-more-link svg {
  transition: transform 0.2s ease;
}

.featured-article-card:hover .read-more-link svg,
.article-card:hover .read-more-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Grade de Artigos (Cronológica)
   ========================================================================== */
.articles-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.articles-section-title h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}

.article-card-visual {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
  overflow: hidden;
}

.article-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-visual img {
  transform: scale(1.04);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.article-card-body p {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}

/* ==========================================================================
   Página do Artigo Individual (/artigos/slug)
   Foco absoluto em leitura, sem distrações laterais.
   ========================================================================== */
.article-header {
  padding: calc(var(--section-pad) * 0.65) 0 36px;
  text-align: left;
}

.article-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.article-header .back-link:hover {
  color: var(--primary-700);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 16px 0 18px;
}

.article-header .article-subtitle {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.article-featured-image {
  margin: 12px 0 44px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-featured-image figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* Corpo do Artigo Editorial (Tipografia de Leitura) */
.article-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-2);
  word-break: break-word;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
}

.article-body ul, 
.article-body ol {
  margin: 0 0 28px;
  padding-left: 28px;
}

.article-body li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-body blockquote {
  margin: 36px 0;
  padding: 20px 24px 20px 28px;
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.65;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body img {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 32px 0;
  width: 100%;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* Callout / Nota dentro do texto */
.article-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 22px 24px;
  margin: 36px 0;
  box-shadow: var(--shadow-xs);
}

.article-callout h4 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* Bloco de CTA no fim do Artigo */
.article-cta-box {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--primary-50) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 40px;
  margin: 64px 0 48px;
  text-align: center;
}

.article-cta-box h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}

.article-cta-box p {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ==========================================================================
   Seção de Artigos Recomendados (Rodapé)
   ========================================================================= */
.recommended-section {
  padding: 64px 0 88px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.recommended-header {
  margin-bottom: 36px;
}

.recommended-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

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

/* ==========================================================================
   Responsividade Impecável
   ========================================================================== */
@media (max-width: 1024px) {
  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
  }
  .articles-grid,
  .recommended-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .articles-grid,
  .recommended-grid {
    grid-template-columns: 1fr;
  }
  .featured-article-card {
    padding: 20px;
    margin: 32px 0 48px;
  }
  .article-header h1 {
    font-size: 28px;
  }
  .article-body {
    font-size: 16.5px;
    line-height: 1.7;
  }
  .article-cta-box {
    padding: 28px 20px;
  }
}
