/* ==========================================================================
   Baca Juga - Related Posts Styling (List Format)
   ========================================================================== */

.baca-juga-wrapper {
    margin: 1.5em 0;
    padding: 1.25em 1.5em;
    background: #f8f9fb;
    border: 1px solid #e7e9ee;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.baca-juga-title {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1.05em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.9em 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.baca-juga-icon {
    font-size: 1.05em;
    line-height: 1;
}

/* List berisi lebih dari satu item (dipakai shortcode) */
.baca-juga-list {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

/* Satu baris item: gambar di kiri, judul di kanan */
.baca-juga-item {
    display: flex;
    align-items: center;
    gap: 1em;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.6em;
    text-decoration: none !important;
    border: 1px solid #edeef2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.baca-juga-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-color: #dbe2f0;
}

.baca-juga-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef0f4;
}

.baca-juga-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.baca-juga-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    color: #b7bcc7;
    background: #eef0f4;
}

.baca-juga-info {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    min-width: 0; /* agar teks bisa terpotong rapi */
}

.baca-juga-kategori {
    display: inline-block;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2563eb;
}

.baca-juga-judul {
    margin: 0;
    font-size: 0.96em;
    line-height: 1.35;
    font-weight: 600;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.baca-juga-item:hover .baca-juga-judul {
    color: #2563eb;
}

.baca-juga-tanggal {
    font-size: 0.75em;
    color: #8a8f9a;
}

/* Responsif untuk layar kecil */
@media (max-width: 480px) {
    .baca-juga-wrapper {
        padding: 1em;
    }
    .baca-juga-thumb {
        width: 60px;
        height: 60px;
    }
    .baca-juga-title {
        font-size: 0.95em;
    }
    .baca-juga-judul {
        font-size: 0.9em;
    }
}

/* Sedikit polesan untuk halaman admin pengaturan */
.baca-juga-admin .form-table th {
    width: 260px;
}
