/* ============================================
   BOTÃO WHATSAPP FLUTUANTE - ESTILOS
   ============================================ */

/* Container principal do botão */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Link do WhatsApp */
.whatsapp-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-link:hover {
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.7);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-3px);
}

.whatsapp-link:active {
    transform: scale(0.95);
}

/* Ícone do WhatsApp */
.whatsapp-icon {
    width: 42px;
    height: 42px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.whatsapp-link:hover .whatsapp-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Animação de pulso */
.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Animação de entrada suave */
.whatsapp-float.show {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVO - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-link {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */

/* Foco para navegação por teclado */
.whatsapp-link:focus {
    outline: 3px solid #25D366;
    outline-offset: 4px;
}

/* Reduz animação para usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-link,
    .whatsapp-icon,
    .whatsapp-tooltip {
        transition: none;
    }
    
    .whatsapp-pulse {
        animation: none;
    }
    
    .whatsapp-link:hover .whatsapp-icon {
        transform: none;
    }
}
