/**
 * WhatsApp Floating Button
 * Botão flutuante de contato via WhatsApp
 */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: all var(--duration-normal) var(--ease-smooth);
    
    /* Oculto inicialmente - aparece após scroll */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

/* Estado visível após scroll */
.whatsapp-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: translateY(-2px) scale(1.02);
}

.whatsapp-button svg {
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.whatsapp-button:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Animação de pulse sutil */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-button svg {
        width: 26px;
        height: 26px;
    }
}

/* Garantir touch-friendly no mobile */
.device-mobile .whatsapp-button {
    min-width: 50px;
    min-height: 50px;
}
