/* ============================================
   WHATSAPP FLOAT BUTTON
   Mobile: LEFT side
   Desktop: RIGHT side
   ============================================ */

/* ============================================
   HAMBURGER FLOAT BUTTON (Mobile Only)
   ============================================ */
.hamburger-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: block !important;
    animation: fadeInUp 0.6s ease-out;
}

.hamburger-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2DAAED 0%, #1a8bc7 100%);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(45, 170, 237, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hamburger-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(45, 170, 237, 0.6);
}

.hamburger-float-btn:active {
    transform: scale(0.95);
}

.hamburger-float-btn svg {
    width: 28px;
    height: 28px;
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .hamburger-float {
        display: none !important;
    }
}

/* Mobile WhatsApp Button (Left Side) */
.whatsapp-float-mobile {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: block !important;
    animation: fadeInUp 0.6s ease-out;
}

/* Desktop WhatsApp Button (Right Side) */
.whatsapp-float-desktop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn:active {
    transform: scale(0.95);
}

.whatsapp-float-btn svg {
    width: 32px;
    height: 32px;
}

/* Pulse animation - DISABLED FOR SCROLL PERFORMANCE */
@keyframes pulse-whatsapp {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7);
    }
}

/* Disabled: causes scroll lag */
.whatsapp-float-btn.pulse {
    /* animation: pulse-whatsapp 2s infinite; - DISABLED */
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* Tooltip for desktop */
.whatsapp-float-desktop .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #128C7E;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.whatsapp-float-desktop .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #128C7E;
}

.whatsapp-float-desktop:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Mobile only (Left side) */
@media (max-width: 767px) {
    .whatsapp-float-mobile {
        display: block !important;
        bottom: calc(24px + env(safe-area-inset-bottom));
        left: 24px;
    }

    .whatsapp-float-desktop {
        display: none !important;
    }
    
    .hamburger-float {
        display: block !important;
        bottom: calc(24px + env(safe-area-inset-bottom));
        right: 24px;
    }
}

/* Desktop only (Right side) */
@media (min-width: 768px) {
    .whatsapp-float-mobile {
        display: none !important;
    }

    .whatsapp-float-desktop {
        display: block !important;
    }

    .whatsapp-float-btn {
        width: 64px;
        height: 64px;
    }

    .whatsapp-float-btn svg {
        width: 36px;
        height: 36px;
    }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}