/* public/assets/css/whatsapp-float.css */

.whatsapp-float-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 1060; /* Sits slightly below back-to-top z-index of 1070 if they overlap, or beside it */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    pointer-events: none;
}

/* Permitir cliques apenas nos elementos filhos */
.whatsapp-float-container * {
    pointer-events: auto;
}

/* O Botão Flutuante */
.whatsapp-float-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.whatsapp-float-btn i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

/* Hover e Efeitos de Foco */
.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn:hover i {
    transform: rotate(10deg);
}

/* Animação de Pulso (Ripple Effect) */
.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: whatsapp-pulse-anim 2s infinite;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

@keyframes whatsapp-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Balão de Mensagem (Tooltip) */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 32px 12px 14px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(20px);
    opacity: 0;
    pointer-events: none;
}

.whatsapp-tooltip.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Botão Fechar no Balão */
.whatsapp-tooltip-close {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.1rem;
    color: #a1a1aa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
}

.whatsapp-tooltip-close:hover {
    color: #ef4444;
}

/* Conteúdo do Balão */
.whatsapp-tooltip-content {
    display: flex;
    flex-direction: column;
}

.whatsapp-tooltip-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #128C7E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.whatsapp-tooltip-message {
    font-size: 0.85rem;
    color: #3f3f46;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

/* Seta do Balão */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: calc(50% - 6px);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
    display: block;
    width: 0;
    z-index: 1;
}

/* Responsividade */
@media (max-width: 576px) {
    .whatsapp-float-container {
        bottom: 84px;
        right: 16px;
    }
    
    .whatsapp-tooltip {
        width: 190px;
        right: 64px;
        padding: 8px 24px 8px 10px;
    }
    
    .whatsapp-tooltip-message {
        font-size: 0.8rem;
    }
}
