/* ============================================
   wpp.css — Botão flutuante do WhatsApp
   Arquivo separado para não poluir o style.css
   ============================================ */

/* ---- Botão principal ---- */
.wpp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;

    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.7rem;
    color: #fff;
    text-decoration: none;

    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);

    /* Animação de entrada */
    animation: wpp-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;

    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

@keyframes wpp-pop-in {
    from {
        opacity: 0;
        transform: scale(0.4) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---- Hover ---- */
.wpp-float:hover {
    background: #1ebe5d;
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* ---- Pulso de atenção (anel verde ao redor) ---- */
.wpp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: wpp-pulse 2.2s ease-out infinite;
}

@keyframes wpp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* ---- Tooltip que aparece no hover ---- */
.wpp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);

    background: #111;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(37, 211, 102, 0.3);

    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Seta do tooltip apontando para a direita */
.wpp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #111;
}

.wpp-float:hover .wpp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---- Responsivo: menor no mobile ---- */
@media (max-width: 480px) {
    .wpp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 1.2rem;
        right: 1.2rem;
    }

    /* Esconder tooltip no mobile (não tem hover) */
    .wpp-tooltip {
        display: none;
    }
}