/* =========================================================
   SINGLE POST — Magazine 2026 (spektakuler)
   ========================================================= */
:root {
    --sp-ink: #0f172a;
    --sp-muted: #64748b;
    --sp-acc: #3b82f6;
    --sp-acc2: #6366f1;
    --sp-soft: #f5f7fb;
    --sp-rad: 22px;
}

/* Reset jarak atas bawaan parent theme agar hero flush ke header */
.ika-single-hero .site-main,
.ika-single-hero .site-main#content,
.ika-single-hero #content { padding-top: 0 !important; margin-top: 0 !important; }

/* ---------- Reading progress ---------- */
.ika-progress {
    position: fixed; top: 0; left: 0; height: 4px; width: 0%;
    background: linear-gradient(90deg, var(--sp-acc), var(--sp-acc2));
    z-index: 10000; transition: width .1s linear;
    box-shadow: 0 0 12px rgba(59,130,246,0.6);
}

/* ---------- Cinematic Hero — FULL BLEED ---------- */
.ika-spost-hero {
    position: relative; min-height: 80vh; display: flex; align-items: flex-end;
    overflow: hidden; padding: 150px 24px 64px;
    /* Full-bleed: lebar penuh viewport, tembus container */
    width: auto;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
}
.ika-spost-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    z-index: 0; transform: scale(1.08); will-change: transform;
    animation: spZoom 22s ease-in-out infinite alternate;
}
@keyframes spZoom { to { transform: scale(1.18); } }
.ika-spost-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        radial-gradient(120% 80% at 20% 100%, rgba(59,130,246,0.25), transparent 60%),
        linear-gradient(180deg, rgba(15,23,42,0.35) 0%, rgba(15,23,42,0.75) 55%, rgba(11,17,32,0.96) 100%);
}
.ika-spost-hero-grain {
    position: absolute; inset: 0; z-index: 2; opacity: .06; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ika-spost-hero-inner {
    position: relative; z-index: 3; max-width: 900px; margin: 0 auto; width: 100%;
    text-align: center; color: #fff;
}
.ika-spost-cat {
    display: inline-block; padding: 8px 18px; border-radius: 30px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px;
    transition: all .3s ease;
}
.ika-spost-cat:hover { background: var(--sp-acc); border-color: var(--sp-acc); transform: translateY(-2px); }
.ika-spost-title {
    font-size: clamp(30px, 5vw, 60px); line-height: 1.1; font-weight: 800;
    letter-spacing: -0.03em; margin: 0 0 28px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.ika-spost-meta {
    display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
    justify-content: center; font-size: 15px; color: rgba(255,255,255,0.9);
}
.ika-spost-author { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 600; }
.ika-spost-author img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); object-fit: cover; }
.ika-spost-dot { opacity: .5; }
.ika-spost-scroll {
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5);
    border-radius: 14px; z-index: 3; display: flex; justify-content: center;
}
.ika-spost-scroll span {
    width: 4px; height: 8px; background: #fff; border-radius: 2px; margin-top: 7px;
    animation: spScroll 1.6s ease-in-out infinite;
}
@keyframes spScroll { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(12px)} 100%{opacity:0} }

/* ---------- Shell: 3 columns ---------- */
.ika-spost-shell {
    max-width: 1280px; margin: 0 auto; padding: 72px 24px;
    display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 1100px) {
    .ika-spost-shell {
        grid-template-columns: 64px minmax(0,1fr) 280px;
        gap: 48px; align-items: start;
    }
}

