/* Article Editorial Styles - Dica de Médico */

/* Container principal do artigo */
.artigo-completo {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: #2d3748;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #718096;
  margin: 1.5rem 0 2rem 0;
  padding: 0 20px;
}

.breadcrumb a {
  color: #0d5c45;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #0a4d3a;
}

.breadcrumb span {
  color: #cbd5e0;
}

/* Meta do artigo */
.artigo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

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

.meta-item strong {
  color: #2d3748;
  font-weight: 600;
}

/* Título principal */
.artigo-completo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0d5c45;
  margin: 0 0 2rem 0;
}

/* Blocos especiais - Quick Answer */
.quick-answer {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.quick-answer h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 0.75rem 0;
}

.quick-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #064e3b;
}

/* Resumo em pontos */
.resumo-pontos {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.resumo-pontos h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 1rem 0;
}

.resumo-pontos ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.resumo-pontos li {
  margin-bottom: 0.5rem;
  color: #78350f;
  line-height: 1.6;
}

/* Social Share */
.social-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.social-share span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a5568;
}

.social-share a {
  font-size: 0.875rem;
  color: #0d5c45;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.social-share a:hover {
  background: #f7fafc;
  border-color: #0d5c45;
}

/* Imagem hero do artigo */
.article-hero {
  margin: 2rem 0 3rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.article-hero figcaption {
  font-size: 0.875rem;
  color: #718096;
  text-align: center;
  padding: 0.75rem;
  background: #f7fafc;
}

/* Introdução do artigo */
.artigo-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 2rem 0 3rem 0;
}

.artigo-intro p {
  margin-bottom: 1.25rem;
}

/* Table of Contents */
.toc-box {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.toc-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-item a {
  color: #0d5c45;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: color 0.2s;
  display: block;
  padding: 0.25rem 0;
}

.toc-item a:hover {
  color: #0a4d3a;
  text-decoration: underline;
}

.toc-item.toc-h3 {
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

/* Tipografia - Headers */
.artigo-completo h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #0d5c45;
  margin: 3rem 0 1.25rem 0;
  line-height: 1.3;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.75rem;
}

.artigo-completo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d5c45;
  margin: 2.5rem 0 1rem 0;
  line-height: 1.3;
}

.artigo-completo h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 2rem 0 0.75rem 0;
  line-height: 1.4;
}

/* Parágrafos */
.artigo-completo p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 1.25rem;
}

/* Listas */
.artigo-completo ul,
.artigo-completo ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.artigo-completo li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2d3748;
  margin-bottom: 0.75rem;
}

.artigo-completo ul li {
  list-style: disc;
}

.artigo-completo ol li {
  list-style: decimal;
}

/* Links */
.artigo-completo a {
  color: #0d5c45;
  text-decoration: none !important;
  transition: color 0.2s;
}

.artigo-completo a:hover {
  color: #0a4d3a;
  text-decoration: underline !important;
}

/* Strong e Emphasis */
.artigo-completo strong {
  font-weight: 600;
  color: #1a202c;
}

.artigo-completo em {
  font-style: italic;
}

/* Figuras e SVGs */
.artigo-svg {
  margin: 2.5rem 0;
  text-align: center;
}

.artigo-svg svg {
  max-width: 100%;
  height: auto;
}

.artigo-svg figcaption {
  font-size: 0.875rem;
  color: #718096;
  margin-top: 0.75rem;
}

/* Key Takeaways */
.key-takeaways {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-left: 4px solid #0284c7;
  padding: 2rem;
  margin: 3rem 0;
  border-radius: 0 12px 12px 0;
}

.key-takeaways h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0c4a6e;
  margin: 0 0 1.25rem 0;
  border: none;
  padding: 0;
}

.key-takeaways ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.key-takeaways li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
  color: #075985;
  line-height: 1.7;
}

.key-takeaways li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #0284c7;
  font-weight: 700;
  font-size: 1.125rem;
}

/* Referências */
.referencias {
  margin: 3rem 0;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 12px;
}

.referencias h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 1.25rem 0;
  border: none;
  padding: 0;
}

.referencias ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.referencias li {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  position: relative;
}

.referencias li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0d5c45;
  font-weight: 700;
}

.referencias a {
  color: #0d5c45;
  word-break: break-word;
}

