/* Alpha MF — Blog shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0f1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --primary: #0D59F2;
    --primary-glow: rgba(13, 89, 242, 0.3);
    --accent: #f59e0b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --border: #1e293b;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Heebo', 'Assistant', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #242e42; border-radius: 3px; }

.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
nav.site-nav .inner {
    max-width: 1180px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.logo span { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 20px; }
nav.site-nav a.nav-link {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: color .2s;
}
nav.site-nav a.nav-link:hover { color: var(--text); }
nav.site-nav a.nav-link.active { color: var(--primary); }
.lang-toggle {
    font-size: 0.8rem; font-weight: 600;
    padding: 6px 12px; border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-muted);
    text-decoration: none; transition: all .2s;
}
.lang-toggle:hover { border-color: var(--primary); color: var(--text); }
nav.site-nav a.cta-link {
    background: var(--primary); color: #fff;
    padding: 8px 16px; border-radius: 8px;
    font-size: 0.88rem; font-weight: 600; text-decoration: none;
    transition: all .2s;
}
nav.site-nav a.cta-link:hover { background: #0b4dd4; }
@media (max-width: 720px) { .nav-mid { display: none; } }

/* Breadcrumb */
.breadcrumb {
    padding-top: 100px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-dim); margin: 0 8px; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* Article header */
.article-header { padding: 36px 0 28px; }
.article-meta-top {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 18px; font-size: 0.88rem; color: var(--text-muted);
    margin-bottom: 18px;
}
.article-meta-top .tag {
    display: inline-block; font-size: 0.78rem; font-weight: 600;
    padding: 4px 12px; border-radius: 100px;
    background: rgba(13, 89, 242, 0.1); color: var(--primary);
    border: 1px solid rgba(13, 89, 242, 0.25);
    letter-spacing: 0.04em;
}
.article-meta-top time { color: var(--text-muted); }
.article-meta-top .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

.article-title {
    font-size: clamp(1.9rem, 4.6vw, 2.9rem);
    font-weight: 800; letter-spacing: -0.025em;
    line-height: 1.18; margin-bottom: 18px;
}
.article-title .gradient {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.article-lead {
    font-size: 1.15rem; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 14px;
}

/* TOC */
.toc {
    margin: 32px 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 26px;
}
.toc-label {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--primary); font-weight: 700; margin-bottom: 14px;
}
.toc-list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}
@media (max-width: 540px) { .toc-list { grid-template-columns: 1fr; } }
.toc-list li {
    font-size: 0.95rem;
    display: flex; align-items: baseline; gap: 8px;
}
.toc-list .num {
    color: var(--primary); font-weight: 700;
    font-variant-numeric: tabular-nums; min-width: 1.5em;
    font-family: 'Inter', system-ui, sans-serif;
}
.toc-list a {
    color: var(--text-muted); text-decoration: none;
    transition: color .2s; flex: 1;
}
.toc-list a:hover { color: var(--text); }

