/*
Theme Name: OVO PPOB Theme
Theme URI: https://ezidcode.com/
Author: Davidson Iglesias Rumondor
Author URI: https://ezidcode.com/
Description: Theme WordPress dengan tampilan modern seperti aplikasi PPOB, dirancang khusus untuk plugin WP PPOB Manager.
Version: 1.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ovoppob
*/

/* --- Palet Warna & Pengaturan Global --- */
:root {
    --app-purple: #4E2C84;
    --app-purple-dark: #371766;
    --app-bg: #f3f4f8;
    --text-color: #140A39;
    --text-light: #6c757d;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--app-bg);
    color: var(--text-color);
    margin: 0 0 80px 0; /* Memberi ruang untuk footer nav */
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* --- Header Aplikasi Baru --- */
.app-header {
    background: linear-gradient(90deg, var(--app-purple) 0%, var(--app-purple-dark) 100%);
    color: white;
    padding: 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
}

.site-info .site-name {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    display: block;
}

.site-info .user-balance {
    font-size: 18px;
    font-weight: bold;
    display: block;
}
.user-balance a { color: #fff; text-decoration: none; font-size: 14px; }

.header-promo a {
    background-color: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header-menu {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    text-align: center;
}

.header-menu a {
    color: white;
    text-decoration: none;
}

.header-menu .icon-circle {
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-menu span {
    font-size: 13px;
    font-weight: 500;
}

/* --- Banner Notifikasi & Promo --- */
.notification-banner {
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    margin: 15px auto;
}
.notification-banner .fa-bell {
    color: var(--app-purple);
    margin-right: 10px;
}
.notification-banner marquee {
    font-size: 14px;
    font-weight: 500;
}

.promo-banner {
    background-color: var(--app-purple-dark);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}
.promo-info { display: flex; flex-direction: column; }
.promo-title { font-weight: bold; font-size: 16px; }
.promo-subtitle { font-size: 13px; opacity: 0.8; }
.promo-link {
    background: #fff;
    color: var(--app-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}


/* --- Konten Halaman & Styling Plugin PPOB --- */
.page-content-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.wppob-category-item {
    border: none;
    box-shadow: none;
    padding: 10px 5px;
    background-color: transparent;
}
.wppob-category-item:hover img {
    transform: scale(1.1);
}
.wppob-category-item span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

/* --- Navigasi Bawah (Footer) --- */
.app-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}
.footer-nav-item {
    text-align: center;
    padding: 10px 5px;
}
.footer-nav-item a {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.footer-nav-item .fa-solid { font-size: 20px; }
.footer-nav-item span { font-size: 11px; font-weight: 500; }
.footer-nav-item.active a {
    color: var(--app-purple);
}

/* --- Menu Samping (Sidebar) --- */
.user-sidebar-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Sembunyi */
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}
.user-sidebar-menu.active {
    right: 0; /* Tampil */
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}
.sidebar-overlay.active {
    display: block;
}
.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.sidebar-header h3 { margin: 0; flex-grow: 1; }
.close-sidebar-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a {
    display: block;
    padding: 12px 15px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}
.sidebar-links a:hover { background-color: #e9ecef; }
.sidebar-links a i { margin-right: 10px; width: 20px; text-align: center; }


/* --- Perbaikan: Menambahkan Kurva Elegan pada Header --- */

.app-header {
    position: relative; /* Diperlukan agar pseudo-element bisa diposisikan */
    overflow: hidden; /* Mencegah kurva keluar dari batas header */
    z-index: 1;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -80px; /* Posisikan sebagian besar di luar header bawah */
    left: -25%; /* Mulai dari luar sisi kiri */
    right: -25%; /* Meluber hingga ke luar sisi kanan */
    height: 150px; /* Ketinggian dari kurva */
    background-color: rgba(255, 255, 255, 0.05); /* Warna transparan agar terlihat halus */
    border-radius: 50%; /* Ini adalah trik untuk menciptakan lengkungan sempurna */
    z-index: -1; /* Letakkan di belakang konten header */
}

/* Sedikit penyesuaian untuk menu agar tidak terhalang */
.header-menu {
    position: relative;
    z-index: 2;
}



/* --- Desain Header Profesional dengan Efek Gelombang Berlapis --- */

.app-header {
    position: relative; /* Penting untuk memposisikan gelombang */
    overflow: hidden;   /* Mencegah gelombang keluar dari area header */
    z-index: 1;
}

/* Gelombang 1: Lapisan belakang yang lebih besar dan lembut (Lereng Gunung) */
.app-header::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -50%;
    right: -50%;
    bottom: -120px; /* Posisi lebih rendah untuk kurva yang landai */
    height: 200px;  /* Ketinggian gelombang */
    background-color: rgba(255, 255, 255, 0.04); /* Sangat transparan */
    border-radius: 50%;
    animation: wave-animation-1 15s ease-in-out infinite alternate;
}

/* Gelombang 2: Lapisan depan yang lebih jelas (Bentuk S) */
.app-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -40%;
    right: -40%;
    bottom: -140px; /* Posisi lebih rendah lagi untuk menciptakan tumpukan */
    height: 190px;
    background-color: rgba(255, 255, 255, 0.08); /* Sedikit lebih jelas dari lapisan pertama */
    border-radius: 45%; /* Bentuk radius yang sedikit berbeda untuk variasi */
    animation: wave-animation-2 12s ease-in-out infinite alternate;
}

/* Animasi halus untuk membuat gelombang bergerak perlahan */
@keyframes wave-animation-1 {
    from {
        transform: translateX(-20px);
    }
    to {
        transform: translateX(20px);
    }
}

@keyframes wave-animation-2 {
    from {
        transform: translateX(15px);
    }
    to {
        transform: translateX(-15px);
    }
}

/* Pastikan konten header tetap di atas gelombang */
.header-main, .header-menu {
    position: relative;
    z-index: 2;
}



/* --- Styling untuk Slider Promo --- */
.splide-container {
    margin-top: 25px;
    margin-bottom: 25px;
}

.splide__slide img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Membuat sudut gambar melengkung */
    display: block;
}

/* Kustomisasi titik navigasi (pagination) */
.splide__pagination__page {
    background: rgba(78, 44, 132, 0.3); /* Warna titik tidak aktif */
    opacity: 1;
}

.splide__pagination__page.is-active {
    background: var(--app-purple); /* Warna titik aktif */
    transform: scale(1.2);
}


/* ======================================================================== */
/* --- PERBAIKAN FINAL V4: KATEGORI STABIL UNTUK HP & DESKTOP --- */
/* ======================================================================== */

/* 1. Aturan KHUSUS untuk Layar HP (di bawah 768px) */
@media (max-width: 768px) {
    
  .page-content-wrapper {
    background-color: transparent !important; /* Membuat background menjadi transparan */
    box-shadow: none !important; /* Menghilangkan bayangan */
    padding: 0 !important; /* Menghilangkan jarak di dalam kotak */
    border: none !important; /* Menghilangkan garis tepi jika ada */
}

    /* Atur grid menjadi 4 kolom */
    .wppob-category-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
    }
}

/* 2. Gaya KARTU untuk setiap ikon kategori (berlaku di semua layar) */
/* Penyesuaian agar ikon kartu tetap terlihat bagus tanpa latar belakang */
.wppob-category-item {
    background: #fff; /* Latar belakang kartu ikon tetap putih */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); /* Bayangan halus untuk efek 3D */
}


/* 3. Ukuran PASTI untuk gambar ikon */
.wppob-category-item img {
    width: 40px !important;   /* Ukuran lebar ikon dikecilkan sedikit */
    height: 40px !important;  /* Ukuran tinggi ikon dikecilkan sedikit */
    object-fit: contain;
    margin-bottom: 8px;
}

/* 4. Gaya untuk teks di bawah ikon */
.wppob-category-item span {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    line-height: 1.2;
}
/* Untuk desktop, biarkan pengaturan plugin yang bekerja */

/* 3. Perbaikan Tampilan "Info & Promo Spesial" */
.promo-banner {
    background-color: var(--app-purple-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
}

/* Hapus kode promo banner lama agar tidak konflik */
.promo-info, .promo-title, .promo-subtitle, .promo-link {
    all: unset; /* Reset semua style sebelumnya */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.promo-info .promo-title {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    display: block;
}
.promo-info .promo-subtitle {
    color: #fff;
    opacity: 0.8;
    font-size: 13px;
    display: block;
}

.promo-link {
    background-color: #fff;
    color: var(--app-purple) !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap; /* Mencegah teks "Lihat Semua" turun baris */
    font-size: 14px;
}

/* 4. Perbaikan Footer (memastikan ikon di tengah) */
.footer-nav-item a {
    justify-content: center;
}