/**
 * blog-post.css — SpringHive Blog Theme
 * Extracted from the inline <style> blocks in static PHP blog posts.
 * Covers the art-* layout and sxc-* component classes.
 */

/* ── Reading progress ────────────────────── */
#reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #7c5af5, #00c9a7);
    z-index: 9999;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
}

/* ── Hero override ───────────────────────── */
.art-hero { padding: 5rem 2rem 1.5rem !important; }

/* ── Main layout ─────────────────────────── */
.art-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4.5rem;
    align-items: start;
}
.art-content { min-width: 0; order: 1; }
.art-sidebar  { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.5rem; order: 2; }

/* ── Widgets ─────────────────────────────── */
.art-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.art-widget-inner { padding: 1.4rem; }
.widget-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: .9rem; font-weight: 800; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }

/* Author */
.author-widget-strip { height: 4px; background: linear-gradient(90deg, #7c5af5, #00c9a7); }
.author-widget { text-align: center; padding: 1.75rem 1.5rem 1.5rem; }
.author-badge { display: inline-block; background: rgba(124,90,245,.08); color: #7c5af5; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .22rem .75rem; border-radius: 100px; border: 1px solid rgba(124,90,245,.2); margin-bottom: 1.25rem; font-family: monospace; }
.author-logo-wrap { width: 90px; height: 90px; border-radius: 50%; background: var(--bg-main); border: 2px solid var(--border-color); margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.author-logo { width: 100%; display: block; }
.author-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: .3rem; }
.author-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.2rem; }
.author-cta { display: block; background: linear-gradient(135deg, #7c5af5, #a78bfa); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; padding: .6rem 1.2rem; border-radius: 100px; transition: opacity .2s, transform .2s; }
.author-cta:hover { opacity: .85; transform: translateY(-1px); }

/* TOC */
.toc-strip { height: 3px; background: linear-gradient(90deg, #7c5af5 0%, transparent 100%); }
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.toc-list li { border-bottom: 1px solid var(--border-color); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { display: flex; align-items: center; gap: .65rem; padding: .65rem .5rem; color: var(--text-muted); text-decoration: none; font-size: .83rem; line-height: 1.4; transition: color .2s; border-left: 2px solid transparent; padding-left: .6rem; }
.toc-list a:hover, .toc-list a.active { color: #7c5af5; border-left-color: #7c5af5; }
.toc-num { font-family: monospace; font-size: .68rem; background: rgba(124,90,245,.1); color: #7c5af5; padding: .1rem .4rem; border-radius: 4px; flex-shrink: 0; }

/* Categories */
.cat-strip { height: 3px; background: linear-gradient(90deg, #00c9a7 0%, transparent 100%); }
.cat-list { display: flex; flex-direction: column; }
.cat-link { display: flex; justify-content: space-between; align-items: center; padding: .65rem .5rem; border-bottom: 1px solid var(--border-color); color: var(--text-muted); text-decoration: none; font-size: .84rem; transition: color .2s, border-left-color .2s; border-left: 2px solid transparent; padding-left: .6rem; }
.cat-link:last-child { border-bottom: none; }
.cat-link:hover { color: #7c5af5; border-left-color: #7c5af5; }
.cat-link--active { color: #00c9a7 !important; border-left-color: #00c9a7 !important; font-weight: 600; }
.cat-count { font-family: monospace; font-size: .68rem; background: rgba(0,201,167,.1); color: #00c9a7; padding: .1rem .45rem; border-radius: 4px; min-width: 20px; text-align: center; flex-shrink: 0; }

/* ── Article Content ─────────────────────── */
.art-intro { font-size: 1.08rem; color: var(--text-muted); line-height: 1.85; padding: 1.25rem 1.5rem; border-left: 3px solid #7c5af5; background: rgba(124,90,245,.04); border-radius: 0 10px 10px 0; margin-bottom: 2rem; }
.art-figure { margin: 1.75rem 0 2rem; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color); max-height: 420px; }
.art-img { width: 100%; height: 420px; object-fit: cover; object-position: center; display: block; }
.art-caption { font-size: .78rem; color: var(--text-muted); padding: .55rem 1rem; background: var(--bg-card); font-style: italic; text-align: center; border-top: 1px solid var(--border-color); }

/* Headings */
.art-content h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 800; letter-spacing: -.02em; margin: 2.5rem 0 1rem; color: var(--text-main); line-height: 1.2; }
.art-content h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 .65rem; color: var(--text-main); }
.art-content p  { font-size: .95rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 1rem; }
.art-content strong { color: var(--text-main); }
.art-content a  { color: #7c5af5; text-decoration: none; }
.art-content a:hover { text-decoration: underline; }

/* Lists */
.art-list { list-style: none; padding: 0; margin: .75rem 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.art-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .93rem; color: var(--text-muted); line-height: 1.65; }
.art-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7c5af5; flex-shrink: 0; margin-top: .52rem; }

/* Callouts */
.art-callout { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1.1rem; border-radius: 10px; font-size: .88rem; line-height: 1.65; margin-top: 1.25rem; }
.art-callout-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.art-callout.green  { background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.2); color: var(--text-muted); }
.art-callout.blue   { background: rgba(124,90,245,.06); border: 1px solid rgba(124,90,245,.18); color: var(--text-muted); }
.art-callout.yellow { background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.2);  color: var(--text-muted); }
.art-callout strong { color: var(--text-main); }

/* Inline CTA */
.art-brand-cta { background: linear-gradient(135deg, rgba(124,90,245,.06), rgba(0,201,167,.04)); border: 1px solid rgba(124,90,245,.2); border-radius: 12px; padding: 1.4rem 1.5rem; margin-top: 1.25rem; }
.art-brand-cta-label { font-family: monospace; font-size: .72rem; font-weight: 700; color: #7c5af5; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; display: flex; align-items: center; gap: .4rem; }
.art-brand-cta p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.art-brand-cta strong { color: var(--text-main); }

/* ── FAQ Section ─────────────────────────── */
.art-faq { margin-top: 3.5rem; padding: 2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; }
.art-faq-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; margin-bottom: 1.5rem; }
.sxc-faq-item { border-bottom: 1px solid var(--border-color); padding: 1.1rem 0; }
.sxc-faq-item:last-child { border-bottom: none; }
.sxc-faq-q { font-weight: 700; font-size: .93rem; margin-bottom: .5rem; display: flex; align-items: flex-start; gap: .75rem; }
.sxc-faq-q::before { content: 'Q'; font-family: monospace; font-size: .72rem; background: rgba(124,90,245,.1); color: #7c5af5; padding: .15rem .45rem; border-radius: 4px; margin-top: .1rem; flex-shrink: 0; font-weight: 700; }
.sxc-faq-a { font-size: .88rem; color: var(--text-muted); line-height: 1.72; padding-left: 2rem; }

/* ── Bottom CTA Bar ──────────────────────── */
.sxc-cta-bar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem; text-align: center; margin-top: 3rem; }
.sxc-cta-bar h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: .6rem; }
.sxc-cta-bar p  { font-size: .92rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.sxc-cta-btn { display: inline-flex; align-items: center; gap: .5rem; background: #7c5af5; color: #fff; font-weight: 700; font-size: .9rem; padding: .85rem 1.8rem; border-radius: 100px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.sxc-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,90,245,.35); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 860px) {
    .art-layout { grid-template-columns: 1fr; }
    .art-sidebar { position: static; }
}