/* Tool entry */
.tool {
    margin: 56px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.tool:first-of-type { border-top: none; padding-top: 0; }
.tool-header {
    display: flex; align-items: baseline; gap: 16px;
    flex-wrap: wrap; margin-bottom: 14px;
}
.tool-num {
    font-size: 2.6rem; font-weight: 800;
    color: var(--primary); letter-spacing: -0.04em;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1;
}
.tool-name {
    font-size: 1.6rem; font-weight: 800;
    letter-spacing: -0.02em;
}
.tool-name a {
    color: var(--text); text-decoration: none;
    transition: color .2s; border-bottom: 1px dashed transparent;
}
.tool-name a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.tool-name a::after {
    content: '↗'; display: inline-block;
    margin-inline-start: 8px; font-size: 0.8em;
    color: var(--text-dim); transition: color .2s;
}
.tool-name a:hover::after { color: var(--primary); }
.tool-body { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; }
.tool-body p { margin-bottom: 10px; }
.tool-body strong { color: var(--text); font-weight: 600; }
.tool-meta {
    margin-top: 14px;
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    font-size: 0.88rem;
}
.tool-meta .meta-item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.tool-meta .meta-item.price { color: var(--accent); }
.tool-meta .meta-item.usefor { color: var(--text); }
.tool-meta strong { color: var(--text); font-weight: 600; }

/* CTA banner */
.post-cta {
    margin: 80px 0 40px;
    padding: 36px 32px;
    background: linear-gradient(135deg, rgba(13, 89, 242, 0.12), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(13, 89, 242, 0.25);
    border-radius: 18px;
    text-align: center;
}
.post-cta h3 {
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 10px; letter-spacing: -0.02em;
}
.post-cta p {
    color: var(--text-muted); font-size: 1.02rem;
    max-width: 580px; margin: 0 auto 22px;
}
.post-cta .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff; border: none;
    padding: 14px 28px; border-radius: 12px; font-size: 1rem;
    font-weight: 600; text-decoration: none;
    transition: all 0.2s;
}
.post-cta .btn-primary:hover {
    background: #0b4dd4;
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Related posts */
.related {
    margin-top: 60px; padding: 32px 0 0;
    border-top: 1px solid var(--border);
}
.related h3 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--text-muted); font-weight: 700;
    margin-bottom: 20px;
}
.related-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.related-card {
    padding: 18px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; text-decoration: none;
    transition: all .2s;
}
.related-card:hover {
    border-color: rgba(13, 89, 242, 0.35);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.related-card .rc-cat {
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--primary); font-weight: 600; margin-bottom: 6px;
}
.related-card .rc-title {
    font-size: 1rem; font-weight: 700; color: var(--text);
    line-height: 1.35;
}

/* Author bio */
.author-bio {
    margin-top: 56px;
    display: flex; align-items: start; gap: 18px;
    padding: 22px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px;
}
.author-bio img {
    width: 56px; height: 56px; border-radius: 50%;
    flex-shrink: 0; object-fit: cover; object-position: center top;
    border: 2px solid var(--border);
}
.author-bio .bio-text {
    font-size: 0.92rem; color: var(--text-muted);
    line-height: 1.65;
}
.author-bio .bio-text strong {
    color: var(--text); font-weight: 700; font-size: 1.02rem;
}
.author-bio .bio-text a { color: var(--primary); text-decoration: none; }
.author-bio .bio-text a:hover { text-decoration: underline; }

/* Blog index */
.blog-hero {
    padding: 130px 0 50px;
    text-align: center;
}
.blog-hero h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.12; margin-bottom: 18px;
}
.blog-hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero p {
    font-size: 1.18rem; color: var(--text-muted);
    max-width: 640px; margin: 0 auto;
}

.blog-grid {
    padding: 40px 0 100px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}
.blog-card {
    display: block; padding: 28px 26px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; text-decoration: none;
    transition: all .3s;
    position: relative; overflow: hidden;
}
.blog-card:hover {
    border-color: rgba(13, 89, 242, 0.35);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}
.blog-card .bc-meta {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
    font-size: 0.82rem; color: var(--text-muted);
}
.blog-card .bc-cat {
    font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--primary);
    padding: 4px 10px; border-radius: 100px;
    background: rgba(13, 89, 242, 0.1);
    border: 1px solid rgba(13, 89, 242, 0.25);
}
.blog-card h2 {
    font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.28; margin-bottom: 12px; color: var(--text);
}
.blog-card p {
    color: var(--text-muted); font-size: 0.97rem;
    line-height: 1.6;
}
.blog-card .bc-arrow {
    margin-top: 16px;
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.92rem;
}

/* Footer */
footer.site-footer {
    padding: 36px 0; border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.88rem;
}
footer.site-footer .foot-grid {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
footer.site-footer a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
footer.site-footer a:hover { color: var(--text); }

/* Article body adjustments for h2 anchored sections */
.tool[id] { scroll-margin-top: 90px; }

/* Number ltr */
.num-ltr { direction: ltr; unicode-bidi: embed; }
