/**
 * Módulo: ACB Contacto Flutuante
 * Estilos dos botões flutuantes
 */

.acb-contacto-flutuante {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.acb-botao-flutuante {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    text-decoration: none !important;
    color: white !important;
    cursor: pointer;
}

.acb-botao-flutuante:hover {
    transform: scale(1.1);
    color: white !important;
    text-decoration: none !important;
}

.acb-botao-flutuante:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.acb-botao-whatsapp {
    background-color: #25D366;
}

.acb-botao-whatsapp:hover {
    background-color: #1ebe5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.acb-botao-email {
    background-color: #0084ff;
}

.acb-botao-email:hover {
    background-color: #0066cc;
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.5);
}

.acb-icone-svg {
    display: block;
    pointer-events: none;
}

/* Popup ao passar com o rato */
.acb-popup-texto {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.acb-popup-texto::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-left: 6px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.acb-botao-flutuante:hover .acb-popup-texto {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Animação de pulsação no WhatsApp para chamar atenção */
.acb-botao-whatsapp::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.5;
    animation: acb-pulsar 2s infinite;
    z-index: -1;
    top: 0;
    left: 0;
}

@keyframes acb-pulsar {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Telemóvel: botões mais pequenos e sem popup */
@media (max-width: 768px) {
    .acb-contacto-flutuante {
        bottom: 75px;
        right: 15px;
        gap: 10px;
    }

    .acb-botao-flutuante {
        width: 55px;
        height: 55px;
    }

    .acb-popup-texto {
        display: none;
    }
}
