/*
 * Alygen Orb Frontend Styles
 */

/* Container principal */
#alygen-orb {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease-out;
    outline: none;
    border: none;
    box-sizing: border-box;
}

/* Estilo base do orb */
.alygen-orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease-out;
    outline: none;
    border: none;
    box-sizing: border-box;
}

/* Efeitos */

/* Frosted Glass Effect */
.alygen-orb.has-frosted-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    -ms-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transform: translate3d(-50%, -50%, 0);
    will-change: transform, backdrop-filter;
}

/* Fallback para navegadores sem suporte a backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .alygen-orb.has-frosted-glass {
        background: rgba(255, 255, 255, 0.8) !important;
        filter: blur(2px);
    }
}

/* Pulse Effect */
.alygen-orb.pulse-effect {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Rotation Effect */
.alygen-orb.rotation-effect {
    animation: rotation-animation 20s linear infinite;
}

@keyframes rotation-animation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mirror Effect */
.alygen-orb.mirror-effect {
    transform: translate(-50%, -50%) scaleX(-1);
}

/* Wave Effect */
.alygen-orb.wave-effect {
    animation: wave-animation 3s ease-in-out infinite;
}

@keyframes wave-animation {
    0%, 100% {
        border-radius: 50%;
    }
    25% {
        border-radius: 45% 55% 40% 60% / 50% 45% 55% 50%;
    }
    50% {
        border-radius: 40% 60% 50% 50% / 45% 55% 45% 55%;
    }
    75% {
        border-radius: 55% 45% 60% 40% / 55% 50% 50% 45%;
    }
}

/* Trail Effect */
.alygen-orb-trail {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center;
    will-change: transform, opacity;
    transition: all 0.5s ease-out;
    mix-blend-mode: screen;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -ms-filter: blur(5px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .alygen-orb {
        transition: all 0.2s ease-out;
    }
}

/* Performance Optimizations */
.alygen-orb {
    will-change: transform, width, height, background;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Presets */

/* Metallic Preset */
.alygen-orb.metallic-preset {
    /* Estilos específicos para o preset metálico serão aplicados via JavaScript */
}

/* Neon Preset */
.alygen-orb.neon-preset {
    /* Estilos específicos para o preset neon serão aplicados via JavaScript */
}

/* Glass Preset */
.alygen-orb.glass-preset {
    /* Estilos específicos para o preset glass serão aplicados via JavaScript */
}

/* Helper classes for dynamic effects */
.alygen-orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}
