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

#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; }

/* ── 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);
}


/* ── 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); }
}

/* ── 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);
}

/* ── v3.30 ───────────────────────────────── */
/* Foco visível para navegação por teclado (acessibilidade) */
#wa-button:focus { outline: none; }
#wa-button:focus-visible .wa-button-content,
.wa-shortcode-button .wa-button-content:focus-visible {
    outline: 3px solid #1d4ed8; outline-offset: 3px;
}

/* Respeita "reduzir movimento" do sistema */
@media (prefers-reduced-motion: reduce) {
    #wa-button, #wa-button .wa-button-content, .wa-shortcode-button .wa-button-content { transition: none !important; }
    #wa-button.wa-anim-pulse .wa-button-content::after { animation: none !important; }
}

/* Safe-area (iPhone com notch / barra de gestos) */
@supports (bottom: env(safe-area-inset-bottom)) {
    #wa-button.wa-bottom-right { bottom: calc(24px + env(safe-area-inset-bottom)); }
}
