/* =============================================================================
 * iniPrimbons Ultimate - Styled for 680px Max Width & Inter Font
 * Theme: Dark Honeycomb Background + White Container Wrapper
 * ============================================================================= */

/* IMPORT GOOGLE FONT INTER */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root { 
    --primary: #1d4ed8; 
    --primary-hover: #1e40af; 
    --secondary: #2563eb; 
    --accent: #16a34a; 
    --danger: #dc2626; 
    --bg: #ffffff; 
    --bg-soft: #f8fafc; 
    --text: #1f2937; 
    --text-light: #6b7280; 
    --border: #e5e7eb; 
    --radius: 12px; 
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

    /* LEBAR MAKSIMAL DIBATASI 680PX */
    --container: 680px;
}

/* RESET & BASE STYLES (DIPERBAIKI: Menambahkan '*' yang hilang) */
*,
*::before,
*::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    font-size: 16px; 
    scroll-behavior: smooth; 
    -webkit-text-size-adjust: 100%;
}

/* BODY: TEKSTUR HONEYCOMB GELAP MURNI DENGAN CSS */
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: #0d0f12;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(20, 24, 33, 0.8) 0%, rgba(13, 15, 18, 1) 100%),
        radial-gradient(circle at 0% 100%, #1e2638 10%, transparent 11%),
        radial-gradient(circle at 100% 0%, #1e2638 10%, transparent 11%),
        radial-gradient(circle at 100% 100%, #1e2638 10%, transparent 11%),
        radial-gradient(circle at 0% 0%, #1e2638 10%, transparent 11%),
        radial-gradient(circle at 50% 50%, #1e2638 20%, transparent 21%);
    background-size: 100% 100%, 28px 48px, 28px 48px, 28px 48px, 28px 48px, 28px 48px;
    background-position: 0 0, 0 0, 0 0, 14px 24px, 14px 24px, 14px 24px;
    background-attachment: fixed;
    color: var(--text); 
    line-height: 1.8; 
    text-rendering: optimizeLegibility; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    overflow-x: hidden;
}

/* LINK */
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease;}
a:hover { color: var(--primary-hover);}

/* IMAGE */
img { display: block; max-width: 100%; height: auto; border: 0;}

/* CONTAINER WRAPPER (MENJADI WADAH PUTIH DI ATAS BACKGROUND GELAP) */
.container { 
    max-width: var(--container); 
    width: 100%; 
    margin-left: auto; 
    margin-right: auto; 
    padding-left: 24px; 
    padding-right: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

/* HEADER */
.site-header { 
    background: #ffffff; 
    border-bottom: 1px solid var(--border); 
    position: sticky; 
    top: 0; 
    z-index: 999;
}
.site-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0;}
.site-logo { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;}

/* BREADCRUMB */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; padding-top: 20px; margin: 0 0 20px 0; color: var(--text-light);}
.breadcrumb span { opacity: 0.5;}

/* ARTICLE HEADER & TYPOGRAPHY */
.article { background: #ffffff;}
.article-title { font-size: 1.85rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 16px; color: #111827;}
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.875rem; color: var(--text-light); margin-bottom: 24px;}

/* FEATURED IMAGE (DIPERBAIKI: argin -> margin) */
.featured-image { overflow: hidden; border-radius: var(--radius); box-shadow: 0 4px 18px rgba(0,0,0,.06); margin: 24px 0;}
.featured-image img { width: 100%; object-fit: cover;}

/* ARTICLE CONTENT */
.content { font-size: 1.0625rem; color: #374151;}
.content h2 { margin-top: 40px; margin-bottom: 16px; font-size: 1.45rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; color: #111827;}
.content h3 { margin-top: 32px; margin-bottom: 14px; font-size: 1.2rem; font-weight: 600; color: #111827;}
.content p { margin-bottom: 20px;}
.content ul,
.content ol { padding-left: 20px; margin-bottom: 20px;}
.content li { margin-bottom: 8px;}

/* TOC (TABLE OF CONTENTS) */
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 30px 0;}
.toc h2 { margin: 0 0 12px 0 !important; font-size: 1.1rem;}
.toc ul { padding-left: 18px; margin-bottom: 0 !important;}
.toc li { margin-bottom: 6px;}

/* INFO BOX & WARNING */
.info-box { padding: 18px; background: #eff6ff; border-left: 4px solid var(--primary); border-radius: 8px; margin: 28px 0; font-size: 0.975rem;}
.warning { background: #fef2f2; border-left: 4px solid var(--danger); padding: 18px; border-radius: 8px; margin: 28px 0; font-size: 0.975rem;}

/* TABLE */
table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.95rem;}
th, td { padding: 12px 14px; border: 1px solid var(--border); text-align: left;}
th { background: #f3f4f6; font-weight: 600;}

/* AUTHOR BOX (DIPERBAIKI: ackground -> background) */
.author-box { margin-top: 40px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius); display: flex; gap: 20px; align-items: center;}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0;}

/* FAQ SECTION */
.faq-section { margin: 32px 0;}
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; padding: 14px 18px; background: #ffffff;}
.faq-item summary { font-weight: 600; cursor: pointer; outline: none;}
.faq-answer { margin-top: 10px; color: #4b5563;}

/* RELATED POSTS & CATEGORY GRID */
.related-grid,
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 20px 0;}
.related-card { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #ffffff;}
.related-card h3 { margin: 0 !important; font-size: 1rem !important; font-weight: 500;}

/* FOOTER */
.site-footer { margin-top: 50px; padding: 36px 0; background: var(--bg-soft); border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--text-light);}

/* SKELETON / PLACEHOLDER */
.lazy-placeholder { background: #e5e7eb; min-height: 200px;}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 680px) { 
    .container { padding-left: 16px; padding-right: 16px; box-shadow: none; } 
    .article-title { font-size: 1.55rem; }
    .author-box { flex-direction: column; align-items: flex-start; }
    .article-meta { gap: 10px; font-size: 0.825rem; }
}

/* PRINT STYLES */
@media print { 
    .site-header, .site-footer, .ads, .related-post, .share-section, #scrollTop { display: none !important; }
    body { background: #ffffff; color: #000000; }
}