/* Botão de WhatsApp Fixo */
.whatsapp-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3) !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

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

.whatsapp-button i {
    font-size: 28px;
    color: white;
    transition: all 0.3s ease;
}

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

/* Tooltip do botão */
.whatsapp-button::before {
    content: "Fale conosco no WhatsApp";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-button::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(0, 0, 0, 0.8);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-button:hover::before,
.whatsapp-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Animação de pulso */
.whatsapp-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button i {
        font-size: 24px;
    }
    
    .whatsapp-button::before {
        display: none;
    }
    
    .whatsapp-button::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button i {
        font-size: 22px;
    }
}

/* Garantir que o botão fique acima de outros elementos */
.whatsapp-button {
    z-index: 9999 !important;
}

/* Efeito de entrada suave */
.whatsapp-button {
    animation: whatsapp-entrance 0.6s ease-out;
}

@keyframes whatsapp-entrance {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Estilo para quando o botão está sendo pressionado */
.whatsapp-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* Melhorar acessibilidade */
.whatsapp-button[aria-label] {
    position: relative;
}

/* Garantir que o botão seja visível em temas escuros */
@media (prefers-color-scheme: dark) {
    .whatsapp-button::before {
        background: rgba(255, 255, 255, 0.9);
        color: #333;
    }
    
    .whatsapp-button::after {
        border-left-color: rgba(255, 255, 255, 0.9);
    }
}

