/**
 * SanggauInformasi Single Article Styles
 * Fast, Responsive, High-Readability Typography, SEO & AdSense Optimized
 */

/* ── 1. READING PROGRESS BAR ── */
#si-reading-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: transparent;
    z-index: 99999;
}
#si-reading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #dc2626, #f97316);
    transition: width 0.1s ease-out;
}

/* ── 2. SINGLE ARTICLE CONTAINER ── */
.single-article-entry {
    max-width: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--si-border);
    margin-bottom: 32px;
}
@media (max-width: 640px) {
    .single-article-entry {
        padding: 16px;
        border-radius: 12px;
    }
}

/* ── 3. BREADCRUMBS ── */
.si-breadcrumb-wrap {
    font-size: 12px;
    color: var(--si-muted);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.si-breadcrumb-wrap a {
    color: var(--si-muted);
    text-decoration: none;
}
.si-breadcrumb-wrap a:hover {
    color: var(--si-primary);
    text-decoration: underline;
}
.si-breadcrumb-sep {
    color: #cbd5e1;
}
.si-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
}

/* ── 4. BADGES & EDITORIAL STATUS ── */
.si-header-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.si-category-pill {
    background: var(--si-primary);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.si-status-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.si-status-verified { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.si-status-reviewed { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.si-status-updated { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.si-status-corrected { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.si-badge-ai { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-size: 10px; }

/* ── 5. JUDUL ARTIKEL (H1) & DEK ── */
.single-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--si-heading);
    margin: 0 0 12px 0;
    font-family: var(--si-font-sans);
}
@media (min-width: 768px) {
    .single-title {
        font-size: 36px;
    }
}
.si-article-dek {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    font-weight: 500;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 3px solid var(--si-primary);
}

/* ── 6. AUTHOR & REPORTER METADATA ── */
.si-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--si-border);
    border-bottom: 1px solid var(--si-border);
    margin-bottom: 20px;
    font-size: 12.5px;
    color: var(--si-muted);
}
.si-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.si-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--si-border);
}
.si-author-info {
    display: flex;
    flex-direction: column;
}
.si-author-name {
    font-weight: 700;
    color: var(--si-heading);
    text-decoration: none;
}
.si-author-name:hover {
    color: var(--si-primary);
}
.si-article-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
}
.si-meta-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.si-meta-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── 7. AUDIO READER (DENGARKAN ARTIKEL) ── */
.si-audio-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}
.si-audio-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.si-audio-btn:hover {
    background: var(--si-primary);
}
.si-audio-status {
    font-size: 11.5px;
    color: #0284c7;
    font-weight: 600;
}

/* ── 8. FEATURED IMAGE & CAPTION ── */
.si-featured-media-wrap {
    margin-bottom: 24px;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}
