/* WhatsApp Float Redirect Plugin - Frontend Styles */

.wfr-float-button {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    font-weight: 600;
    max-width: 300px;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wfr-float-button:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.wfr-float-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.wfr-float-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3), 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* Posicionamento */
.wfr-position-bottom-right {
    bottom: 25px;
    right: 25px;
}

.wfr-position-bottom-left {
    bottom: 25px;
    left: 25px;
}

.wfr-position-top-right {
    top: 25px;
    right: 25px;
}

.wfr-position-top-left {
    top: 25px;
    left: 25px;
}

/* Ícone do WhatsApp */
.wfr-whatsapp-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Texto do botão */
.wfr-button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

/* Animação de entrada */
@keyframes wfrFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wfr-float-button {
    animation: wfrFadeInUp 0.6s ease-out;
}

/* Efeito de pulso sutil */
@keyframes wfrPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    }
}

.wfr-float-button {
    animation: wfrFadeInUp 0.6s ease-out, wfrPulse 3s ease-in-out infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .wfr-float-button {
        padding: 12px 20px;
        font-size: 14px;
        max-width: 250px;
        border-radius: 40px;
    }
    
    .wfr-whatsapp-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .wfr-position-bottom-right,
    .wfr-position-bottom-left {
        bottom: 20px;
    }
    
    .wfr-position-bottom-right {
        right: 20px;
    }
    
    .wfr-position-bottom-left {
        left: 20px;
    }
    
    .wfr-position-top-right,
    .wfr-position-top-left {
        top: 20px;
    }
    
    .wfr-position-top-right {
        right: 20px;
    }
    
    .wfr-position-top-left {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .wfr-float-button {
        padding: 10px 16px;
        font-size: 13px;
        max-width: 200px;
        border-radius: 35px;
    }
    
    .wfr-whatsapp-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .wfr-position-bottom-right,
    .wfr-position-bottom-left,
    .wfr-position-top-right,
    .wfr-position-top-left {
        bottom: 15px;
        right: 15px;
        left: auto;
        top: auto;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    .wfr-float-button {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    
    .wfr-float-button:hover {
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .wfr-float-button {
        animation: none;
        transition: none;
    }
    
    .wfr-float-button:hover {
        transform: none;
    }
}

