/* =========================================================
   blog.css — Satta King Fast blog
   Loaded AFTER the site's style.css. Reuses the same palette:
   bg #030506 | gold #e3af28 / #f2cf63 | card #0a1112 | border #1c2b2c
========================================================= */

.blog-wrap { padding-bottom: 40px; }

/* ---------- Reading progress bar ---------- */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 100;
    background: linear-gradient(90deg, #e3af28, #f2cf63);
    transition: width .1s linear;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    font-size: 14px;
    color: #8a8d88;
}
.breadcrumb a { color: #e3af28; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb em { font-style: normal; color: #aab0ad; }

/* ---------- Hero banner ---------- */
.blog-hero {
    position: relative;
    margin-top: 12px;
    border: 1px solid #59491c;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(130deg, #11150f, #070a0b);
}
.blog-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}
.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3,5,6,.96) 6%, rgba(3,5,6,.55) 48%, rgba(3,5,6,.08) 100%);
}
.blog-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 28px;
}
.blog-hero h1 {
    margin: 10px 0 12px;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 900;
    color: #fff;
    letter-spacing: .3px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
    color: #c9cec9;
}

/* ---------- Layout ---------- */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    margin-top: 18px;
    align-items: start;
}
.blog-aside {
    position: sticky;
    top: 78px;
    display: grid;
    gap: 14px;
}

