/* =====================================================
   GLOBAL COMPONENTS
   Floating Button & Back to Top
   
   Used across:
   - index.html (Home)
   - menu.html
   - reservasi.html
   - contact.html
   
   This file is the single source of truth for:
   - .floating-actions
   - .whatsapp-floating, .call-floating
   - .back-to-top
   
   All colors use global semantic variables from style.css
===================================================== */

/* =====================================================
   FLOATING BUTTON
===================================================== */

.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
}

.whatsapp-floating,
.call-floating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    box-sizing: border-box;
    color: var(--color-text-light);
    backdrop-filter: blur(8px);
}

.whatsapp-floating:hover,
.call-floating:hover {
    transform: translateY(-3px);
}

.whatsapp-floating:hover {
    background: var(--color-secondary-light);
}

.call-floating:hover {
    background: rgba(255,255,255,.2);
}

/* Mobile Responsive */
@media(max-width:480px) {
    .floating-actions {
        right: 15px;
        bottom: 20px;
    }

    .whatsapp-floating,
    .call-floating {
        padding: 12px 18px;
        font-size: 12px;
        font-weight: 700;
    }
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 190px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-secondary-light);
    color: var(--color-primary-dark);
}

.back-to-top:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Mobile Responsive */
@media(max-width:480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 120px;
    }
}