/*
Theme Name: Yamanara Properti App
Theme URI: https://yamanara.com
Author: Yamanara Dev
Description: Tema aplikasi mobile eksklusif, mewah & elegan — oranye putih, tampilan mobile-app premium. Logout via POST. Semua intersepsi AJAX & CSS pemblokir popup plugin DIHAPUS total agar plugin berjalan maksimal. (Support WP & PHP 8.3)
Version: 3.0.2
Text Domain: yamanara
*/

/* ============================================================
   PALETTE MEWAH — ORANGE × PUTIH
   ============================================================ */
:root {
    --primary-orange: #FF6B00;          /* dipakai index.php inline — JANGAN dihapus */
    --ynr-orange:      #FF6B00;
    --ynr-orange-deep: #FF5200;
    --ynr-orange-lite: #FFA028;
    --ynr-gradient:    linear-gradient(135deg, #FFB028 0%, #FF6B00 55%, #FF4D00 100%);
    --ynr-white:       #FFFFFF;
    --ynr-cream:       #FAF7F2;
    --ynr-ink:         #1C1C1E;
    --ynr-muted:       #8E8E93;
    --ynr-line:        rgba(0,0,0,.06);
    --ynr-red:         #E63946;
    --ynr-shadow:      0 10px 30px rgba(255,82,0,.14);
    --ynr-shadow-soft: 0 4px 16px rgba(0,0,0,.05);
    --ynr-radius:      20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Poppins', sans-serif;
    background:
        radial-gradient(700px 340px at 50% -8%, rgba(255,107,0,.10), transparent 70%),
        var(--ynr-cream);
    color: var(--ynr-ink);
    overflow-x: clip; /* menggantikan 'hidden' — tidak memotong/menyembunyikan popup/modal position:fixed plugin */
    -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255,107,0,.2); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,.35); border-radius: 3px; }

/* Animasi masuk konten (fade-up) */
.ynr-anim { animation: ynr-fadeup .5s cubic-bezier(.22,1,.36,1) backwards; } /* fill 'backwards' (bukan 'both') agar transform tidak permanen → popup fixed plugin tidak terjebak */
@keyframes ynr-fadeup {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PRELOADER — oranye gradien, logo putih bercahaya + orbit
   ============================================================ */
#app-preloader {
    position: fixed; inset: 0;
    background: var(--ynr-gradient);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity .5s ease;
}
.preloader-wrapper { position: relative; width: 140px; height: 140px; display: flex; justify-content: center; align-items: center; }
.preloader-logo-circle {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    background: var(--ynr-white); border: 3px solid var(--ynr-white);
    box-shadow: 0 0 0 6px rgba(255,255,255,.18), 0 8px 30px rgba(0,0,0,.25);
    z-index: 2;
}
.orbit-container {
    position: absolute; width: 150px; height: 150px; border-radius: 50%;
    animation: tawaf 2.2s linear infinite;
    border: 1.5px dashed rgba(255,255,255,.35);
}
.planet {
    position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--ynr-white);
    box-shadow: 0 0 14px rgba(255,255,255,.95);
}
@keyframes tawaf { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

/* ============================================================
   HEADER — kaca blur, aksen oranye, tombol hamburger gradien
   ============================================================ */
header.app-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 66px;
    background: rgba(255,255,255,.88);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 18px; z-index: 100; /* diturunkan agar popup plugin (z-index tinggi) tidak pernah tertutup header */
    border-bottom: 1px solid var(--ynr-line);
    box-shadow: 0 2px 20px rgba(255,107,0,.07);
}
header.app-header::after {
    content: ''; position: absolute; bottom: -1px; left: 18px; right: 18px; height: 2px;
    background: var(--ynr-gradient); border-radius: 2px; opacity: .9;
}
.header-left img { height: 38px; display: block; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-right img { height: 32px; display: block; }
.hamburger-btn {
    width: 42px; height: 42px; border: none; cursor: pointer;
    border-radius: 14px; background: var(--ynr-gradient); color: #fff;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(255,82,0,.4);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
    -webkit-tap-highlight-color: transparent;
}
.hamburger-btn:active { transform: scale(.92); box-shadow: 0 3px 8px rgba(255,82,0,.35); }

/* ============================================================
   KONTEN UTAMA — card putih mewah
   ============================================================ */
#app-wrapper {
    margin-top: 66px;
    margin-bottom: 110px; /* ruang untuk floating nav */
    padding: 22px 16px 40px;
    min-height: calc(100vh - 176px);
    transition: opacity .3s ease;
}