/* ---------- Article body ---------- */
.blog-article {
    min-width: 0;
    background: #0a1112;
    border: 1px solid #1c2b2c;
    border-radius: 6px;
    padding: 24px 26px 10px;
}
.blog-article section { margin-bottom: 30px; }
.blog-article h2 {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 4px solid #e3af28;
    font-size: 28px;
    line-height: 1.25;
    color: #f1f1e8;
    scroll-margin-top: 84px;
}
.blog-article p {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.75;
    color: #b4bcb8;
}
.blog-article a { color: #f2cf63; text-underline-offset: 3px; }
.blog-article a:hover { color: #fff; }
.blog-article section[id] { scroll-margin-top: 84px; }

sup.fn { font-size: 12px; margin-left: 1px; }
sup.fn a { text-decoration: none; font-weight: 800; padding: 0 1px; }

/* Quick answer box */
.quick-answer {
    background: linear-gradient(130deg, #14110a, #070a0b);
    border: 1px solid #59491c;
    border-left: 5px solid #e3af28;
    border-radius: 6px;
    padding: 18px 20px 6px;
}
.quick-answer .eyebrow { display: block; margin-bottom: 8px; }
.quick-answer .answer-big { font-size: 21px; color: #e9e9e9; }
.quick-answer .answer-big b {
    display: inline-block;
    background: #d4261e;
    color: #fff;
    padding: 0 10px;
    border-radius: 4px;
    margin-right: 4px;
}

/* ---------- Penalty table ---------- */
.table-wrap { overflow-x: auto; margin: 4px 0 16px; }
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}
.blog-table th {
    background: #e3af28;
    color: #14181a;
    text-align: left;
    padding: 11px 14px;
    font-weight: 800;
}
.blog-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #263334;
    color: #cfd6d3;
    vertical-align: top;
}
.blog-table tbody tr:nth-child(even) { background: #0d1617; }
.blog-table tbody tr:hover { background: #121d1e; }

/* ---------- Legal / Illegal cards ---------- */
.legal-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 6px 0 16px;
}
.legal-card {
    background: #101c1e;
    border: 1px solid #1c2b2c;
    border-top: 3px solid #2fb8a6;
    border-radius: 6px;
    padding: 16px;
}
.legal-icon { font-size: 26px; display: block; margin-bottom: 4px; }
.legal-card h3 { margin: 0 0 6px; font-size: 20px; color: #e9c542; }
.blog-article .legal-card p { font-size: 16px; margin: 0; }

/* ---------- Help box ---------- */
.help-box {
    background: #101c1e;
    border-left: 4px solid #4d8ef2;
    border-radius: 4px;
    padding: 14px 16px 2px;
    margin-bottom: 14px;
}
.helpline {
    display: inline-block;
    background: #e3af28;
    color: #14181a !important;
    font-weight: 900;
    text-decoration: none !important;
    padding: 1px 10px;
    border-radius: 14px;
}

/* ---------- FAQ (inherits site .faq look, tuned for the article) ---------- */
.blog-article .faq details { margin: 8px 0; }
.blog-article .faq summary { font-size: 18px; padding: 14px 0; font-weight: 700; }
.blog-article .faq p { font-size: 17px; margin: 0; padding: 12px 0; }
.blog-article .faq details[open] summary span { transform: rotate(45deg); }
.blog-article .faq summary span { transition: transform .2s; }

/* ---------- Conclusion ---------- */
.conclusion {
    background: #101c1e;
    border-radius: 6px;
    padding: 18px 20px 4px;
    border: 1px solid #1c2b2c;
}

/* ---------- Topic chips ---------- */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.topic-chips span {
    font-size: 13px;
    color: #aab0ad;
    background: #0d1617;
    border: 1px solid #263334;
    border-radius: 20px;
    padding: 4px 12px;
}

/* ---------- Sources & proofs ---------- */
.sources-lead { color: #8f9896 !important; }
.proof-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.proof-list li {
    display: flex;
    gap: 14px;
    background: #0d1617;
    border: 1px solid #1c2b2c;
    border-radius: 6px;
    padding: 14px;
    scroll-margin-top: 84px;
}
.proof-list li:target { border-color: #e3af28; box-shadow: 0 0 0 2px rgba(227,175,40,.25); }
.proof-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #e3af28;
    color: #14181a;
    font-weight: 900;
    border-radius: 9px;
}
.proof-body { min-width: 0; }
.proof-body b { display: block; color: #f1f1e8; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.proof-body small { display: block; color: #8a8d88; font-size: 13px; margin: 2px 0 4px; }
.blog-article .proof-body p { font-size: 15px; margin: 0 0 8px; }
.proof-body a {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #59491c;
    border-radius: 16px;
    padding: 3px 12px;
}
.legal-note {
    font-size: 15px !important;
    color: #8f9896 !important;
    border-top: 1px solid #1b2728;
    padding-top: 12px;
}

/* ---------- Author + share ---------- */
.author-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #0d1617;
    border: 1px solid #1c2b2c;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 18px;
}
.author-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #c99c2a;
    background: #17130b;
    color: #e4b93c;
    font-weight: 900;
    border-radius: 10px;
}
.author-box b { color: #fff; }
.blog-article .author-box p { font-size: 15px; margin: 2px 0 0; }

.share-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 15px;
    color: #aab0ad;
}
.share-btn {
    background: #e3af28;
    color: #0a0a08 !important;
    border: 1px solid #f2cf63;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    font-family: inherit;
}
.share-btn:hover { background: #f2cf63; }

/* ---------- Related blocks ---------- */
.related-block { margin-bottom: 26px; }
.related-block .section-title h2 { border: 0; padding: 0; font-size: 26px; }
.related-block .link-grid { margin-top: 10px; }

/* ---------- Sidebar ---------- */
.aside-card {
    background: #0a1112;
    border: 1px solid #1c2b2c;
    border-radius: 6px;
    padding: 14px 16px;
}
.aside-title {
    font-size: 16px;
    font-weight: 800;
    color: #e3af28;
    margin-bottom: 8px;
}
.aside-card p { margin: 0; font-size: 15px; color: #aab0ad; }
.aside-card a { color: #f2cf63; }
.aside-help { border-color: #59491c; background: linear-gradient(130deg, #14110a, #070a0b); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { border-top: 1px solid #182122; }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: 8px 0; font-size: 15px; text-decoration: none; }
.aside-links a:hover { color: #fff; padding-left: 4px; }

/* ---------- Table of contents ---------- */
.toc { max-height: calc(100vh - 220px); overflow-y: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 2px 0; }
.toc a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 8px;
    border-left: 3px solid transparent;
    border-radius: 3px;
    font-size: 15px;
    line-height: 1.35;
    color: #aab0ad;
    text-decoration: none;
}
.toc a:hover { color: #fff; background: #101c1e; }
.toc a.active { color: #f2cf63; border-left-color: #e3af28; background: #101c1e; font-weight: 700; }
.toc-num {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #14181a;
    background: #e3af28;
    border-radius: 5px;
    margin-top: 1px;
}

/* Mobile TOC (collapsible) — hidden on desktop */
.toc-mobile-box { display: none; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #f2cf63;
    background: #e3af28;
    color: #0a0a08;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 60;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* =========================================================
   BLOG LISTING (blog/index.php)
========================================================= */
.blog-intro { text-align: center; padding: 24px 10px 6px; }
.blog-intro h1 { margin: 6px 0; font-size: 36px; font-weight: 900; color: #fff; }
.blog-intro p { max-width: 680px; margin: 0 auto; font-size: 16px; color: #aab0ad; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
    margin: 20px 0 30px;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: #0a1112;
    border: 1px solid #1c2b2c;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s;
}
.post-card:hover { transform: translateY(-3px); border-color: #59491c; }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #11150f; }
.post-card-body { padding: 14px 16px 16px; }
.post-card h3 { margin: 8px 0 6px; font-size: 20px; line-height: 1.3; color: #e9c542; }
.post-card p { margin: 0; font-size: 15px; color: #98a19d; line-height: 1.55; }
.post-card .card-meta { display: block; margin-top: 10px; font-size: 13px; color: #8a8d88; }
.post-card .card-more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 800; color: #f2cf63; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-aside { position: static; }
    .toc-desktop-box { display: none; }

    .toc-mobile-box {
        display: block;
        margin-top: 4px;
        background: #0a1011;
        border: 1px solid #59491c;
        border-radius: 6px;
        padding: 0 14px;
    }
    .toc-mobile-box summary {
        cursor: pointer;
        list-style: none;
        padding: 13px 0;
        font-size: 17px;
        font-weight: 800;
        color: #e3af28;
    }
    .toc-mobile-box summary::-webkit-details-marker { display: none; }
    .toc-mobile-box summary span { float: right; font-size: 22px; }
    .toc-mobile-box[open] summary span { transform: rotate(45deg); }
    .toc-mobile-box .toc { max-height: none; padding-bottom: 10px; }
}

@media (max-width: 768px) {
    /* banner: text moves below the image so nothing is cropped on phones */
    .blog-hero-overlay { display: none; }
    .blog-hero-content { position: static; padding: 16px 14px 18px; background: #070a0b; }
    .blog-hero h1 { font-size: 27px; }
    .post-meta { font-size: 13px; gap: 6px 14px; }

    .blog-article { padding: 16px 14px 4px; }
    .blog-article h2 { font-size: 23px; }
    .blog-article p { font-size: 17px; line-height: 1.7; }
    .quick-answer .answer-big { font-size: 19px; }
    .legal-cards { grid-template-columns: 1fr; }

    /* penalty table turns into stacked cards */
    .blog-table thead { display: none; }
    .blog-table, .blog-table tbody, .blog-table tr, .blog-table td { display: block; width: 100%; }
    .blog-table tr {
        margin-bottom: 10px;
        background: #0d1617 !important;
        border: 1px solid #263334;
        border-radius: 6px;
        overflow: hidden;
    }
    .blog-table td { border-bottom: 1px solid #1b2728; padding: 9px 12px; }
    .blog-table td:last-child { border-bottom: 0; }
    .blog-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #e3af28;
        margin-bottom: 2px;
    }

    .proof-list li { padding: 12px; gap: 10px; }
    .blog-intro h1 { font-size: 28px; }
    .share-row { gap: 6px; }
}

@media (max-width: 420px) {
    .blog-hero h1 { font-size: 24px; }
    .breadcrumb { font-size: 13px; }
    .topic-chips span { font-size: 12px; padding: 3px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .read-progress, .post-card, .to-top { transition: none; }
}
