/* ==========================================================================
   PORTAL IGNIÇÃO TOTAL - ARTICLE & EDITORIAL STYLES (2026 EDITION)
   Estilização rica para artigos E-E-A-T, tabelas, FAQs e comparativos
   ========================================================================== */

.article-page {
  padding: 3rem 0 6rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.breadcrumbs a {
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--accent-primary);
}

.breadcrumbs .separator {
  color: var(--text-dim);
}

/* Cabeçalho do Artigo */
.article-header {
  margin-bottom: 3rem;
  max-width: 960px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.14);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 107, 0, 0.35);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 1.35rem;
  color: #fff;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  margin-top: 1.75rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Layout de Duas Colunas (Conteúdo + Sidebar) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 4rem;
  align-items: flex-start;
}

.article-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #e5e7eb;
}

.article-content p {
  margin-bottom: 1.75rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  color: #fff;
  margin: 3.5rem 0 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #f3f4f6;
  margin: 2.25rem 0 1rem;
  scroll-margin-top: 100px;
}

.article-content strong {
  color: #fff;
  font-weight: 700;
}

/* Listas */
.article-list {
  margin: 1.5rem 0 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-list li {
  padding-left: 0.4rem;
}

.article-list.ordered {
  list-style-type: decimal;
}

/* Tabela de Conteúdos (TOC) */
.table-of-contents {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  margin: 2.25rem 0 3rem;
  box-shadow: var(--shadow-sm);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.15rem;
}

.table-of-contents ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.96rem;
}

.table-of-contents a {
  color: var(--text-muted);
}

.table-of-contents a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.toc-level-3 {
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

/* Callouts e Destaques */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
  border: 1px solid transparent;
}

.callout-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.callout-content {
  font-size: 1rem;
  line-height: 1.65;
}

.callout-tip {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #d1fae5;
}

.callout-important,
.callout-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fef3c7;
}

.callout-note {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.3);
  color: #e0f2fe;
}

/* Tabelas Comparativas */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.96rem;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
  padding: 1.15rem 1.5rem;
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-heading);
}

.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Card do Autor (E-E-A-T) */
.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 4rem 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.author-info p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.author-badge {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Artigos Relacionados */
.related-section {
  margin-top: 4.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.related-section h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #fff;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.related-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.related-card .card-badge {
  font-size: 0.78rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.related-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: #fff;
}

.related-card .card-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Sidebar Fixa */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.sidebar-widget h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.65rem;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    display: none;
  }

  .article-main-title {
    font-size: 2.15rem;
  }
}
