/* /css/blog-post.css
 * Shared styles for blog post pages.
 * Extracted from inline <style> blocks duplicated across all 7 posts,
 * plus mobile nav rules (Cockpit Sweep E1).
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
            --bg-deep: #f8fafc; --bg-surface: #ffffff; --bg-card: rgba(15,23,42,0.02);
            --border-subtle: rgba(15,23,42,0.08); --text-primary: #0f172a;
            --text-secondary: #475569; --text-dim: #94a3b8;
            --accent-primary: #06b6d4; --accent-deep: #3b82f6; --accent-light: #38bdf8;
            --glow-emerald: 0 0 40px rgba(52,211,153,0.15);
            --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
            --font-mono: 'Space Mono', monospace;
        }
body { font-family: var(--font-display); background: var(--bg-deep); color: var(--text-primary); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.bg-grid { position: fixed; top:0;left:0;right:0;bottom:0; background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 0; }
nav { position: sticky; top:0; background: rgba(6,8,15,0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); z-index: 100; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.nav-brand .bird { height: 24px; width: auto; flex-shrink: 0; }
.nav-brand .lp { background: linear-gradient(90deg, #164e7a 0%, #1a6baf 30%, #2980b9 50%, #1a6baf 70%, #164e7a 100%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: lp-shimmer 10s ease-in-out infinite; }
.nav-brand .mc { color: #475569; }
@keyframes lp-shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text-primary); }
.nav-cta { background: #3b82f6; color: #fff; padding: 0.55rem 1.25rem; border-radius: 100px; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: background 0.5s, box-shadow 0.4s; border: none; cursor: pointer; }
.nav-cta:hover { background: linear-gradient(90deg, #34d399, #06b6d4, #8b5cf6, #ec4899, #f59e0b, #34d399); background-size: 300% 100%; animation: spectrumSlide 10s linear infinite; box-shadow: 0 0 20px rgba(139,92,246,0.3); }
@keyframes spectrumSlide { 0% { background-position: 300% 50%; } 100% { background-position: 0% 50%; } }
.article-wrap { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.article-tag { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-primary); margin-bottom: 1.25rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 1rem; }
.article-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.article-body p { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--accent-primary); margin: 2rem 0 0.75rem; }
.article-body ul { margin: 0 0 1.5rem 0; padding: 0; list-style: none; }
.article-body ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: var(--text-secondary); font-size: 1.05rem; }
.article-body ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-primary); }
.highlight { background: rgba(59,130,246,0.05); border-left: 3px solid var(--accent-primary); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.highlight p { margin: 0; color: var(--text-primary) !important; }
.article-cta { background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15); border-radius: 16px; padding: 2.5rem; text-align: center; margin-top: 4rem; }
.article-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.article-cta p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.cta-btn { position:relative; display:inline-block; background:transparent; color:#fff; padding:0.85rem 2rem; border-radius:100px; font-weight:700; text-decoration:none; font-size:0.95rem; transition:box-shadow 0.4s, transform 0.25s; overflow:hidden; isolation:isolate; }
.cta-btn::before { content:'';position:absolute;inset:0;border-radius:100px;background:#3b82f6;z-index:-1;transition:opacity 0.5s ease; }
.cta-btn::after { content:'';position:absolute;inset:-250%;width:600%;height:600%;background:conic-gradient(#34d399,#06b6d4,#8b5cf6,#ec4899,#f59e0b,#34d399);animation:spectrumSpin 8s linear infinite;z-index:-2; }
.cta-btn:hover::before { opacity:0; }
.cta-btn:hover { box-shadow: 0 0 30px rgba(139,92,246,0.3); transform:translateY(-1px); }
footer { position: relative; z-index: 1; border-top: 1px solid var(--border-subtle); padding: 2rem; text-align: center; font-size: 0.8rem; color: var(--text-dim); }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--accent-primary); }

/* Shared @media (max-width: 600px) rules from inline blocks */
@media (max-width: 600px) {
    .article-wrap { padding: 2rem 1.25rem 4rem; }
    nav { padding: 0.75rem 1rem; }
}

/* ─── Hamburger menu (extracted from css/site.css) ─── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: all 0.3s; border-radius: 2px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.mobile-nav-overlay.open { display: block; }

@media (max-width: 768px) {
    .nav-hamburger { display: flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
    .nav-brand { min-height: 44px; display: flex; align-items: center; }
    .nav-right { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-surface); border-left: 1px solid var(--border-subtle); flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem; gap: 0.5rem; transition: right 0.3s ease; z-index: 1000; }
    .nav-right.open { right: 0; }
    .nav-link { display: block; font-size: 1.1rem; color: var(--text-primary); padding: 0.75rem 0; min-height: 44px; }
    .nav-cta { width: 100%; text-align: center; padding: 0.85rem 1.5rem; min-height: 44px; margin-top: 0.5rem; }
}
