/* WhatsApp Tracker — Frontend CSS v3.0 */

#wa-button {
    position: fixed;
    z-index: 9999;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
}
#wa-button.wa-bottom-right { bottom: 24px; right: 24px; }
#wa-button.wa-bottom-left  { bottom: 24px; left: 24px; }
#wa-button.wa-top-right    { top: 80px; right: 24px; }
#wa-button.wa-top-left     { top: 80px; left: 24px; }

/* Esconder ao rolar */
#wa-button.wa-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }

/* ── Flutuante (circular) ────────────────── */
#wa-button.wa-floating .wa-button-content {
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
    position: relative;
}
#wa-button.wa-floating .wa-button-content:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
}

/* ── Botão com texto ─────────────────────── */
#wa-button.wa-button .wa-button-content {
    padding: 12px 22px; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 9px;
    cursor: pointer; box-shadow: 0 4px 16px rgba(37,211,102,.35);
    transition: transform .2s, box-shadow .2s; font-size: 15px; font-weight: 600;
}
#wa-button.wa-button .wa-button-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37,211,102,.45);
}

/* ── Tooltip ─────────────────────────────── */
.wa-tooltip {
    position: absolute; bottom: calc(100% + 10px);
    left: 50%; transform: translateX(-50%);
    background: rgba(17,24,39,.88); color: #fff;
    font-size: 12px; padding: 5px 10px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .2s;
}
.wa-tooltip::after {
    content: ''; position: absolute;
    top: 100%; left: 50%; transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: rgba(17,24,39,.88);
}
#wa-button.wa-bottom-left .wa-tooltip,
#wa-button.wa-bottom-right .wa-tooltip {
    bottom: calc(100% + 10px); top: auto;
}
#wa-button.wa-top-left .wa-tooltip,
#wa-button.wa-top-right .wa-tooltip {
    top: calc(100% + 10px); bottom: auto;
    transform: translateX(-50%);
}
#wa-button.wa-top-left .wa-tooltip::after,
#wa-button.wa-top-right .wa-tooltip::after {
    top: auto; bottom: 100%;
    border-top-color: transparent; border-bottom-color: rgba(17,24,39,.88);
}
#wa-button:hover .wa-tooltip { opacity: 1; }

/* ── Animações ───────────────────────────── */

/* Pulse */
#wa-button.wa-anim-pulse .wa-button-content::after {
    content: ''; position: absolute; inset: 0;
    border-radius: inherit; background: inherit;
    animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { opacity: .6; transform: scale(1); }
    70%  { opacity: 0;  transform: scale(1.5); }
    100% { opacity: 0;  transform: scale(1.5); }
}

/* Bounce */
#wa-button.wa-anim-bounce { animation: wa-bounce 2.5s ease infinite; }
@keyframes wa-bounce {
    0%, 100%  { transform: translateY(0); }
    10%, 30%  { transform: translateY(-8px); }
    20%       { transform: translateY(-4px); }
    40%       { transform: translateY(0); }
}
/* Garante que o wa-hidden sobrescreve */
#wa-button.wa-anim-bounce.wa-hidden { transform: translateY(120%) !important; animation: none; }

/* Shake */
#wa-button.wa-anim-shake { animation: wa-shake 3s ease infinite; }
@keyframes wa-shake {
    0%, 85%, 100% { transform: rotate(0deg); }
    88% { transform: rotate(-10deg); }
    91% { transform: rotate(10deg); }
    94% { transform: rotate(-7deg); }
    97% { transform: rotate(7deg); }
}
#wa-button.wa-anim-shake.wa-hidden { transform: translateY(120%) !important; animation: none; }

/* ── Shortcode ───────────────────────────── */
.wa-shortcode-button { display: inline-block; }
.wa-shortcode-button .wa-button-content {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 50px; cursor: pointer;
    font-size: 14px; font-weight: 600; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 3px 12px rgba(37,211,102,.3);
}
.wa-shortcode-button .wa-button-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,.4);
}
