/* Help Article Content Styling */
.article-content {
  color: #E6EBF0;
  font-size: 1.0625rem; /* 17px - melhor para leitura */
  line-height: 1.75; /* 28px */
  font-weight: 400;
}

/* Headings */
.article-content h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  color: #E6EBF0;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  color: #E6EBF0;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  color: #E6EBF0;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1.5rem;
  color: #A6B0BB;
  line-height: 1.75;
}

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

/* Links */
.article-content a {
  color: #FFB703;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-bottom-color: #FFB703;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  color: #A6B0BB;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
  padding-left: 0.5rem;
}

.article-content li::marker {
  color: #FFB703;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Strong/Bold */
.article-content strong {
  color: #E6EBF0;
  font-weight: 600;
}

/* Inline Code */
.article-content code {
  background: #11161C;
  color: #FFB703;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem; /* 15px */
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  border: 1px solid #1D2430;
}

/* Code Blocks */
.article-content pre {
  background: #0B0F13;
  border: 1px solid #1D2430;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  position: relative;
}

.article-content pre code {
  background: transparent;
  color: #E6EBF0;
  padding: 0;
  border: none;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.6;
  display: block;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem; /* 15px */
  background: #11161C;
  border: 1px solid #1D2430;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-content thead {
  background: #151B22;
}

.article-content thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #E6EBF0;
  border-bottom: 2px solid #1D2430;
}

.article-content tbody tr {
  border-bottom: 1px solid #1D2430;
}

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

.article-content tbody td {
  padding: 1rem;
  color: #A6B0BB;
  vertical-align: top;
}

.article-content tbody tr:hover {
  background: rgba(255, 183, 3, 0.03);
}

/* Divs com estilos especiais (alertas, avisos) */
.article-content div[style*="background"] {
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 183, 3, 0.2);
}

.article-content div[style*="background"] h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #FFB703;
  font-size: 1.125rem;
}

.article-content div[style*="background"] p {
  margin-bottom: 0.75rem;
}

.article-content div[style*="background"] p:last-child {
  margin-bottom: 0;
}

/* Blockquotes */
.article-content blockquote {
  border-left: 4px solid #FFB703;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #A6B0BB;
}

/* Horizontal Rules */
.article-content hr {
  border: none;
  border-top: 1px solid #1D2430;
  margin: 2rem 0;
}

/* Images */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border: 1px solid #1D2430;
}

/* Espaçamento entre elementos consecutivos */
.article-content h2 + h3 {
  margin-top: 1rem;
}

.article-content h3 + h4 {
  margin-top: 0.75rem;
}

/* Melhorar legibilidade em dispositivos móveis */
@media (max-width: 640px) {
  .article-content {
    font-size: 1rem; /* 16px em mobile */
    line-height: 1.7;
  }

  .article-content h2 {
    font-size: 1.625rem; /* 26px */
    margin-top: 2rem;
  }

  .article-content h3 {
    font-size: 1.375rem; /* 22px */
    margin-top: 1.5rem;
  }

  .article-content h4 {
    font-size: 1.125rem; /* 18px */
    margin-top: 1.25rem;
  }

  .article-content pre {
    padding: 1rem;
    margin: 1rem 0;
  }

  .article-content table {
    font-size: 0.875rem; /* 14px */
  }

  .article-content thead th,
  .article-content tbody td {
    padding: 0.75rem;
  }
}

/* Melhorar contraste para acessibilidade */
@media (prefers-contrast: high) {
  .article-content {
    color: #FFFFFF;
  }

  .article-content p,
  .article-content li,
  .article-content td {
    color: #E6EBF0;
  }
}

/* Animações suaves */
.article-content a,
.article-content tbody tr {
  transition: all 0.2s ease;
}

/* Scroll suave para código longo */
.article-content pre {
  scrollbar-width: thin;
  scrollbar-color: #1D2430 #0B0F13;
}

.article-content pre::-webkit-scrollbar {
  height: 8px;
}

.article-content pre::-webkit-scrollbar-track {
  background: #0B0F13;
  border-radius: 4px;
}

.article-content pre::-webkit-scrollbar-thumb {
  background: #1D2430;
  border-radius: 4px;
}

.article-content pre::-webkit-scrollbar-thumb:hover {
  background: #2A3140;
}

/* Espaçamento consistente no primeiro elemento */
.article-content > *:first-child {
  margin-top: 0;
}

/* Espaçamento consistente no último elemento */
.article-content > *:last-child {
  margin-bottom: 0;
}