/* ---------- Share rail ---------- */
.ika-spost-share {
    position: relative; display: flex; flex-direction: row; gap: 12px;
    align-items: center; justify-content: center; flex-wrap: wrap;
}
.ika-spost-share-label { display: none; }
@media (min-width: 1100px) {
    .ika-spost-share {
        position: sticky; top: 120px; flex-direction: column; gap: 14px;
    }
    .ika-spost-share-label {
        display: block; writing-mode: vertical-rl; font-size: 11px;
        letter-spacing: 0.15em; text-transform: uppercase; color: var(--sp-muted);
        margin-bottom: 6px;
    }
}
.ika-share-btn {
    width: 44px; height: 44px; border-radius: 14px; border: 1px solid #e7ebf3;
    background: #fff; color: var(--sp-ink); display: flex; align-items: center;
    justify-content: center; cursor: pointer; transition: all .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 14px rgba(15,23,42,0.05); text-decoration: none;
}
.ika-share-btn:hover { transform: translateY(-3px); color: #fff; background: var(--sp-ink); border-color: var(--sp-ink); box-shadow: 0 10px 24px rgba(15,23,42,0.18); }
.ika-share-toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--sp-ink); color: #fff; padding: 12px 22px; border-radius: 30px;
    font-size: 14px; opacity: 0; pointer-events: none; transition: all .35s ease; z-index: 10001;
}
.ika-share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Article ---------- */
.ika-spost-article { min-width: 0; }
.ika-spost-content {
    font-size: 18.5px; line-height: 1.85; color: #334155;
    font-family: 'Inter', sans-serif;
}
.ika-spost-content > p:first-of-type::first-letter {
    float: left; font-size: 4.4em; line-height: .82; font-weight: 800;
    padding: 6px 14px 0 0; color: var(--sp-acc);
    background: linear-gradient(120deg, var(--sp-acc), var(--sp-acc2));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ika-spost-content p { margin: 0 0 24px; }
.ika-spost-content h2 {
    font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--sp-ink);
    letter-spacing: -0.02em; margin: 48px 0 18px; scroll-margin-top: 110px; position: relative; padding-left: 18px;
}
.ika-spost-content h2::before {
    content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
    border-radius: 4px; background: linear-gradient(180deg, var(--sp-acc), var(--sp-acc2));
}
.ika-spost-content h3 {
    font-size: clamp(20px,2.4vw,25px); font-weight: 700; color: var(--sp-ink);
    margin: 36px 0 14px; scroll-margin-top: 110px;
}
.ika-spost-content ul, .ika-spost-content ol { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.ika-spost-content ul li, .ika-spost-content ol li {
    position: relative; padding-left: 32px; margin-bottom: 14px;
}
.ika-spost-content ul li::before {
    content: ''; position: absolute; left: 6px; top: 11px; width: 8px; height: 8px;
    border-radius: 50%; background: linear-gradient(120deg, var(--sp-acc), var(--sp-acc2));
}
.ika-spost-content ol { counter-reset: li; }
.ika-spost-content ol li { counter-increment: li; }
.ika-spost-content ol li::before {
    content: counter(li); position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
    font-size: 12px; font-weight: 700; color: #fff; border-radius: 50%;
    background: linear-gradient(120deg, var(--sp-acc), var(--sp-acc2));
    display: flex; align-items: center; justify-content: center;
}
.ika-spost-content a { color: var(--sp-acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.ika-spost-content a:hover { color: var(--sp-acc2); }
.ika-spost-content strong { color: var(--sp-ink); font-weight: 700; }
.ika-spost-content img { max-width: 100%; height: auto; border-radius: var(--sp-rad); margin: 32px 0; box-shadow: 0 16px 48px rgba(15,23,42,0.12); }
.ika-spost-content blockquote {
    margin: 32px 0; padding: 24px 28px; border-radius: 16px;
    background: var(--sp-soft); border-left: 5px solid var(--sp-acc);
    font-size: 20px; font-style: italic; color: var(--sp-ink);
}

/* ---------- Tags ---------- */
.ika-spost-tags { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ika-spost-tags a {
    font-size: 13px; padding: 7px 16px; border-radius: 30px; background: var(--sp-soft);
    color: var(--sp-muted); text-decoration: none; transition: all .25s ease;
}
.ika-spost-tags a:hover { background: var(--sp-acc); color: #fff; }
.ika-spost-tags span { color: var(--sp-acc); }

/* ---------- Embedded CTA ---------- */
.ika-spost-cta {
    position: relative; margin: 56px 0; border-radius: var(--sp-rad); overflow: hidden;
    background: linear-gradient(125deg, #0f172a, #1e293b); color: #fff; isolation: isolate;
}
.ika-spost-cta-glow {
    position: absolute; top: -120px; right: -80px; width: 360px; height: 360px; z-index: 0;
    background: radial-gradient(circle, rgba(99,102,241,0.45), transparent 65%); pointer-events: none;
}
.ika-spost-cta-body { position: relative; z-index: 1; padding: 44px 40px; }
.ika-spost-cta-eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #93c5fd; margin-bottom: 12px; }
.ika-spost-cta h3 { font-size: clamp(22px,3vw,30px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.ika-spost-cta p { color: rgba(255,255,255,0.82); font-size: 16px; margin: 0 0 26px; line-height: 1.6; }
.ika-spost-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ika-spost-cta-btn { padding: 13px 28px; border-radius: 40px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all .3s ease; }
.ika-spost-cta-btn.primary { background: linear-gradient(120deg, var(--sp-acc), var(--sp-acc2)); color: #fff; box-shadow: 0 10px 28px rgba(59,130,246,0.4); }
.ika-spost-cta-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(59,130,246,0.55); }
.ika-spost-cta-btn.ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.ika-spost-cta-btn.ghost:hover { background: rgba(255,255,255,0.2); }

/* ---------- Author card ---------- */
.ika-spost-author-card {
    display: flex; gap: 22px; align-items: center; padding: 28px;
    border-radius: var(--sp-rad); background: var(--sp-soft); margin-top: 40px;
}
.ika-spost-author-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 8px 20px rgba(15,23,42,0.12); }
.ika-spost-author-card h4 { margin: 4px 0 8px; font-size: 20px; color: var(--sp-ink); }
.ika-spost-author-card p { margin: 0; font-size: 15px; color: var(--sp-muted); line-height: 1.6; }

/* ---------- TOC ---------- */
.ika-spost-toc { display: none; }
@media (min-width: 1100px) {
    .ika-spost-toc { display: block; }
    .ika-spost-toc-inner {
        position: sticky; top: 120px; padding: 24px; border-radius: 18px;
        background: #fff; border: 1px solid #eef1f7; box-shadow: 0 8px 30px rgba(15,23,42,0.05);
        max-height: calc(100vh - 160px); overflow-y: auto;
    }
}
.ika-spost-toc-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sp-muted); margin-bottom: 16px; }
#ika-toc a {
    display: block; font-size: 14.5px; line-height: 1.4; color: var(--sp-muted);
    text-decoration: none; padding: 8px 0 8px 14px; border-left: 2px solid #e7ebf3;
    transition: all .25s ease;
}
#ika-toc a.sub { padding-left: 28px; font-size: 13.5px; }
#ika-toc a:hover { color: var(--sp-ink); }
#ika-toc a.active { color: var(--sp-acc); border-left-color: var(--sp-acc); font-weight: 600; transform: translateX(2px); }

/* ---------- Related ---------- */
.ika-spost-related { background: var(--sp-soft); }

/* ---------- Back to top ---------- */
.ika-totop {
    position: fixed; right: 24px; bottom: 24px; width: 52px; height: 52px; border-radius: 16px;
    background: rgba(255,255,255,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.5); color: var(--sp-ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 9000;
    box-shadow: 0 10px 30px rgba(15,23,42,0.15); opacity: 0; transform: translateY(20px);
    pointer-events: none; transition: all .35s cubic-bezier(.4,0,.2,1);
}
.ika-totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ika-totop:hover { background: var(--sp-ink); color: #fff; transform: translateY(-3px); }

/* mobile share becomes bottom sticky bar */
@media (max-width: 1099px) {
    .ika-spost-share {
        position: sticky; bottom: 0; z-index: 8000; background: rgba(255,255,255,0.85);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        padding: 12px; border-radius: 18px; margin: 0 auto; box-shadow: 0 -4px 24px rgba(15,23,42,0.08);
    }
}