/* Artigos Relacionados */
.artigos-relacionados {
  margin: 4rem 0 3rem 0;
  padding: 2.5rem;
  background: #f7fafc;
  border-radius: 12px;
}

.artigos-relacionados h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 2rem 0;
  text-align: center;
}

.grid-relacionados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card-relacionado {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: block;
}

.card-relacionado:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #0d5c45;
}

.card-relacionado h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0d5c45;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.card-relacionado p {
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.6;
}

/* Disclaimer */
.artigo-disclaimer {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  padding: 1.5rem;
  margin: 3rem 0;
  border-radius: 0 8px 8px 0;
}

.artigo-disclaimer p {
  margin: 0;
  font-size: 0.9375rem;
  color: #7f1d1d;
  line-height: 1.6;
}

.artigo-disclaimer strong {
  color: #991b1b;
}

/* Blockquotes */
.artigo-completo blockquote {
  border-left: 4px solid #0d5c45;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f7fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5568;
}

.artigo-completo blockquote p {
  margin: 0;
}

/* Tabelas */
.artigo-completo table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.artigo-completo th,
.artigo-completo td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.artigo-completo th {
  background: #f7fafc;
  font-weight: 600;
  color: #1a202c;
}

.artigo-completo tr:hover {
  background: #fafbfc;
}

/* Code */
.artigo-completo code {
  background: #f7fafc;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
  color: #c7254e;
}

.artigo-completo pre {
  background: #1a202c;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.artigo-completo pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Responsivo - Mobile */
@media (max-width: 767px) {
  .artigo-completo {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .breadcrumb {
    padding: 0 16px;
    margin: 1rem 0 1.5rem 0;
  }

  .artigo-meta {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .artigo-completo h1 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
  }

  .artigo-completo h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
  }

  .artigo-completo h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem 0;
  }

  .artigo-completo p,
  .artigo-completo li {
    font-size: 1rem;
  }

  .artigo-intro {
    font-size: 1.0625rem;
    margin: 1.5rem 0 2rem 0;
  }

  .toc-box {
    padding: 1.25rem;
  }

  .quick-answer,
  .resumo-pontos,
  .key-takeaways,
  .artigo-disclaimer {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }

  .referencias,
  .artigos-relacionados {
    padding: 1.5rem;
    margin: 2.5rem 0;
  }

  .grid-relacionados {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-share {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .social-share a {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }

  .article-hero {
    margin: 1.5rem 0 2rem 0;
    border-radius: 8px;
  }

  .artigo-completo ul,
  .artigo-completo ol {
    padding-left: 1.5rem;
  }

  .artigo-completo table {
    font-size: 0.875rem;
  }

  .artigo-completo th,
  .artigo-completo td {
    padding: 0.5rem 0.75rem;
  }
}

/* Responsivo - Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .artigo-completo {
    max-width: 720px;
  }

  .grid-relacionados {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print Styles */
@media print {
  .artigo-completo {
    max-width: 100%;
  }

  .social-share,
  .artigos-relacionados {
    display: none;
  }

  .artigo-completo h1,
  .artigo-completo h2,
  .artigo-completo h3 {
    page-break-after: avoid;
  }

  .artigo-completo p,
  .artigo-completo ul,
  .artigo-completo ol {
    orphans: 3;
    widows: 3;
  }
}


/* Article Header */
.article-header {
  margin-bottom: 1.5rem;
}

.article-header h1 {
  margin-bottom: 0.5rem;
}

.article-header .subtitle {
  color: #64748b;
  font-size: 1rem;
}

/* Table of Contents */
.toc-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d5c45;
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.toc-item a {
  text-decoration: none;
  color: #1f2937;
  font-size: 0.95rem;
}

.toc-item.toc-h3 a {
  padding-left: 0.75rem;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.related-articles h2 {
  font-size: 1.25rem;
  color: #0d5c45;
  margin-bottom: 1rem;
}

.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.related-articles a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.2s ease;
}

.related-articles a:hover {
  border-color: #0d5c45;
  background: #f0fdf4;
}

/* Mobile readability */
@media (max-width: 768px) {
  .artigo-completo {
    padding: 1.5rem;
    margin: 1.5rem 0.75rem;
  }

  .artigo-completo h1 {
    font-size: 1.75rem;
  }

  .artigo-completo h2 {
    font-size: 1.25rem;
  }

  .artigo-completo p,
  .artigo-completo li {
    font-size: 1rem;
  }
}
