/* public/css/menu.css */

/* Tampilkan burger hanya ketika body is-unlocked (Setelah LET'S OPEN diklik) */
body.is-unlocked .menu-burger-container {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    transform: translateY(0);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    visibility: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    pointer-events: none;
}

.menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
}

.menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.menu-overlay.active .menu-backdrop {
    opacity: 1;
}

/* Wrapper Utama */
.menu-content-wrapper {
    position: relative;
    z-index: 9999;
    width: 100%;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.menu-overlay.active .menu-content-wrapper {
    transform: translateX(0);
}

/* 1. Panel Utama (Dibuat Transparan) */
.menu-panel {
    width: 100%;
    height: auto;
    /* Kita biarkan tinggi mengikuti konten (fit-content) agar tidak memaksa scroll */
    background: transparent;
    border-radius: 40px;
    /* Padding diperkecil (Atas 60px, Kanan/Kiri 40px, Bawah 20px) */
    padding: 60px 40px 20px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    /* Sembunyikan scrollbar secara total */
    overflow: hidden;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
}

.menu-panel::-webkit-scrollbar {
    display: none;
}

/* Close Button Pill - Glassmorphism minimalis */
.close-pill {
    position: absolute;
    top: 20px;
    right: 35px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Menu Items - Diubah ke putih agar terlihat jelas di atas backdrop */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Jarak antar menu dipersempit */
    margin-bottom: 20px;
}

.menu-item {
    font-family: 'Cormorant Garamond', serif;
    /* Ukuran font dikurangi dari 44px ke 32px agar lebih proporsional */
    font-size: 32px;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
    font-weight: 300;
    transition: all 0.3s ease;
}

.menu-item:hover {
    opacity: 0.6;
    padding-left: 10px;
    /* Efek geser yang lebih subtle */
}

.menu-instruction {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    max-width: 250px;
    margin-top: 10px;
}

/* 2. Action Bar (Dibuat Transparan) */
.menu-action-bar {
    display: flex;
    align-items: center;
    background: transparent;
    /* TRANSPARAN TOTAL */
    padding: 6px 6px 6px 25px;
    border-radius: 20px;
    width: fit-content;
    border: none;
}

.action-btn {
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    /* Warna teks tombol menu putih transparan */
    cursor: pointer;
    padding: 0 12px;
    transition: color 0.3s;
}

.action-btn:hover {
    color: #ffffff;
}

.v-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.2);
    /* Divider putih tipis */
}

.music-toggle-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    margin-left: 10px;
    transition: all 0.3s;
}

.music-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menu Burger Button (Kanan Atas) */
.menu-burger-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.is-opened .menu-burger-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    pointer-events: auto !important;
    background: transparent;
    padding: 10px;
    border-radius: 50%;
    border: none;
    transition: transform 0.3s ease;
}

.menu-burger:hover {
    transform: scale(1.1);
}

.menu-burger .line {
    width: 24px;
    height: 1.5px;
    background: #fff;
}

/* Sembunyikan burger saat menu aktif */
.menu-overlay.active~.menu-burger-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .menu-burger-container {
        top: 20px;
        /* Lebih mepet ke atas sedikit */
        right: 20px;
        /* Lebih mepet ke kanan sedikit */
    }

    .menu-burger {
        padding: 10px;
        /* Perkecil ukuran tombol burger */
    }

    .menu-burger .line {
        width: 20px;
        /* Perpendek garis burger */
    }

    .menu-overlay {
        padding: 15px;
    }

    .menu-content-wrapper {
        max-width: 100%;
    }

    .menu-panel {
        padding: 50px 30px 20px 30px;
        max-height: 80vh;
    }

    .menu-item {
        font-size: 28px;
    }
}