/* =========================================
   BLOG STYLE
   ========================================= */

/* 1. RESET LAYOUT DASHBOARD */
body {
    overflow-y: auto !important; /* Wajib: Scrollable */
    height: auto !important;     /* Tinggi mengikuti konten */
    background-color: #050505;   
    margin: 0;
    padding-bottom: 80px;
    
    /* Perbaikan Scrollbar Chrome/Edge agar menyatu dengan tema */
    scrollbar-width: thin;
    scrollbar-color: #00ffc8 #111;
}

/* 2. CONTAINER UTAMA (ADAPTIVE WIDTH) */
.blog-container {
    /* Lebar dinamis: Maksimal 800px, tapi di HP mengisi 90% layar */
    width: 90%;
    max-width: 800px; 
    
    margin: 0 auto; /* Tengah horizontal */
    padding-top: clamp(30px, 8vw, 60px); /* Padding atas responsif */
    position: relative;
    z-index: 100;
}

/* 3. NAVIGASI (BACK BUTTON) */
.blog-nav {
    margin-bottom: clamp(20px, 5vw, 40px);
}

.btn-back {
    text-decoration: none;
    color: #00ffc8;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.75rem, 2vw, 0.9rem); /* Font mengecil di HP */
    border: 1px solid rgba(0, 255, 200, 0.3);
    
    /* Padding responsif */
    padding: 8px 16px; 
    
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 200, 0.05);
}

.btn-back:hover {
    background: rgba(0, 255, 200, 0.15);
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
}

/* 4. HEADER ARTIKEL */
.article-header {
    border-left: 4px solid #00ffc8;
    padding-left: clamp(15px, 3vw, 25px); /* Jarak garis kiri responsif */
    margin-bottom: clamp(30px, 6vw, 50px);
}

.meta-info {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: clamp(0.7rem, 2vw, 0.85rem); /* Meta info adaptif */
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.article-title {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    
    /* FLUID TYPOGRAPHY: 
       Minimal 1.8rem (HP), Maksimal 3.2rem (Desktop), 
       di antaranya menyesuaikan lebar layar (5vw) */
    font-size: clamp(1.8rem, 5vw, 3.2rem);
}

/* 5. KONTEN ARTIKEL (TYPOGRAPHY & LAYOUT) */
.article-content {
    color: #ccc;
    font-family: 'Space Grotesk', sans-serif;
    
    /* Ukuran font baca yang nyaman: 
       Min 1rem (16px) di HP, Max 1.15rem (18px) di Desktop */
    font-size: clamp(1rem, 2vw, 1.15rem); 
    
    line-height: 1.7; /* Jarak antar baris lega */
}

/* Paragraf */
.article-content p {
    margin-bottom: 1.5em; /* Gunakan 'em' agar relatif terhadap font */
}

/* Headings dalam artikel (H2, H3) */
.article-content h2 {
    color: #00ffc8;
    font-family: 'JetBrains Mono', monospace;
    
    margin-top: 2.5em;
    margin-bottom: 1em;
    
    font-size: clamp(1.3rem, 3vw, 1.6rem); /* Responsif */
    
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.article-content h3 {
    color: #fff;
    margin-top: 2em;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Gambar Responsif */
.article-content img {
    width: 100%;       /* Penuhi lebar container */
    height: auto;      /* Tinggi menyesuaikan proporsi */
    border-radius: 8px;
    margin: 2em 0;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Blockquote (Kutipan) */
.article-content blockquote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ff0055; 
    margin: 2em 0;
    padding: 20px;
    font-style: italic;
    color: #eee;
    
    /* Font quote sedikit lebih kecil di HP */
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Code Snippet (PENTING BUAT HP) */
.article-content pre {
    background: #0d1117;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    
    /* Scroll Horizontal WAJIB ada buat HP */
    overflow-x: auto; 
    
    font-family: 'JetBrains Mono', monospace;
    
    /* Font codingan jangan terlalu besar di HP */
    font-size: clamp(0.75rem, 2vw, 0.9rem); 
    
    color: #e6edf3;
    margin: 2em 0;
}

/* List (Bulleted & Numbered) */
.article-content ul, .article-content ol {
    margin-bottom: 1.5em;
    padding-left: clamp(20px, 4vw, 40px); /* Indentasi responsif */
}
.article-content li {
    margin-bottom: 0.5em;
}

/* 6. FOOTER */
/* =========================================
   MEDIA QUERY KHUSUS MOBILE (< 600px)
   ========================================= */
@media (max-width: 600px) {
    /* Penyesuaian mikro untuk layar sangat kecil */
    .article-header {
        border-left-width: 3px; /* Garis lebih tipis */
    }
    
    /* Meta info turun baris agar tidak sesak */
    .meta-info {
        display: flex;
        flex-direction: column; 
        gap: 5px;
    }

    /* Codingan mepet kiri-kanan biar muat banyak */
    .article-content pre {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 4px;
    }
}

/* --- TAMBAHAN ELEMEN BLOG LENGKAP --- */

/* 1. GAMBAR DENGAN CAPTION (FIGURE) */
figure {
    margin: 2.5em 0;
    text-align: center; /* Gambar & Caption rata tengah */
}

figure img {
    margin-bottom: 10px; /* Jarak antara gambar & caption */
    max-height: 500px;   /* Batasi tinggi agar tidak memenuhi layar */
    object-fit: contain; /* Agar gambar tidak gepeng */
}

figcaption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* 2. TABEL DATA (UNTUK HASIL RISET) */
.table-wrapper {
    overflow-x: auto; /* Agar tabel bisa digeser di HP */
    margin: 2em 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #ccc;
    min-width: 500px; /* Minimal lebar agar tidak gepeng di HP */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(0, 255, 200, 0.1);
    color: #00ffc8;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 3. VIDEO RESPONSIF (YOUTUBE/MP4) */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
    margin: 2em 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.video-container iframe, 
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 4. TOMBOL KEYBOARD (KEYBINDING) */
kbd {
    background-color: #222;
    border-radius: 3px;
    border: 1px solid #444;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    color: #00ffc8;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
}

/* --- FOOTER & AUTHOR SECTION REVISION --- */

.article-footer {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 255, 200, 0.2); /* Garis pemisah cyan tipis */
    position: relative;
    text-align: center;
}

/* KARTU PENULIS (Agar tidak mengambang) */
.author-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px; /* Batasi lebar agar rapi */
    margin: 0 auto 40px auto; /* Tengah secara horizontal & jarak bawah */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.author-card:hover {
    border-color: rgba(0, 255, 200, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* FOTO PROFIL */
.author-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
    margin-bottom: 5px;
}

/* TYPOGRAPHY PENULIS */
.author-name {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.author-role {
    font-family: 'JetBrains Mono', monospace;
    color: #00ffc8;
    font-size: 0.8rem;
    background: rgba(0, 255, 200, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.author-bio {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

/* BAGIAN COPYRIGHT (Paling Bawah) */
.footer-bottom {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 1px;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    color: #00ffc8;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed transparent;
    transition: 0.3s;
}

.contact-link:hover {
    border-bottom-color: #00ffc8;
    text-shadow: 0 0 10px #00ffc8;
}