/* ===================================================================
   REDESAIN CSS DENGAN KODE WARNA LANGSUNG (HARDCODED)
   =================================================================== */

/* 1. GAYA DASAR (LIGHT MODE - DEFAULT)
   ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f8fafc; /* Latar Belakang */
    color: #475569; /* Teks Body */
    line-height: 1.7;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .entry-title a {
    color: #1e293b; /* Teks Judul */
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: #4f46e5; /* Warna Aksen */
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { filter: brightness(1.1); }

/* Layout & Header */
.site-header {
    background-color: #ffffff; /* Permukaan */
    border-bottom: 1px solid #e2e8f0; /* Garis */
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07);
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Kartu Post */
.posts-loop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.post-item {
    background-color: #ffffff; /* Permukaan */
    border: 1px solid #e2e8f0; /* Garis */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.post-item .post-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0; /* Garis */
}

.post-item .post-content { padding: 1.25rem; }

.post-item .entry-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}
.post-item .entry-title a { color: #1e293b; } /* Teks Judul */
.post-item .entry-title a:hover { color: #4f46e5; } /* Warna Aksen */

.post-item .entry-meta {
    font-size: 0.875rem;
    color: #475569; /* Teks Body */
}

/* Sidebar & Widget */
.widget {
    background-color: #ffffff; /* Permukaan */
    border: 1px solid #e2e8f0; /* Garis */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07);
}

.widget-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0; /* Garis */
}


/* 2. GAYA KHUSUS UNTUK DARK MODE
   Bagian ini akan menimpa warna default saat [data-theme="dark"] aktif.
   ------------------------------------------------------------------- */
[data-theme="dark"] body {
    background-color: #0f172a; /* Latar Belakang Gelap */
    color: #94a3b8; /* Teks Body Gelap */
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .entry-title a {
    color: #f8fafc; /* Teks Judul Gelap */
}

[data-theme="dark"] a {
    color: #818cf8; /* Warna Aksen Gelap */
}

[data-theme="dark"] .site-header {
    background-color: #1e293b; /* Permukaan Gelap */
    border-bottom: 1px solid #334155; /* Garis Gelap */
}

[data-theme="dark"] .post-item {
    background-color: #1e293b; /* Permukaan Gelap */
    border: 1px solid #334155; /* Garis Gelap */
}

[data-theme="dark"] .post-item .post-image img {
    border-bottom: 1px solid #334155; /* Garis Gelap */
}

[data-theme="dark"] .post-item .entry-title a {
    color: #f8fafc; /* Teks Judul Gelap */
}

[data-theme="dark"] .post-item .entry-title a:hover {
    color: #818cf8; /* Warna Aksen Gelap */
}

[data-theme="dark"] .post-item .entry-meta {
    color: #94a3b8; /* Teks Body Gelap */
}

[data-theme="dark"] .widget {
    background-color: #1e293b; /* Permukaan Gelap */
    border: 1px solid #334155; /* Garis Gelap */
}

[data-theme="dark"] .widget-title {
    border-bottom: 1px solid #334155; /* Garis Gelap */
}