/* ======================================
   POPUP OVERLAY - Smooth Fade
====================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;

    /* start state */
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s ease;
}

/* overlay muncul */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ======================================
   POPUP BOX - Smooth Scale Fade
====================================== */
.popup-box {
    width: 92%;
    max-width: 520px;
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 28px 35px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.25);

    /* start state (hidden) */
    transform: scale(0.85);
    opacity: 0;

    /* smooth animation */
    transition: transform .5s ease, opacity .5s ease;
}

/* Saat overlay aktif → popup muncul smooth */
.popup-overlay.show .popup-box {
    transform: scale(1);
    opacity: 1;
}

/* ======================================
   CLOSE BUTTON
====================================== */
.close-popup {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    transition: .2s ease;
}
.close-popup:hover {
    color: #ff7070;
}

/* ======================================
   GAMBAR
====================================== */
.popup-img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* ======================================
   JUDUL
====================================== */
.popup-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #eaeaea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
}

/* ======================================
   DESKRIPSI
====================================== */
.popup-desc {
    font-size: 17px;
    color: #f4f4f4;
    line-height: 1.6;
    margin-top: 10px;
}

/* ======================================
   TOMBOL
====================================== */
.popup-btn {
    display: inline-block;
    padding: 14px 34px;
    margin-top: 22px;
    background: linear-gradient(135deg, #007bff, #00c8ff);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.35);
    transition: 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 153, 255, 0.50);
}

/* ======================================
   DISABLE BODY SCROLL
====================================== */
.noscroll {
    overflow: hidden;
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 480px) {
    .popup-box {
        padding: 24px 22px;
    }
    .popup-title {
        font-size: 22px;
    }
    .popup-desc {
        font-size: 15px;
    }
    .popup-btn {
        padding: 12px 26px;
        font-size: 15px;
    }
}
