/* --- Root Variables & Themes --- */
:root {
    --bg: #ffffff;
    --text: #111827;
    --gray: #6b7280;
    --border: #f3f4f6;
    --accent: #4f46e5;
    --menu-bg: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] {
    --bg: #111827;
    --text: #f9fafb;
    --gray: #9ca3af;
    --border: #1f2937;
    --accent: #818cf8;
    --menu-bg: rgba(17, 24, 39, 0.98);
}

/* --- Global Reset --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

.container { 
    max-width: 650px; 
    margin: 0 auto; 
    padding: 5px 20px 40px 20px; 
}

/* --- Navigasi --- */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

#theme-toggle, .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text);
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: var(--menu-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border);
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: 0.4s ease-in-out;
    z-index: 1000;
    list-style: none;
}

.menu.active { right: 0; }
.menu a { text-decoration: none; color: var(--text); font-size: 18px; font-weight: 500; }

/* --- Typography & Header --- */
h1 { 
    font-size: 32px; 
    font-weight: 700; 
    text-align: left; /* Default tetap kiri untuk halaman blog */
    margin: 10px 0 15px 0; 
}

/* KHUSUS Nama di Home: ke tengah */
.home-header h1 {
    text-align: center !important;
    margin: 40px 0 40px 0;
    width: 100%;
}

.post-header {
    text-align: left; 
    margin-bottom: 30px;
}

/* --- Content Style --- */
.bio p, .content-body p {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto;
    margin-bottom: 20px;
}

.meta-detail {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
    display: block;
}

.category-tag {
    display: inline-block;
    background-color: var(--border); 
    color: var(--text);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
}

.highlight, b, strong {
    background: none !important;
    color: var(--text);
    font-weight: 700;
}

/* --- Blog Page Styles --- */
.post-item { display: flex; margin-bottom: 25px; text-decoration: none; color: inherit; }
.lang-label { min-width: 50px; color: var(--gray); font-size: 13px; margin-top: 5px; }
.post-content h2 { font-size: 19px; font-weight: 500; margin-bottom: 4px; text-align: left !important; }
.post-meta { font-size: 14px; color: var(--gray); }

.post-meta span {
    color: var(--accent);
    font-weight: 500;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 30px;
}

footer { 
    margin-top: 80px; 
    padding-top: 20px; 
    border-top: 1px solid var(--border); 
    font-size: 13px; 
    color: var(--gray); 
    text-align: center; 
}
