/* ============================================
   WHATSAPP FLOATING WIDGET
   ============================================ */

.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.whatsapp-button:hover::before {
    width: 100%;
    height: 100%;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    position: relative;
    z-index: 1;
}

.whatsapp-tooltip {
    background: #25D366;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    position: relative;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #25D366;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s infinite;
    opacity: 0.6;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .whatsapp-button {
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .whatsapp-widget:hover .whatsapp-tooltip {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 480px) {
    .whatsapp-widget {
        bottom: 12px;
        right: 12px;
    }
    
    .whatsapp-button {
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Animation for initial appearance */
@keyframes whatsappFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-widget {
    animation: whatsappFadeIn 0.5s ease-out;
}

/* Ensure widget is above other elements */
.whatsapp-widget {
    z-index: 9999;
}

/* Accessibility */
.whatsapp-button:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-button,
    .whatsapp-tooltip,
    .whatsapp-pulse {
        transition: none;
        animation: none;
    }
    
    .whatsapp-widget {
        animation: none;
    }
}



