/**
 * Estilos do Frontend
 * SOS Floating Image Plugin
 * 
 * @author SOS Pedagógico - https://sospedagogico.com
 */

/* Container Principal */
.sos-floating-image-container {
    position: fixed;
    z-index: 999999;
    transition: all 0.3s ease;
}

/* Link */
.sos-floating-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sos-floating-link:hover {
    transform: scale(1.05);
}

.sos-floating-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Imagem */
.sos-floating-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: none;
    transition: all 0.3s ease;
}

.sos-floating-link:hover .sos-floating-img {
    box-shadow: none;
    transform: scale(1.05);
}

/* Posicionamento - Os estilos são aplicados inline via PHP para permitir valores personalizados */

/* Animações */
@keyframes sosPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes sosBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes sosShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes sosSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Aplicar Animações */
.sos-animation-pulse {
    animation: sosPulse 2s ease-in-out infinite;
}

.sos-animation-bounce {
    animation: sosBounce 2s ease-in-out infinite;
}

.sos-animation-shake {
    animation: sosShake 1.5s ease-in-out infinite;
}

.sos-animation-swing {
    animation: sosSwing 2s ease-in-out infinite;
}

/* Ocultar em Mobile (se configurado) */
@media (max-width: 768px) {
    .sos-hide-mobile {
        display: none !important;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .sos-floating-image-container,
    .sos-floating-link,
    .sos-floating-img {
        animation: none !important;
        transition: none !important;
    }
}

/* Print */
@media print {
    .sos-floating-image-container {
        display: none !important;
    }
}
