/* =============================================
   SPEED FINANCEIRA - BLOG ARTICLE STYLES
   Typography & Layout - Premium Editorial
   ============================================= */

:root {
  --color-primary: #064e3b;
  --color-secondary: #facc15;
  --font-body: 'Outfit', sans-serif;
  --max-article: 760px;
  --spacing-section: 3rem;
}

/* --- Base --- */
body { font-family: var(--font-body); color: #1f2937; background: #fff; }

/* --- Article Header --- */
.article-header { background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%); border-bottom: 1px solid #e5e7eb; padding: 4rem 1.5rem 3rem; }
.article-header .breadcrumb { font-size: 0.75rem; color: #9ca3af; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.article-header .breadcrumb a { color: #6b7280; text-decoration: none; transition: color .2s; }
.article-header .breadcrumb a:hover { color: var(--color-primary); }
.article-header .tag { display: inline-block; background: var(--color-primary); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 1.25rem; }
.article-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: #111827; line-height: 1.25; margin: 0 0 1rem; letter-spacing: -0.02em; }
.article-header .lead { font-size: 1.15rem; color: #4b5563; line-height: 1.75; font-weight: 300; margin: 0 0 2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8rem; color: #6b7280; font-weight: 500; align-items: center; }
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.article-meta .divider { width: 4px; height: 4px; background: #d1d5db; border-radius: 999px; }

/* --- Layout: Article + Sidebar --- */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; } }

/* --- Article Body --- */
.article-body { max-width: var(--max-article); }
.article-body p { font-size: 1.0625rem; line-height: 1.85; color: #374151; margin: 0 0 1.5rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; margin: 2.5rem 0 0.85rem; padding-bottom: 0.6rem; border-bottom: 2px solid #f3f4f6; line-height: 1.3; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: #1f2937; margin: 2rem 0 0.65rem; line-height: 1.4; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.25rem; padding: 0; }
.article-body ul li, .article-body ol li { font-size: 1.0625rem; line-height: 1.8; color: #374151; margin-bottom: 0.5rem; }
.article-body ul li::marker { color: var(--color-primary); }
.article-body ol li::marker { color: var(--color-primary); font-weight: 700; }
.article-body strong { color: #111827; font-weight: 700; }
.article-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.article-body a:hover { color: #065f46; }
.article-body blockquote { border-left: 4px solid var(--color-secondary); background: #fffbeb; padding: 1.25rem 1.5rem; margin: 1.75rem 0; border-radius: 0 0.75rem 0.75rem 0; }
.article-body blockquote p { margin: 0; font-style: italic; color: #92400e; font-weight: 500; }

/* --- Callout Box --- */
.callout { border-radius: 0.875rem; padding: 1.25rem 1.5rem; margin: 2rem 0; display: flex; gap: 1rem; align-items: flex-start; }
.callout.tip { background: #ecfdf5; border: 1px solid #a7f3d0; }
.callout.tip .callout-icon { color: #059669; font-size: 1.25rem; margin-top: 0.1rem; }
.callout.tip p { color: #065f46; margin: 0; font-weight: 500; font-size: 0.95rem; line-height: 1.65; }
.callout.warning { background: #fffbeb; border: 1px solid #fcd34d; }
.callout.warning .callout-icon { color: #d97706; font-size: 1.25rem; margin-top: 0.1rem; }
.callout.warning p { color: #92400e; margin: 0; font-weight: 500; font-size: 0.95rem; line-height: 1.65; }
.callout.info { background: #eff6ff; border: 1px solid #bfdbfe; }
.callout.info p { color: #1e40af; margin: 0; font-weight: 500; font-size: 0.95rem; line-height: 1.65; }

/* --- Table of Contents --- */
.toc { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 1.5rem; margin: 0 0 2.5rem; }
.toc h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; margin: 0 0 0.85rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc ol li { font-size: 0.9rem; color: #374151; margin-bottom: 0.4rem; line-height: 1.5; }
.toc ol li a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.toc ol li a:hover { text-decoration: underline; }

/* --- Section Divider --- */
.article-divider { border: none; border-top: 1px solid #f3f4f6; margin: 2.5rem 0; }

/* --- Sidebar --- */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 1.5rem; }
.sidebar-card h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; margin: 0 0 1rem; }
.sidebar-cta { background: var(--color-primary); border: none; color: #fff; padding: 1.5rem; border-radius: 0.875rem; text-align: center; }
.sidebar-cta h4 { color: rgba(255,255,255,0.6); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.sidebar-cta p { color: #d1fae5; font-size: 0.9rem; line-height: 1.6; margin: 0 0 1.25rem; }
.sidebar-cta a { display: block; background: var(--color-secondary); color: var(--color-primary); font-weight: 800; font-size: 0.9rem; padding: 0.85rem; border-radius: 0.625rem; text-decoration: none; transition: background .2s; }
.sidebar-cta a:hover { background: #eab308; }

/* --- Author Box --- */
.author-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.875rem; margin: 3rem 0 0; }
.author-avatar { width: 52px; height: 52px; background: var(--color-primary); border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.1rem; flex-shrink: 0; }
.author-box h4 { font-size: 0.9rem; font-weight: 700; color: #111827; margin: 0 0 0.2rem; }
.author-box p { font-size: 0.82rem; color: #6b7280; margin: 0; line-height: 1.55; }

/* --- Related Posts --- */
.related-posts { margin: 3rem 0; padding-top: 2.5rem; border-top: 2px solid #f3f4f6; }
.related-posts h3 { font-size: 1.1rem; font-weight: 800; color: #111827; margin: 0 0 1.25rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 600px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1.1rem 1.25rem; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--color-primary); }
.related-card span { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; display: block; margin-bottom: 0.4rem; }
.related-card p { font-size: 0.9rem; font-weight: 700; color: #111827; margin: 0; line-height: 1.45; }

/* --- Final CTA Banner --- */
.article-cta-banner { background: linear-gradient(135deg, var(--color-primary) 0%, #065f46 100%); padding: 4rem 1.5rem; text-align: center; }
.article-cta-banner h2 { font-size: 1.75rem; font-weight: 800; color: #fff; margin: 0 0 0.75rem; }
.article-cta-banner p { color: #a7f3d0; font-size: 1rem; margin: 0 0 2rem; }
.article-cta-banner a { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--color-secondary); color: var(--color-primary); font-weight: 800; padding: 1rem 2.25rem; border-radius: 0.75rem; font-size: 1rem; text-decoration: none; transition: background .2s; box-shadow: 0 4px 20px rgba(250,204,21,0.4); }
.article-cta-banner a:hover { background: #eab308; }

/* --- Progress bar --- */
#reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--color-secondary); width: 0%; z-index: 9999; transition: width 0.1s; }

/* --- Responsive tweaks --- */
@media (max-width: 640px) {
  .article-header { padding: 2.5rem 1rem 2rem; }
  .article-layout { padding: 2rem 1rem; }
  .article-body h2 { font-size: 1.3rem; }
  .article-body p { font-size: 1rem; }
}
