/* ═══════════════════════════════════════════════════════════════════════════
   AutomateWin WebUI — EFFECTS LIBRARY
   🦎 Chameleon Daily Morphing — Effet du jour sélectionné automatiquement
   
   Ce fichier contient des effets visuels avancés que le Caméléon peut
   activer/désactiver/combiner chaque jour pour un look unique.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   EFFECT 1: FLOATING PARTICLES
   Particules lumineuses qui flottent en arrière-plan
   ═══════════════════════════════════════════════════════════════ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 2: ANIMATED GRADIENT BACKGROUND
   Fond dégradé qui bouge lentement
   ═══════════════════════════════════════════════════════════════ */
.bg-gradient-animated {
    background: linear-gradient(-45deg,
            var(--bg-main),
            var(--bg-secondary),
            color-mix(in srgb, var(--accent) 10%, var(--bg-main)),
            var(--bg-main));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 3: GLOW PULSE ON ACCENT ELEMENTS
   Lueur pulsante sur les éléments accentués
   ═══════════════════════════════════════════════════════════════ */
.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--accent-glow),
            0 0 10px var(--accent-glow),
            0 0 20px transparent;
    }

    50% {
        box-shadow: 0 0 10px var(--accent-glow),
            0 0 25px var(--accent-glow),
            0 0 50px var(--accent-glow);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 4: WAVE ANIMATION (Bottom)
   Vagues animées en bas de page
   ═══════════════════════════════════════════════════════════════ */
.wave-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: var(--accent);
    opacity: 0.03;
    border-radius: 45% 48% 50% 47%;
    animation: waveMotion 8s ease-in-out infinite;
}

.wave:nth-child(2) {
    opacity: 0.02;
    animation-duration: 12s;
    animation-delay: -3s;
    border-radius: 48% 45% 47% 50%;
}

.wave:nth-child(3) {
    opacity: 0.015;
    animation-duration: 16s;
    animation-delay: -6s;
    border-radius: 47% 50% 45% 48%;
}

