/* ============================================================
   Voice Bonsai — Article Page Styles
   Requires: brand.css (base, nav, footer, buttons, container)
   ============================================================ */

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ── Article Hero ── */
.article-hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--border-soft); }
.article-hero-bg { background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0,212,232,.08) 0%, transparent 60%); border-bottom: 1px solid var(--border-soft); }
.article-cat {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: rgba(0,212,232,.08); border: 1px solid rgba(0,212,232,.2);
  border-radius: 30px; padding: .3rem .9rem; margin-bottom: 1rem; text-decoration: none;
  transition: background .15s;
}
.article-cat:hover { background: rgba(0,212,232,.15); text-decoration: none; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; max-width: 820px; margin-bottom: 1.25rem; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.article-meta-divider { color: var(--border-soft); }
.article-tag { font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 20px; background: rgba(0,212,232,.08); border: 1px solid rgba(0,212,232,.15); color: var(--teal); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--teal); text-decoration: none; }
.breadcrumb-sep { opacity: .4; }

/* ── Article Layout ── */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; padding: 4rem 0 6rem; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { display: none; } }

/* ── Article Body Prose ── */
.article-body { max-width: 720px; }
.article-body p { font-size: 1rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 1.5rem; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; margin: 2.5rem 0 1rem; letter-spacing: -.02em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.3; margin: 2rem 0 .75rem; }
.article-body h4 { font-size: .95rem; font-weight: 700; color: var(--teal); margin: 1.5rem 0 .5rem; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.article-body ul li, .article-body ol li { font-size: .975rem; color: var(--text-secondary); line-height: 1.7; }
.article-body ul li strong, .article-body ol li strong { color: #fff; }
.article-body a { color: var(--teal); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { color: #fff; }
.article-body blockquote { background: var(--navy-card); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; }
.article-body blockquote p { color: var(--text-secondary); font-style: italic; margin-bottom: 0; }
.article-body blockquote cite { font-size: .8rem; color: var(--text-muted); font-style: normal; display: block; margin-top: .5rem; }

/* ── Inline CTA ── */
.inline-cta { background: linear-gradient(135deg, rgba(0,212,232,.1), rgba(107,79,232,.08)); border: 1px solid rgba(0,212,232,.25); border-radius: var(--radius-lg); padding: 2rem; margin: 2.5rem 0; text-align: center; }
.inline-cta h3 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.inline-cta p { font-size: .9rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.6; }
.inline-cta .btn { margin: 0 auto; }

/* ── Stat Callout ── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.stat-row-2 { grid-template-columns: repeat(2, 1fr); }
.stat-box { background: var(--navy-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; }
.stat-box .stat-num { font-size: 2rem; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; line-height: 1.1; margin-bottom: .3rem; }
.stat-box .stat-label { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ── Key Takeaway Box ── */
.key-takeaway { background: linear-gradient(135deg, rgba(0,212,232,.06), rgba(107,79,232,.05)); border: 1px solid rgba(0,212,232,.2); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 2rem 0; }
.key-takeaway strong { color: var(--teal); display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.key-takeaway p { margin-bottom: 0; font-size: .95rem; }

/* ── Definition Box ── */
.definition-box { background: var(--navy-card); border: 1px solid rgba(0,212,232,.2); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 1.5rem 0 2rem; }
.definition-box .def-term { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.definition-box p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.7; }

/* ── FAQ Section ── */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { background: var(--navy-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); margin-bottom: .75rem; overflow: hidden; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; cursor: pointer; gap: 1rem; }
.faq-question span { font-size: .975rem; font-weight: 700; color: #fff; line-height: 1.4; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,212,232,.1); border: 1px solid rgba(0,212,232,.2); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 1.1rem; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: .9rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 0; }

/* ── Article Sidebar ── */
.article-sidebar { position: sticky; top: 160px; }
.sidebar-widget { background: var(--navy-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.sidebar-widget h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-secondary); margin-bottom: 1.25rem; }
.sidebar-widget ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.sidebar-widget ul li a { font-size: .875rem; color: var(--text-secondary); transition: color .15s; }
.sidebar-widget ul li a:hover { color: var(--teal); text-decoration: none; }
.sidebar-cta { background: linear-gradient(135deg, rgba(0,212,232,.12), rgba(107,79,232,.1)); border: 1px solid rgba(0,212,232,.2); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; margin-bottom: 1.5rem; }
.sidebar-cta h3 { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.sidebar-cta p { font-size: .82rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.6; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ── Table of Contents ── */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.toc-list li a { font-size: .82rem; color: var(--text-muted); transition: color .15s, border-color .15s; padding-left: .75rem; border-left: 2px solid var(--border-soft); display: block; line-height: 1.4; }
.toc-list li a:hover { color: var(--teal); border-left-color: var(--teal); text-decoration: none; }
.toc-list li a.active { color: var(--teal); border-left-color: var(--teal); }

/* ── Related Articles (sidebar) ── */
.related-card { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--border-soft); }
.related-card:last-child { border-bottom: none; padding-bottom: 0; }
.related-card-icon { width: 44px; height: 44px; border-radius: var(--radius); background: rgba(0,212,232,.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.related-card-body h4 { font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.35; margin-bottom: .2rem; }
.related-card-body h4 a { color: #fff; }
.related-card-body h4 a:hover { color: var(--teal); text-decoration: none; }
.related-card-body span { font-size: .7rem; color: var(--text-muted); }

/* ── Related Posts (bottom of article) ── */
.related-posts-section { border-top: 1px solid var(--border-soft); padding: 4rem 0; }
.related-posts-section h2 { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 2rem; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 768px) { .related-posts-grid { grid-template-columns: 1fr; } }
.related-post-card { background: var(--navy-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s; display: block; text-decoration: none; }
.related-post-card:hover { border-color: rgba(0,212,232,.25); transform: translateY(-3px); text-decoration: none; }
.related-post-img { height: 120px; background: linear-gradient(135deg, rgba(0,212,232,.1), rgba(107,79,232,.1)); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.related-post-body { padding: 1.25rem; }
.related-post-body .cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--teal); margin-bottom: .4rem; display: block; }
.related-post-body h3 { font-size: .9rem; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: .4rem; }
.related-post-body span { font-size: .72rem; color: var(--text-muted); }

/* ── Footer ── */
footer.site-footer { background: var(--navy-mid); border-top: 1px solid var(--border-soft); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 160px; width: auto; max-width: 340px; margin-bottom: 1rem; object-fit: contain; }
.footer-brand p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.footer-col h4 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { font-size: .875rem; color: var(--text-muted); transition: color .15s; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: var(--text-muted); }
