/* ═══════════════════════════════════════════
   Blog Post Stylesheet — TrueTrackID
   Matches the dark, minimal aesthetic of the main app
═══════════════════════════════════════════ */

:root {
    --bg:          #0f0f11;
    --bg2:         #141416;
    --bg3:         #1a1a1d;
    --bg4:         #202024;
    --border:      #252528;
    --border2:     #2e2e33;
    --text:        #dddde5;
    --text2:       #7c7c8e;
    --text3:       #44444e;
    --amber:       #e8a020;
    --amber-dim:   rgba(232,160,32,0.12);
    --radius:      7px;
    --radius-sm:   5px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--bg);
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ─── Background orbs ─── */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.045;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--amber);
    top: -200px;
    right: -100px;
    animation: drift1 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #5b8ef0;
    bottom: -150px;
    left: -100px;
    animation: drift2 22s ease-in-out infinite alternate;
}

@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(-60px, 80px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(80px, -60px); } }

/* ─── Article layout ─── */
.blog-post-body {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

/* ─── Back link ─── */
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text3);
    text-decoration: none;
    letter-spacing: 0.3px;
    margin-bottom: 40px;
    transition: color 0.15s;
}

.post-back:hover {
    color: var(--amber);
}

/* ─── Tag ─── */
.post-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--amber);
    background: var(--amber-dim);
    border: 1px solid rgba(232, 160, 32, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

/* ─── Title ─── */
.post-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

/* ─── Meta ─── */
.post-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

/* ─── Body copy ─── */
.post-body {
    font-size: 16px;
    color: var(--text2);
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 22px;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.2px;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 4px;
}

.post-body h2::before {
    content: '// ';
    color: var(--amber);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

.post-body strong {
    color: var(--text);
    font-weight: 600;
}

.post-body a {
    color: var(--amber);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 160, 32, 0.3);
    transition: border-color 0.15s;
}

.post-body a:hover {
    border-color: var(--amber);
}

/* ─── CTA block ─── */
.post-cta {
    margin-top: 56px;
    padding: 28px 32px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.post-cta p {
    font-size: 14px;
    color: var(--text2);
    margin: 0;
}

.post-cta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--amber-dim);
    border: 1px solid rgba(232, 160, 32, 0.3);
    border-radius: var(--radius);
    color: var(--amber);
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.post-cta a:hover {
    background: rgba(232, 160, 32, 0.2);
    border-color: rgba(232, 160, 32, 0.5);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .blog-post-body {
        padding: 40px 18px 72px;
    }

    .post-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .post-body h2 {
        font-size: 18px;
        margin-top: 36px;
    }
}