.app-page-content h1 {
    font-size: 22px; font-weight: 800; letter-spacing: -.02em;
    color: var(--ynr-ink); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.app-page-content h1::before {
    content: ''; width: 5px; height: 24px; border-radius: 3px;
    background: var(--ynr-gradient); display: inline-block;
}
.content-body {
    background: var(--ynr-white);
    border: 1px solid var(--ynr-line);
    border-radius: var(--ynr-radius);
    padding: 22px 18px;
    box-shadow: var(--ynr-shadow-soft);
    line-height: 1.7;
}
.content-body img { max-width: 100%; border-radius: 14px; }

/* ============================================================
   BOTTOM NAV — floating pill mewah (kunci utama tampilan app)
   ============================================================ */
nav.app-bottom-nav {
    position: fixed;
    left: 50%; transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px); max-width: 480px;
    display: flex; justify-content: space-around; align-items: center;
    gap: 2px; padding: 10px 8px;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    border: 1px solid rgba(255,107,0,.16);
    border-radius: 26px;
    box-shadow: 0 14px 40px rgba(255,82,0,.22), 0 2px 10px rgba(0,0,0,.06);
    z-index: 200; /* diturunkan agar popup plugin tidak tertutup bottom-nav */
    -webkit-tap-highlight-color: transparent;
}
.nav-item {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; border-radius: 16px;
    text-decoration: none; color: var(--ynr-muted);
    font-size: 10px; font-weight: 600; letter-spacing: .01em;
    transition: color .25s, background .25s;
    cursor: pointer;
}
.nav-icon {
    width: 38px; height: 38px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                background .35s, box-shadow .35s, color .35s;
}
.nav-icon i { font-size: 19px; line-height: 1; transition: transform .3s; }
.nav-label { transition: color .25s; }

/* Hover / sentuh */
.nav-item:hover { color: var(--ynr-orange); background: rgba(255,107,0,.06); }
.nav-item:hover .nav-icon i { transform: translateY(-2px) scale(1.08); }

/* STATE AKTIF — ikon mengambang dengan pill gradien oranye + glow */
.nav-item.active .nav-icon {
    background: var(--ynr-gradient); color: #fff;
    transform: translateY(-16px);
    box-shadow: 0 10px 22px rgba(255,82,0,.45),
                0 0 0 4px rgba(255,107,0,.10),
                inset 0 1px 0 rgba(255,255,255,.4);
}
.nav-item.active .nav-icon i { transform: scale(1.05); }
.nav-item.active .nav-label { color: var(--ynr-orange); font-weight: 700; }
.nav-item.active::after {
    content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--ynr-orange); box-shadow: 0 0 8px var(--ynr-orange);
}

/* === FORM LOGOUT (POST) — reset style button agar identik dengan link === */
.nav-logout-form { flex: 1; display: flex; margin: 0; padding: 0; }
button.nav-item {
    width: 100%; border: none; background: transparent;
    font-family: inherit; -webkit-appearance: none; appearance: none; outline: none;
}
button.nav-item:focus { outline: none; }
button.nav-item:active { transform: scale(.95); }

/* TOMBOL KELUAR — aksen merah elegan + titik pulse */
.nav-item.logout { color: #F2A5A5; }
.nav-item.logout .nav-icon i { color: var(--ynr-red); }
.nav-item.logout:hover { color: var(--ynr-red); background: rgba(230,57,70,.08); }
.nav-item.logout:hover .nav-icon i { transform: translateX(3px) scale(1.1); }
.logout-dot {
    position: absolute; top: 4px; right: calc(50% - 18px);
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ynr-red);
    animation: ynr-pulse 2s infinite;
    pointer-events: none;
}
@keyframes ynr-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(230,57,70,.55); }
    70%  { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

/* Layar sangat sempit: sembunyikan label non-aktif */
@media (max-width: 360px) {
    .nav-item:not(.active):not(.logout) .nav-label { display: none; }
    .nav-item { padding: 8px 2px; }
}

/* ============================================================
   SIDEBAR — putih mewah dengan header oranye
   ============================================================ */
.app-sidebar {
    position: fixed; top: 0; right: -320px; width: 290px; height: 100vh;
    background: var(--ynr-white);
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
    z-index: 400;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    padding: 24px 20px; overflow-y: auto;
    border-radius: 24px 0 0 24px;
}
.app-sidebar.open { right: 0; }
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(28,28,30,.45);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    z-index: 300; display: none; opacity: 0; transition: opacity .3s;
}
.sidebar-overlay.show { display: block; opacity: 1; }
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; margin: -24px -20px 18px;
    background: var(--ynr-gradient); color: #fff;
    border-radius: 0 0 0 24px;
}
.sidebar-header h3 {
    font-size: 16px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 8px;
}
.close-sidebar {
    font-size: 16px; color: rgba(255,255,255,.9); cursor: pointer;
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.2); transition: all .25s;
}
.close-sidebar:hover { background: rgba(255,255,255,.35); transform: rotate(90deg); }
.app-sidebar ul { list-style: none; }
.app-sidebar ul li { margin-bottom: 6px; }
.app-sidebar ul li a {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--ynr-ink);
    font-weight: 500; font-size: 15px;
    padding: 12px 14px; border-radius: 14px;
    transition: all .25s;
}
.app-sidebar ul li a:hover {
    background: rgba(255,107,0,.08); color: var(--ynr-orange);
    transform: translateX(4px);
}
