/* ── Blog Post – Dark Glass Theme ── */
:root {
    --primary: #4A6CF7;
    --primary-dark: #3B5DE7;
    --secondary: #13C296;
    --accent: #7C3AED;
    --bg: #0a0e1a;
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.75);
    --text-muted: rgba(255,255,255,0.5);
    --glass-bg: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.1);
    --glass-blur: 20px;
    --radius: 20px;
    --radius-sm: 12px;
    /* Per-post accent – overridden inline when needed */
    --post-accent: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── Background ── */
.bg-effects { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.3; animation: orbFloat 20s ease-in-out infinite; }
.bg-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--post-accent) 0%, transparent 70%); top: -10%; left: -5%; }
.bg-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); bottom: 10%; right: -10%; animation-delay: -7s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-20px,40px) scale(0.95)} }

/* ── Nav ── */
.site-nav { position: sticky; top: 0; z-index: 1000; padding: 1rem 2rem; background: rgba(10,14,26,0.7); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { height: 36px; width: auto; filter: drop-shadow(0 0 8px rgba(74,108,247,0.5)); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: all 0.2s ease; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
.nav-cta { background: var(--primary) !important; color: #fff !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--primary-dark) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── Post Header ── */
.post-header { position: relative; z-index: 1; padding: 3.5rem 1.5rem 2.5rem; text-align: center; max-width: 820px; margin: 0 auto; }
.post-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 0.5rem; line-height: 1.25; }
.post-header h1 .gradient-text { background: linear-gradient(135deg, var(--post-accent) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.post-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 0.75rem; font-size: 0.88rem; color: var(--text-muted); }
.post-meta i { margin-right: 0.3rem; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ── Article Layout ── */
.blog-container { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; padding: 0 1.5rem 3rem; flex: 1; }
.blog-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* ── Typography ── */
h2 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 2rem 0 0.75rem; }
p { margin-bottom: 1.15rem; color: var(--text-secondary); }
ul, ol { margin-bottom: 1.15rem; padding-left: 1.5rem; color: var(--text-secondary); }
li { margin-bottom: 0.5rem; }
strong { color: var(--text); }

/* ── Author Info ── */
.author-info {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.75rem;
}
.author-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--post-accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.author-info strong { display: block; color: var(--text); }
.author-info span { font-size: 0.85rem; color: var(--text-muted); }

/* ── Table of Contents ── */
.table-of-contents {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.5rem; margin: 1.5rem 0;
}
.toc-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 0.5rem; }
.toc-list a { color: var(--text-secondary); font-size: 0.92rem; }
.toc-list a:hover { color: var(--primary); }

/* ── Section Divider ── */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); margin: 2.5rem 0; }

/* ── Callout Boxes ── */
.highlight-box, .evidence-box {
    background: rgba(5,150,105,0.08); border-left: 4px solid var(--secondary);
    padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.highlight-box h3, .evidence-box h3 { margin-top: 0; color: var(--secondary); font-size: 1.05rem; }
.highlight-box ul, .evidence-box ul { margin-bottom: 0; }
.warning-box {
    background: rgba(245,158,11,0.08); border-left: 4px solid #F59E0B;
    padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.warning-box h3 { margin-top: 0; color: #F59E0B; font-size: 1.05rem; }
.citation {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1.25rem 0;
    font-size: 0.88rem; color: var(--text-muted);
}
.citation em { color: var(--text-secondary); }

/* ── Method / Comparison Cards ── */
.method-comparison { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; margin: 1.75rem 0; }
.method-card {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.5rem; position: relative;
}
.method-card h3 { margin-top: 0; }
.method-card.recommended { border-color: var(--secondary); background: rgba(19,194,150,0.06); }
.method-card.recommended::before {
    content: 'RECOMMENDED'; position: absolute; top: -10px; right: 16px;
    background: var(--secondary); color: #fff; padding: 3px 10px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.tool-pros { font-size: 0.88rem; color: var(--secondary); margin-bottom: 0.25rem; }
.tool-cons { font-size: 0.88rem; color: #EF4444; }

/* ── Tool Grid ── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1rem; margin: 1.5rem 0; }
.tool-card {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.25rem; text-align: center;
}
.tool-name { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }

/* ── Step-by-step ── */
.step-by-step {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.5rem; margin: 1.5rem 0;
}
.step-number { display: inline-block; background: var(--post-accent); color: #fff; width: 32px; height: 32px; border-radius: 50%; text-align: center; line-height: 32px; font-weight: 700; margin-right: 0.75rem; font-size: 0.95rem; }

/* ── Time Savings Banner ── */
.time-savings {
    background: linear-gradient(135deg, rgba(74,108,247,0.2) 0%, rgba(124,58,237,0.2) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 2rem; text-align: center; margin: 1.75rem 0;
}
.time-stat { font-size: 2.5rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }

/* ── Code Example ── */
.code-example {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm); padding: 1.25rem; margin: 1.25rem 0;
    font-family: 'Monaco','Menlo','Consolas',monospace; font-size: 0.88rem; color: var(--text-secondary);
    overflow-x: auto;
}

/* ── CTA Button ── */
.cta-button {
    display: inline-block; background: var(--primary); color: #fff; padding: 0.75rem 1.75rem;
    border-radius: 100px; font-weight: 600; transition: background 0.2s, transform 0.15s;
    margin-top: 0.75rem;
}
.cta-button:hover { background: var(--primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ── Related Posts ── */
.related-posts { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.related-posts h2 { font-size: 1.15rem; border-bottom: none; margin: 0 0 0.75rem; padding-bottom: 0; }
.related-posts ul { padding-left: 1.25rem; }
.related-posts a { color: var(--primary); }

/* ── Footer ── */
.site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.06); padding: 2rem 1.5rem; text-align: center; margin-top: auto; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── Responsive ── */
@media(max-width:768px){
    .nav-links{display:none}
    .nav-toggle{display:block}
    .nav-links.open{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:rgba(10,14,26,0.95);backdrop-filter:blur(20px);padding:1rem;gap:0.25rem;border-bottom:1px solid rgba(255,255,255,0.06)}
    .nav-links.open a{display:block;padding:0.75rem 1rem}
    .blog-content{padding:1.5rem}
    .method-comparison{grid-template-columns:1fr}
}
