/* ============================================================
   SureGut Blog — dark long-form theme
   Self-contained; shared by all /blog posts.
   ============================================================ */

:root {
    --primary: #0f172a;
    --accent: #0d9488;
    --accent-2: #2dd4bf;
    --accent-3: #38bdf8;
    --text: #cbd5e1;
    --text-dim: #94a3b8;
    --heading: #f1f5f9;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Aurora backdrop (matches site) */
.bg-aurora {
    position: fixed; inset: 0; z-index: -2; overflow: hidden;
    background: radial-gradient(1200px 600px at 50% -10%, #15233f 0%, transparent 60%), var(--primary);
}
.bg-aurora .blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.bg-aurora .blob-1 { width: 460px; height: 460px; background: #0d9488; top: -140px; left: -100px; }
.bg-aurora .blob-2 { width: 480px; height: 480px; background: #2563eb; top: 30%; right: -160px; }

a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-3); text-decoration: underline; }

.doc { max-width: 820px; margin: 0 auto; padding: 32px 24px 90px; }

/* Top nav */
.doc-nav {
    display: flex; gap: 22px; align-items: center;
    margin-bottom: 36px; padding-bottom: 18px; border-bottom: 1px solid var(--card-border);
}
.doc-nav a { font-weight: 600; color: var(--text-dim); }
.doc-nav a:hover { color: var(--accent-2); text-decoration: none; }

/* Post header */
.post-eyebrow {
    color: var(--accent-2); font-weight: 600; font-size: 0.78rem;
    letter-spacing: 1.5px; text-transform: uppercase;
}
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; color: var(--heading); line-height: 1.22; }
h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -1px;
    margin: 12px 0 14px;
}
h2 { font-size: 1.5rem; margin-top: 46px; margin-bottom: 12px; padding-top: 8px; }
h3 { font-size: 1.12rem; margin-top: 28px; margin-bottom: 6px; color: var(--accent-2); }

.post-meta { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 22px; }
.post-meta strong { color: var(--text); font-weight: 600; }

p, li { color: var(--text); margin-bottom: 15px; }
strong { color: var(--heading); }
ul { padding-left: 22px; margin-bottom: 22px; }
li::marker { color: var(--accent); }

/* Callout notes (disclosure / disclaimer) */
.note {
    border-radius: 12px; padding: 16px 20px; margin: 22px 0;
    background: rgba(13, 148, 136, 0.10); border: 1px solid var(--card-border);
    border-left: 3px solid var(--accent-2);
    font-size: 0.95rem; color: var(--text-dim);
}
.note strong { color: var(--heading); }

/* Table of contents */
.toc {
    background: var(--card); border: 1px solid var(--card-border);
    border-radius: 14px; padding: 20px 24px; margin: 28px 0;
}
.toc-title { font-family: "Sora", sans-serif; font-weight: 700; color: var(--heading); font-size: 0.95rem; margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--text-dim); font-size: 0.92rem; }
.toc a:hover { color: var(--accent-2); text-decoration: none; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
    border-collapse: collapse; width: 100%; min-width: 640px;
    font-size: 0.92rem; border: 1px solid var(--card-border);
    border-radius: 12px; overflow: hidden;
}
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--card-border); }
th { background: rgba(255,255,255,0.05); color: var(--heading); font-weight: 600; }
td { color: var(--text); }
tr:last-child td { border-bottom: none; }
tbody tr:first-child td { color: var(--heading); font-weight: 500; }

/* Sources */
.sources { font-size: 0.88rem; color: var(--text-dim); }
.sources h2 { font-size: 1.2rem; }
.sources ul { padding-left: 20px; }

/* App CTA */
.app-cta {
    display: inline-block; margin: 6px 0 4px;
    padding: 13px 26px; border-radius: 12px; font-weight: 600;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #04211d;
    box-shadow: 0 10px 30px rgba(13,148,136,0.32);
    transition: transform .2s ease, box-shadow .2s ease;
}
.app-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(13,148,136,0.45); color: #04211d; text-decoration: none; }

/* Blog index */
.blog-hero h1 { margin-bottom: 10px; }
.blog-hero p { color: var(--text-dim); font-size: 1.06rem; max-width: 660px; }
.post-list { display: grid; gap: 18px; margin-top: 32px; }
.post-card {
    display: block; padding: 24px 26px; border-radius: 16px;
    background: var(--card); border: 1px solid var(--card-border);
    transition: transform .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.4); text-decoration: none; }
.post-card-meta { color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase; }
.post-card h2 { font-family: "Sora", sans-serif; color: var(--heading); font-size: 1.3rem; margin: 8px 0; line-height: 1.25; }
.post-card p { color: var(--text-dim); margin: 0; font-size: 0.96rem; }
.post-card .read-more { display: inline-block; margin-top: 14px; color: var(--accent-2); font-weight: 600; font-size: 0.9rem; }

@media (max-width: 640px) {
    .toc ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
