/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Inter:wght@300;500;600&display=swap');

:root {
    --gold: #ffc107;
    --dark-card: #161616;
}

/* List Item Container */
.art-list-item {
    background: var(--dark-card);
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.art-list-item:hover {
    border-color: var(--gold);
    transform: translateX(10px);
    box-shadow: -10px 0 30px rgba(255, 193, 7, 0.1);
}

/* Slanted Image Container */
.slanted-img-wrapper {
    position: relative;
    width: 35%;
    /* Ukuran gambar di kiri */
    height: 250px;
    /* Efek Jajar Genjang */
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
    overflow: hidden;
    background: #000;
}

.slanted-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(30%);
}

.art-list-item:hover .slanted-img-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Content Area */
.art-content {
    width: 65%;
    padding: 2rem;
    padding-left: 0;
    /* Karena gambar sudah miring ke kanan */
}

.art-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.art-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.art-description {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Action Button */
.btn-read-more {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-read-more i {
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-read-more:hover {
    color: var(--gold);
}

.btn-read-more:hover i {
    transform: translateX(5px);
    background: #fff;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .art-list-item {
        flex-direction: column;
    }

    .slanted-img-wrapper {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
        /* Miring bawah saja */
    }

    .art-content {
        width: 100%;
        padding: 2rem;
    }
}

/* Container Search agar menonjol */
.search-wrapper {
    background: rgba(255, 255, 255, 0.07);
    /* Lebih terang sedikit */
    border: 1px solid rgba(255, 193, 7, 0.3);
    /* Border tipis warna gold */
    border-radius: 50px;
    padding: 8px 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

/* Memperjelas Input Text & Placeholder */
.search-wrapper input {
    color: #fff !important;
    font-size: 0.95rem;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    /* Placeholder lebih terang */
}

.search-wrapper i {
    color: var(--gold) !important;
    /* Ikon search jadi kuning gold */
    font-size: 1.1rem;
}

/* Metadata (Penulis & Tanggal) agar terbaca */
.art-meta-text {
    color: rgba(255, 255, 255, 0.7) !important;
    /* Putih transparan, bukan abu-abu gelap */
    font-size: 0.85rem;
}

.art-meta-text i {
    color: var(--gold);
    /* Ikon kecil jadi warna gold */
    margin-right: 5px;
}

/* Garis pemisah yang lebih elegan */
.art-content border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Tombol Baca Selengkapnya yang lebih Bold */
.btn-read-more {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-read-more i {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    /* Efek glow pada panah */
}

/* Sederhanakan: Sembunyikan secara default tanpa !important */
.loading-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    
}

.loading-overlay .content{
    width: 100vw;
    height: 100vh;
    /* Layout ke tengah */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex !important;
}

.loader-trisda {
    width: 65px;
    height: 65px;
    border: 5px solid rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    /* Warna Gold */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
    z-index: 2;
}

.loader-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: pulse-glow 2s infinite;
}

.loading-text {
    margin-top: 25px;
    color: #ffc107;
    font-family: 'Playfair Display', serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* --- PERBAIKAN VISIBILITAS SEARCH & META --- */
.search-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    transition: 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #ffc107;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.art-meta-text {
    color: rgba(255, 255, 255, 0.85) !important;
    /* Terang di layar hitam */
    font-weight: 500;
}

.art-meta-text i {
    color: #ffc107;
    margin-right: 5px;
}

.btn-read-more i {
    background: #ffc107;
    color: #000;
    padding: 3px;
    border-radius: 50%;
    transition: 0.3s;
}

.btn-read-more:hover i {
    transform: translateX(5px);
    background: #fff;
}