.si-featured-media-wrap img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}
.si-media-caption {
    padding: 8px 12px;
    background: #f1f5f9;
    font-size: 11.5px;
    color: #64748b;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── 9. SOCIAL SHARE BUTTONS ── */
.si-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}
.si-share-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--si-muted);
    margin-right: 4px;
}
.si-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}
.si-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.si-share-btn-wa { background: #25D366; }
.si-share-btn-fb { background: #1877F2; }
.si-share-btn-x  { background: #000000; }
.si-share-btn-tg { background: #0088cc; }
.si-share-btn-copy { background: #475569; }
.si-share-btn-print { background: #64748b; }

/* ── 10. TABLE OF CONTENTS (TOC) ── */
.si-toc-container {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 20px 0;
}
.si-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.si-toc-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--si-heading);
    text-transform: uppercase;
}
.si-toc-toggle-btn {
    background: none;
    border: none;
    color: var(--si-primary);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.si-toc-list {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
    line-height: 1.6;
}
.si-toc-item {
    margin-bottom: 6px;
}
.si-toc-item a {
    color: #334155;
    text-decoration: none;
}
.si-toc-item a:hover {
    color: var(--si-primary);
    text-decoration: underline;
}
.si-toc-sub {
    margin-left: 14px;
    list-style-type: circle;
}
.si-toc-hidden {
    display: none;
}

/* ── 11. ARTICLE CONTENT TYPOGRAPHY ── */
.single-content {
    font-size: 17.5px;
    line-height: 1.8;
    color: #1e293b;
    word-break: break-word;
}
@media (min-width: 768px) {
    .single-content {
        font-size: 18px;
    }
}
.single-content p {
    margin-bottom: 1.5em;
}
.single-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 1.8em 0 0.8em 0;
    color: var(--si-heading);
    line-height: 1.35;
    border-left: 4px solid var(--si-primary);
    padding-left: 10px;
}
.single-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.4em 0 0.6em 0;
    color: var(--si-heading);
}
.single-content blockquote {
    margin: 1.8em 0;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid var(--si-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
}
.si-copy-quote-btn {
    display: block;
    margin-top: 8px;
    background: #e2e8f0;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.single-content img {
    border-radius: 12px;
    margin: 1.5em auto;
}
.single-content iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* ── 12. BACA JUGA (INLINE RELATED BOX) ── */
.si-baca-juga-box {
    margin: 1.8em 0;
    padding: 12px 16px;
    background: #fff1f2;
    border-left: 4px solid var(--si-primary);
    border-radius: 0 10px 10px 0;
    font-size: 14.5px;
    line-height: 1.5;
}
.si-baca-juga-badge {
    font-weight: 900;
    color: var(--si-primary);
    margin-right: 6px;
}
.si-baca-juga-link {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}
.si-baca-juga-link:hover {
    color: var(--si-primary);
    text-decoration: underline;
}

/* ── 13. ADVERTISEMENT SLOTS (ANTI-CLS) ── */
.si-ad-slot-wrapper {
    margin: 24px 0;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.si-ad-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.si-ad-inner {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 768px) {
    .si-ad-mobile-only { display: none !important; }
}
@media (max-width: 767px) {
    .si-ad-desktop-only { display: none !important; }
}

/* ── 14. SOURCE & LOCATION META ── */
.si-source-location-box {
    margin: 20px 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}
.si-source-item {
    color: #334155;
}

/* ── 15. CORRECTION NOTE & REPORT FORM ── */
.si-correction-note-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 13px;
    color: #991b1b;
}
.si-correction-report-wrap {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.si-correction-header {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.si-form-group {
    margin-bottom: 10px;
}
.si-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #475569;
}
.si-form-group input, .si-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
}
.si-btn-submit-correction {
    background: var(--si-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.si-btn-submit-correction:hover {
    background: var(--si-primary-hover);
}

/* ── 16. TAGS ── */
.si-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.si-tag-pill {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.si-tag-pill:hover {
    background: var(--si-primary);
    color: #fff;
}

/* ── 17. AUTHOR BOX ── */
.si-author-box {
    margin: 32px 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.si-author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.si-author-box-content {
    flex: 1;
}
.si-author-box-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--si-heading);
    margin: 0 0 4px 0;
}
.si-author-box-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--si-primary);
    margin-bottom: 6px;
}
.si-author-box-bio {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 10px;
}
.si-author-archive-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--si-primary);
    text-decoration: none;
}

/* ── 18. RELATED POSTS GRID ── */
.si-related-section {
    margin: 32px 0;
}
.si-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.si-related-card {
    background: #ffffff;
    border: 1px solid var(--si-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.si-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.si-related-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
}
.si-related-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.si-related-cat {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--si-primary);
    margin-bottom: 4px;
}
.si-related-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
}
.si-related-title a {
    color: var(--si-heading);
    text-decoration: none;
}
.si-related-title a:hover {
    color: var(--si-primary);
}
.si-related-date {
    font-size: 10.5px;
    color: var(--si-muted);
    margin-top: auto;
}

/* ── 19. PREV / NEXT ARTICLE NAV ── */
.si-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid var(--si-border);
    border-bottom: 1px solid var(--si-border);
}
.si-nav-item {
    display: flex;
    flex-direction: column;
}
.si-nav-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--si-muted);
}
.si-nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--si-heading);
    text-decoration: none;
    line-height: 1.4;
    margin-top: 4px;
}
.si-nav-title:hover {
    color: var(--si-primary);
}
.si-nav-next {
    text-align: right;
}

/* ── 20. TOAST NOTIFICATION ── */
.si-toast-alert {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 100000;
    transition: opacity 0.3s;
}
.si-toast-fade {
    opacity: 0;
}

/* ── 21. PRINT STYLES (NO ADS, NO MENUS, PURE ARTICLE) ── */
@media print {
    #si-reading-progress-wrap,
    .site-header,
    .site-topbar,
    .site-footer,
    .si-share-bar,
    .si-ad-slot-wrapper,
    .si-correction-report-wrap,
    .si-audio-widget,
    .si-related-section,
    .comments-area,
    .site-sidebar,
    .si-post-nav,
    .si-copy-quote-btn {
        display: none !important;
    }
    body, .single-article-entry {
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    .single-title {
        font-size: 24pt !important;
        color: #000000 !important;
    }
    .single-content {
        font-size: 12pt !important;
        line-height: 1.6 !important;
    }
}
