/* ============================================================
   [2] BUTTONS CSS - TOMBOL LIVING STYLE
   Efek: 3D, Top Blur, Shine, Green Neon on Press
   ============================================================ */

/* [2.1] BASE TOMBOL LIVING */
.btn-living {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    will-change: transform, box-shadow, border-color;

    /* Border asimetris */
    border-left: 1px solid rgba(255,215,0,0.5);
    border-right: 1px solid rgba(255,215,0,0.5);
    border-top: 2px solid rgba(255,255,255,0.4);
    border-bottom: 3px solid var(--gold-dark);

    /* Efek 3D dasar */
    box-shadow:
        0 6px 0 var(--gold-dark),
        0 8px 15px rgba(0,0,0,0.6),
        0 0 10px rgba(255,215,0,0.3);

    /* Animasi idle */
    animation: idlePulse 3s ease-in-out infinite;
}

/* [2.2] TOP BLUR - Cahaya dari Atas */
.btn-living::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.35) 0%,
        rgba(255,255,255,0.08) 55%,
        transparent 100%);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
    z-index: 3;
}

/* [2.3] SHINE SWEEP - Kilau Lewat */
.btn-living::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent);
    transform: skewX(-20deg);
    animation: shineSweep 4s infinite;
    z-index: 4;
    pointer-events: none;
}

/* [2.4] GAMBAR DI DALAM TOMBOL */
.btn-living img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

/* [2.5] HOVER - Desktop Only */
@media (hover: hover) {
    .btn-living:hover {
        transform: translateY(-4px);
        box-shadow:
            0 10px 0 var(--gold-dark),
            0 14px 25px rgba(0,0,0,0.8),
            0 0 35px rgba(255,215,0,0.7);
    }
}

/* [2.6] GREEN NEON ON PRESS - Saat Ditekan */
.btn-living:active {
    transform: translateY(4px) scale(0.98);
    border-color: var(--green-neon);
    box-shadow:
        0 0 20px var(--green-neon),
        0 0 40px rgba(0,255,136,0.6),
        0 0 60px rgba(0,255,136,0.4),
        inset 0 0 25px rgba(0,255,136,0.5),
        0 2px 0 #004422;
    animation: none;
}

/* [2.7] UKURAN TOMBOL FORMART - Besar */
.btn-formart-living {
    width: 85%;
    max-width: 420px;
}
.btn-formart-living img {
    border-radius: 18px;
}

/* [2.8] UKURAN TOMBOL MENU - Kecil */
.btn-menu-living {
    width: 30%;
    min-width: 90px;
    max-width: 180px;
}
.btn-menu-living img {
    border-radius: 15px;
}

/* [2.9] UKURAN TOMBOL KARAKTER AIGO - Medium */
.btn-char-living {
    width: 100%;
    border-radius: 18px;
}
.btn-char-living img {
    border-radius: 15px;
}

/* [2.10] UKURAN TOMBOL GROUP AIGO - Lebar */
.btn-group-living {
    width: 100%;
    border-radius: 20px;
}
.btn-group-living img {
    border-radius: 18px;
}

/* [2.11] KEYFRAMES */
@keyframes idlePulse {
    0%, 100% {
        box-shadow:
            0 6px 0 var(--gold-dark),
            0 8px 15px rgba(0,0,0,0.6),
            0 0 10px rgba(255,215,0,0.3);
    }
    50% {
        box-shadow:
            0 6px 0 var(--gold-dark),
            0 8px 15px rgba(0,0,0,0.6),
            0 0 28px rgba(255,215,0,0.7);
    }
}

@keyframes shineSweep {
    0% { left: -100%; }
    20%, 100% { left: 200%; }
}

/* [2.12] RESPONSIVE HP */
@media (max-width: 480px) {
    .btn-formart-living { width: 95%; }
    .btn-menu-living { min-width: 80px; }
    .btn-living::after { animation: shineSweep 6s infinite; }
    .btn-living { animation: idlePulse 4s ease-in-out infinite; }
}