/**
 * EvovE Box - Elementos Flutuantes
 * Estilos para botões flutuantes (WhatsApp, Scroll to Top)
 */

/* Botão WhatsApp Flutuante */
.whatsapp-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    /* Garantir que apareça na posição correta na primeira renderização */
    visibility: visible;
}

.whatsapp-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.whatsapp-toggle span {
    display: none;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .whatsapp-toggle {
        width: auto;
        height: auto;
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        flex-direction: row;
    }
    
    .whatsapp-toggle span {
        display: inline;
    }
}

/* Animação de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Botão Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    /* Garantir que apareça desde o início */
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* Ajuste para desktop - ambos visíveis desde o início */
@media (min-width: 768px) {
    .whatsapp-toggle {
        bottom: 2rem;
        left: 2rem;
    }
    
    .scroll-to-top {
        bottom: 2rem;
        right: 2rem;
    }
}

/* Responsive */
@media (max-width: 575.98px) {
    .whatsapp-toggle {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        /* Garantir que não fique fora da tela */
        max-width: calc(100vw - 3rem);
        max-height: calc(100vh - 3rem);
    }
    
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
        /* Garantir que não fique fora da tela */
        max-width: calc(100vw - 3rem);
        max-height: calc(100vh - 3rem);
    }
}

/* Ajuste para tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
    .whatsapp-toggle {
        bottom: 1.75rem;
        left: 1.75rem;
        /* Garantir que não fique fora da tela */
        max-width: calc(100vw - 3.5rem);
        max-height: calc(100vh - 3.5rem);
    }
    
    .scroll-to-top {
        bottom: 1.75rem;
        right: 1.75rem;
        /* Garantir que não fique fora da tela */
        max-width: calc(100vw - 3.5rem);
        max-height: calc(100vh - 3.5rem);
    }
}

/* Desktop pequeno */
@media (min-width: 768px) and (max-width: 991.98px) {
    .whatsapp-toggle {
        bottom: 2rem;
        left: 2rem;
    }
    
    .scroll-to-top {
        bottom: 2rem;
        right: 2rem;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-toggle,
    .scroll-to-top {
        transition: none;
    }
    
    .whatsapp-toggle::before {
        animation: none;
    }
}

/* Print */
@media print {
    .whatsapp-toggle,
    .scroll-to-top {
        display: none !important;
    }
}

