/* css/global.css */

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

body {
    font-family: 'Poppins', var(--font-latin); /* Prioritaskan Font Poppins */
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    padding-bottom: 100px; 
    min-height: 100vh;
}

/* --- BACKGROUND ISLAMI BERGERAK --- */
.islamic-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    /* Pola Geometris Arabesque Halus (SVG) */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23198754' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -2;
    animation: moveBackground 60s linear infinite;
    opacity: 0.6;
}

[data-theme="dark"] .islamic-bg-pattern {
    /* Pola lebih terang sedikit di mode gelap agar terlihat */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Overlay agar konten tetap terbaca jelas di atas pattern */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(240,242,245,0.85), rgba(240,242,245,0.98));
    z-index: -1;
    backdrop-filter: blur(1px);
}

[data-theme="dark"] .background-overlay {
    background: linear-gradient(to bottom, rgba(18,18,18,0.85), rgba(18,18,18,0.98));
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, -60px); }
}

/* Matikan background lama */
.background-accent, .background-accent-2 { display: none; }

/* --- DEKORASI BANNER RAMADHAN --- */
.decoration-moon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    /* Membuat efek bulan sabit menggunakan shadow */
    box-shadow: -20px 20px 0 0 rgba(255,255,255,0.15);
    transform: rotate(-15deg);
    pointer-events: none;
}

.decoration-star-1 {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 1.2rem;
    color: rgba(255, 223, 0, 0.7); /* Emas Pucat */
    animation: twinkle 3s infinite ease-in-out;
    pointer-events: none;
}
.decoration-star-1::after { content: "✦"; }

.decoration-star-2 {
    position: absolute;
    bottom: 20px;
    right: 70px;
    font-size: 0.8rem;
    color: rgba(255, 223, 0, 0.5);
    animation: twinkle 4s infinite ease-in-out reverse;
    pointer-events: none;
}
.decoration-star-2::after { content: "✦"; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- UMUM --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hidden { display: none !important; }

/* Scrollbar Cantik */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--secondary-color); border-radius: 10px; }
