/* ============================================
   PORTAL DO POUPADOR - CSS PARA ARTIGOS
   Design: Moderno, Profissional, Confiável
   Uso: Páginas de conteúdo, artigos, políticas
   ============================================ */

:root {
  /* Cores da Marca */
  --verde-primario: #034d42;
  --verde-secundario: #505d3c;
  --dourado-destaque: #FFB800;
  
  /* Neutros */
  --branco: #ffffff;
  --cinza-bg: #f8f9fa;
  --cinza-borda: #e0e0e0;
  --texto-primario: #1a1a1a;
  --texto-secundario: #666666;
  --texto-leitura: #2c3e50;
  
  /* Espaçamento */
  --container-max: 1100px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
}

/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: var(--texto-leitura);
  background: var(--cinza-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Principal de Artigo */
.article-container {
  max-width: var(--container-max);
  margin: var(--spacing-md) auto;
  padding: var(--spacing-xl) 80px;
  background: var(--branco);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: calc(100vh - 120px);
}

/* Cabeçalho do Artigo */
.article-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--verde-primario);
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--verde-primario);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.5px;
}

.article-title_3{
  position: relative;
  margin-top: 70px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--verde-primario);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.5px;
  padding-left: var(--spacing-sm);
}

.article-title_3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--dourado-destaque);
  border-radius: 2px;
}
  
/* Introdução do Artigo */
.article-text{
  text-align: justify;
  text-indent: 2em;
  margin-bottom: var(--spacing-sm);
  color: var(--texto-leitura);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Introdução do Artigo */
.article-list{
  text-align: justify;
  text-indent: 2em;
  margin-bottom: var(--spacing-sm);
  color: var(--texto-leitura);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Seções do Artigo */
.article-section {
  margin-bottom: var(--spacing-xl);
}

.article-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--verde-primario);
  margin-bottom: var(--spacing-md);
  margin-top: var(--spacing-lg);
  letter-spacing: -0.3px;
  position: relative;
  padding-left: var(--spacing-sm);
}

.article-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--verde-primario);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.article-section p {
  margin-bottom: var(--spacing-md);
  color: var(--texto-leitura);
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: justify;
  text-indent: 2em;
}

/* Remover recuo do primeiro parágrafo após título */
.article-section h2 + p,
.article-section h3 + p {
  text-indent: 0;
}

/* Classe utilitária para recuo de primeira linha */
.text-indent {
  text-indent: 2em !important;
}

/* Listas */
.article-section ul,
.article-section ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.article-section li {
  margin-bottom: var(--spacing-sm);
  color: var(--texto-leitura);
  font-size: 1.125rem;
  line-height: 1.8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-section li::marker {
  color: var(--verde-primario);
  font-weight: 600;
}

/* Tabelas */
.article-table {
  width: 100%;
  margin: var(--spacing-md) 0;
  border-collapse: collapse;
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 4px;
  overflow: hidden;
}

.article-table thead {
  background: var(--verde-primario);
  color: var(--branco);
}

.article-table thead th {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-table tbody tr {
  border-bottom: 1px solid var(--cinza-borda);
  transition: background-color 0.2s ease;
}

.article-table tbody tr:hover {
  background: rgba(3, 77, 66, 0.02);
}

.article-table tbody tr:last-child {
  border-bottom: none;
}

.article-table tbody td {
  padding: var(--spacing-md);
  vertical-align: top;
  text-align: justify;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--texto-leitura);
}

.article-table tbody td:first-child {
  font-weight: 600;
  color: var(--texto-primario);
  width: 200px;
  text-align: left;
}

.article-table tbody td:last-child {
  color: var(--texto-leitura);
  text-align: justify;
}

/* Links */
a {
  color: var(--verde-primario);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

a:hover {
  color: var(--verde-secundario);
  text-decoration: underline;
}

/* Destaque de Email */
.email-highlight {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(3, 77, 66, 0.08);
  border-radius: 4px;
  font-weight: 600;
  color: var(--verde-primario);
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
}

/* Navegação de Links */
.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.article-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-links a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--branco);
  border: 2px solid var(--verde-primario);
  border-radius: 4px;
  color: var(--verde-primario);
  font-weight: 600;
  transition: all 0.2s ease;
}

.article-links a:hover {
  background: var(--verde-primario);
  color: var(--branco);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(3, 77, 66, 0.2);
}

/* Botões de Links Padronizados para Artigos */
.article-link-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 12px;
  background: var(--branco);
  border: 2px solid var(--verde-primario);
  border-radius: 8px;
  color: var(--verde-primario);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.article-link-button:hover {
  background: var(--verde-primario);
  color: var(--branco);
  text-decoration: none;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(3, 77, 66, 0.25);
  border-color: var(--verde-primario);
}

.article-link-button:active {
  transform: translateX(4px);
  box-shadow: 0 2px 6px rgba(3, 77, 66, 0.2);
}


/* Citações/Destaques */
.article-quote {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--texto-leitura);
  font-style: italic;
  border-left: 4px solid var(--dourado-destaque);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* Imagens em Artigos */
.article-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1.5rem auto;
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  .article-container {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-section h2 {
    font-size: 1.5rem;
  }
  
  .article-section h3 {
    font-size: 1.125rem;
  
  }
  
  .article-section p,
  .article-intro p,
  .article-section li {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .article-table {
    font-size: 0.875rem;
  }
  
  .article-table thead th,
  .article-table tbody td {
    padding: var(--spacing-sm);
  }
  
  .article-table tbody td:first-child {
    width: auto;
  }
  
  .article-links {
    flex-direction: column;
  }
  
  .article-links a {
    width: 100%;
    text-align: center;
  }
  
  .article-link-button {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Seleção de texto */
::selection {
  background: var(--verde-primario);
  color: var(--branco);
}

::-moz-selection {
  background: var(--verde-primario);
  color: var(--branco);
}

/* Acessibilidade - Foco */
a:focus,
button:focus {
  outline: 2px solid var(--dourado-destaque);
  outline-offset: 2px;
}

/* Print */
@media print {
  .article-container {
    box-shadow: none;
    max-width: 100%;
  }
  
  .article-table tbody tr:hover {
    background: transparent;
  }
  
  a {
    color: var(--texto-primario);
    text-decoration: underline;
  }
}
