/* Username effect animations */

/* Spiral effect */
@keyframes spiral {
    0% {
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: hue-rotate(360deg);
    }
}

.spiral {
    animation: spiral 4s linear infinite;
    display: inline-block;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Wave effect */
@keyframes wave {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wave {
    display: inline-block;
}

.wave span {
    display: inline-block;
    animation: wave 1s ease-in-out infinite;
}

.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; }
.wave span:nth-child(6) { animation-delay: 0.5s; }
.wave span:nth-child(7) { animation-delay: 0.6s; }
.wave span:nth-child(8) { animation-delay: 0.7s; }
.wave span:nth-child(9) { animation-delay: 0.8s; }
.wave span:nth-child(10) { animation-delay: 0.9s; }

/* Glitch effect */
@keyframes glitch {
    0% {
        text-shadow: 2px 0 #ff00de, -2px 0 #00ffff;
        transform: translate(0);
    }
    20% {
        text-shadow: -2px 0 #ff00de, 2px 0 #00ffff;
        transform: translate(-2px, 2px);
    }
    40% {
        text-shadow: 2px 0 #ff00de, -2px 0 #00ffff;
        transform: translate(2px, -2px);
    }
    60% {
        text-shadow: -2px 0 #ff00de, 2px 0 #00ffff;
        transform: translate(-2px, 2px);
    }
    80% {
        text-shadow: 2px 0 #ff00de, -2px 0 #00ffff;
        transform: translate(2px, -2px);
    }
    100% {
        text-shadow: 2px 0 #ff00de, -2px 0 #00ffff;
        transform: translate(0);
    }
}

.glitch {
    position: relative;
    animation: glitch 0.5s infinite;
}

/* Neon effect */
@keyframes neon {
    0%, 100% {
        text-shadow: 
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #fff,
            0 0 40px #ff00de,
            0 0 70px #ff00de,
            0 0 80px #ff00de,
            0 0 100px #ff00de;
    }
    50% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 15px #fff,
            0 0 20px #ff00de,
            0 0 35px #ff00de,
            0 0 40px #ff00de,
            0 0 50px #ff00de;
    }
}

.neon {
    color: #fff;
    animation: neon 1.5s ease-in-out infinite;
}

/* Typewriter effect for username/description */
.typewriter-wrapper {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}
.typewriter-text::after {
    content: '_';
    display: inline-block;
    margin-left: 4px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Sparkle effects - GIF overlays */
.sparkle-pink, .sparkle-blue, .sparkle-yellow, .sparkle-green, 
.sparkle-red, .sparkle-white, .sparkle-black {
    position: relative;
    display: inline-block;
}

.sparkle-pink::after,
.sparkle-blue::after,
.sparkle-yellow::after,
.sparkle-green::after,
.sparkle-red::after,
.sparkle-white::after,
.sparkle-black::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sparkle-pink::after { background-image: url('/static/assets/sparkles/pink.gif'); }
.sparkle-blue::after { background-image: url('/static/assets/sparkles/blue.gif'); }
.sparkle-yellow::after { background-image: url('/static/assets/sparkles/yellow.gif'); }
.sparkle-green::after { background-image: url('/static/assets/sparkles/green.gif'); }
.sparkle-red::after { background-image: url('/static/assets/sparkles/red.gif'); }
.sparkle-white::after { background-image: url('/static/assets/sparkles/white.gif'); }
.sparkle-black::after { background-image: url('/static/assets/sparkles/black.gif'); }
