/**
 * Smart Lead Tracker & WhatsApp CRM - Frontend Styles
 * Botão Flutuante de WhatsApp e Estilos Globais
 */

:root {
    --slt-wa-primary: #25D366;
}

/* Wrapper do Botão Flutuante */
.slt-floating-wa-wrapper {
    position: fixed;
    bottom: 24px;
    z-index: 999998;
    display: flex;
    align-items: center;
}

.slt-floating-wa-wrapper.slt-wa-pos-right {
    right: 24px;
}

.slt-floating-wa-wrapper.slt-wa-pos-left {
    left: 24px;
}

/* Botão Circular Flutuante */
.slt-floating-wa-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--slt-wa-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.slt-floating-wa-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.slt-floating-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slt-floating-wa-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Efeito de Pulso Suave */
.slt-floating-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--slt-wa-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: slt-wa-pulse-animation 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    z-index: 1;
}

@keyframes slt-wa-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip do Botão */
.slt-floating-wa-tooltip {
    position: absolute;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.slt-wa-pos-right .slt-floating-wa-tooltip {
    right: 72px;
}

.slt-wa-pos-left .slt-floating-wa-tooltip {
    left: 72px;
    transform: translateX(-10px);
}

.slt-floating-wa-btn:hover .slt-floating-wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Botão Inline via Shortcode [smart_whatsapp_button] */
.slt-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--slt-wa-primary);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.slt-inline-button:hover {
    background: #1ebd5a;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .slt-floating-wa-wrapper {
        bottom: 18px;
    }
    .slt-floating-wa-wrapper.slt-wa-pos-right {
        right: 18px;
    }
    .slt-floating-wa-wrapper.slt-wa-pos-left {
        left: 18px;
    }
    .slt-floating-wa-btn {
        width: 54px;
        height: 54px;
    }
    .slt-floating-wa-btn svg {
        width: 30px;
        height: 30px;
    }
    .slt-floating-wa-tooltip {
        display: none; /* Em mobile dispensa tooltip para não cobrir tela */
    }
}