@keyframes waveMotion {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(2%) rotate(1deg);
    }

    50% {
        transform: translateX(-2%) rotate(-0.5deg);
    }

    75% {
        transform: translateX(1%) rotate(0.5deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 5: CARD TILT ON HOVER (3D Perspective)
   Les cartes s'inclinent en 3D au survol
   ═══════════════════════════════════════════════════════════════ */
.tilt-card {
    perspective: 800px;
    transform-style: preserve-3d;
}

.tilt-card:hover {
    transform: rotateY(2deg) rotateX(-2deg) translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 6: TEXT SHIMMER
   Texte avec effet de brillance qui passe
   ═══════════════════════════════════════════════════════════════ */
.text-shimmer {
    background: linear-gradient(120deg,
            var(--fg-primary) 0%,
            var(--accent) 25%,
            var(--fg-primary) 50%,
            var(--accent) 75%,
            var(--fg-primary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 7: STAGGER ENTRANCE
   Les éléments apparaissent l'un après l'autre
   ═══════════════════════════════════════════════════════════════ */
.stagger-in>* {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.5s ease-out forwards;
}

.stagger-in>*:nth-child(1) {
    animation-delay: 0.05s;
}

.stagger-in>*:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-in>*:nth-child(3) {
    animation-delay: 0.15s;
}

.stagger-in>*:nth-child(4) {
    animation-delay: 0.2s;
}

.stagger-in>*:nth-child(5) {
    animation-delay: 0.25s;
}

.stagger-in>*:nth-child(6) {
    animation-delay: 0.3s;
}

.stagger-in>*:nth-child(7) {
    animation-delay: 0.35s;
}

.stagger-in>*:nth-child(8) {
    animation-delay: 0.4s;
}

.stagger-in>*:nth-child(9) {
    animation-delay: 0.45s;
}

.stagger-in>*:nth-child(10) {
    animation-delay: 0.5s;
}

.stagger-in>*:nth-child(11) {
    animation-delay: 0.55s;
}

.stagger-in>*:nth-child(12) {
    animation-delay: 0.6s;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 8: AURORA BACKGROUND
   Aurore boréale animée en arrière-plan
   ═══════════════════════════════════════════════════════════════ */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.08;
    animation: auroraDrift 20s ease-in-out infinite;
}

.aurora-blob:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -10%;
    left: 20%;
}

.aurora-blob:nth-child(2) {
    width: 300px;
    height: 300px;
    background: var(--success);
    top: 30%;
    right: -5%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.aurora-blob:nth-child(3) {
    width: 350px;
    height: 350px;
    background: var(--accent-hover);
    bottom: -10%;
    left: 40%;
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes auroraDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(60px, 30px) scale(1.1);
    }

    50% {
        transform: translate(-40px, 60px) scale(0.9);
    }

    75% {
        transform: translate(30px, -40px) scale(1.05);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 9: GLASS MORPHISM ENHANCED
   Glassmorphism plus prononcé avec reflets
   ═══════════════════════════════════════════════════════════════ */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 10: MAGNETIC BUTTON
   Bouton qui suit légèrement le curseur
   ═══════════════════════════════════════════════════════════════ */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* (Needs JS for full magnetic effect — see effects.js) */

/* ═══════════════════════════════════════════════════════════════
   EFFECT 11: NOISE TEXTURE OVERLAY
   Texture noise subtile pour un look premium
   ═══════════════════════════════════════════════════════════════ */
.noise-overlay::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 12: SCROLL REVEAL
   Éléments qui apparaissent au scroll
   ═══════════════════════════════════════════════════════════════ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 13: ICON BOUNCE ON HOVER
   Icônes qui rebondissent au hover
   ═══════════════════════════════════════════════════════════════ */
.bounce-icon:hover svg,
.bounce-icon:hover .feature-emoji {
    animation: iconBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes iconBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(-4px);
    }

    70% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 14: TYPING CURSOR
   Curseur de frappe clignotant (pour le transcript)
   ═══════════════════════════════════════════════════════════════ */
.typing-cursor::after {
    content: '▊';
    animation: cursorBlink 1s step-end infinite;
    color: var(--accent);
    font-weight: 100;
    margin-left: 2px;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 15: RAINBOW BORDER
   Bordure arc-en-ciel animée
   ═══════════════════════════════════════════════════════════════ */
.rainbow-border {
    position: relative;
    overflow: hidden;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: conic-gradient(from 0deg,
            #ff0040, #ff8000, #ffff00, #00ff40,
            #00ffff, #0040ff, #8000ff, #ff0080,
            #ff0040);
    border-radius: inherit;
    z-index: -1;
    animation: rainbowSpin 4s linear infinite;
}

.rainbow-border::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-main);
    border-radius: inherit;
    z-index: -1;
}

@keyframes rainbowSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 16: TRON GRID BACKGROUND
   Grille animée style Tron en arrière-plan
   ═══════════════════════════════════════════════════════════════ */
.tron-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: tronPulse 8s ease-in-out infinite;
}

.tron-grid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(0deg, rgba(0, 212, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.tron-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(108, 92, 231, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
    animation: tronGlow 12s ease-in-out infinite alternate;
}

@keyframes tronPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes tronGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 17: ANIMATED STAT VALUES
   Chiffres avec glow pulsant
   ═══════════════════════════════════════════════════════════════ */
.stat-value-glow {
    text-shadow: 0 0 10px currentColor;
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {

    0%,
    100% {
        text-shadow: 0 0 6px rgba(0, 212, 255, 0.2);
    }

    50% {
        text-shadow: 0 0 16px rgba(0, 212, 255, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 18: CARD EDGE GLOW
   Bordure glow animée sur les cards au hover
   ═══════════════════════════════════════════════════════════════ */
.card-edge-glow {
    position: relative;
}

.card-edge-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: conic-gradient(from var(--edge-angle, 0deg),
            rgba(0, 212, 255, 0) 0%,
            rgba(0, 212, 255, 0.5) 10%,
            rgba(0, 212, 255, 0) 20%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: edgeSpin 4s linear infinite;
}

.card-edge-glow:hover::before {
    opacity: 1;
}

@keyframes edgeSpin {
    to {
        --edge-angle: 360deg;
    }
}

@property --edge-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 19: HEX SCAN ON VOICE HERO
   Scan hexagonal sur le pulse vocal
   ═══════════════════════════════════════════════════════════════ */
.hex-scan {
    position: relative;
}

.hex-scan::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 2px;
    left: -50%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 212, 255, 0.6) 40%,
            rgba(0, 212, 255, 0.8) 50%,
            rgba(0, 212, 255, 0.6) 60%,
            transparent 100%);
    animation: hexScan 4s ease-in-out infinite;
    pointer-events: none;
    filter: blur(1px);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

@keyframes hexScan {

    0%,
    100% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    95% {
        opacity: 0;
        top: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EFFECT 20: HOLOGRAPHIC CARD SHIMMER
   Effet holographique sur les cards modules
   ═══════════════════════════════════════════════════════════════ */
.holo-shimmer {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(0, 212, 255, 0.04) 25%,
            rgba(108, 92, 231, 0.04) 50%,
            rgba(0, 255, 136, 0.03) 75%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 300% 300%;
    animation: holoShift 6s ease-in-out infinite;
}

@keyframes holoShift {

    0%,
    100% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}