/* css/whatsapp.css */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Maior que o footer */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    width: 200px;
    border-radius: 50px;
}

.whatsapp-float .content {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
}

.whatsapp-float .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.whatsapp-float .text {
    color: white;
    font-weight: 600;
    font-size: 16px;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    white-space: nowrap;
    margin-left: 0;
}

.whatsapp-float:hover .text {
    opacity: 1;
    width: 120px;
    margin-left: 10px;
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
}

.whatsapp-float path {
    fill: white;
}

/* Animação de pulsar suavizada */
@keyframes gentle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.whatsapp-float {
    animation: gentle-pulse 3s infinite ease-in-out;
}

.whatsapp-float:hover {
    animation: none;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float:hover {
        width: 170px;
    }
    
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
    
    .whatsapp-float .text {
        font-size: 14px;
    }
    
    .whatsapp-float:hover .text {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-float:hover {
        width: 150px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-float:hover .text {
        width: 85px;
        font-size: 13px;
    }
}