/* Animations for Slovko — respects prefers-reduced-motion */

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-120px) rotate(15deg); }
}

@keyframes float-slow {
    0% { transform: translateY(100vh) rotate(0deg); }
    50% { transform: translateY(50vh) rotate(-10deg); }
    100% { transform: translateY(-120px) rotate(10deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pop-out {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes slide-up {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slide-in-right {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes confetti-fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

@keyframes star-spin {
    0% { transform: rotate(0deg) scale(0); opacity: 0; }
    50% { transform: rotate(180deg) scale(1.5); opacity: 1; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

@keyframes balloon-pop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes check-mark {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

/* Animation classes */
.animate-bounce { animation: bounce 0.6s ease; }
.animate-pulse { animation: pulse 1s ease infinite; }
.animate-float { animation: float 6s ease-in-out; }
.animate-sparkle { animation: sparkle 1.5s ease infinite; }
.animate-shake { animation: shake 0.5s ease; }
.animate-pop-in { animation: pop-in 0.4s ease forwards; }
.animate-pop-out { animation: pop-out 0.3s ease forwards; }
.animate-slide-up { animation: slide-up 0.5s ease forwards; }
.animate-slide-in-right { animation: slide-in-right 0.5s ease forwards; }
.animate-star-spin { animation: star-spin 0.8s ease forwards; }
.animate-balloon-pop { animation: balloon-pop 0.3s ease forwards; }

/* Staggered animations for grid items */
.animate-stagger > :nth-child(1) { animation-delay: 0ms; }
.animate-stagger > :nth-child(2) { animation-delay: 50ms; }
.animate-stagger > :nth-child(3) { animation-delay: 100ms; }
.animate-stagger > :nth-child(4) { animation-delay: 150ms; }
.animate-stagger > :nth-child(5) { animation-delay: 200ms; }
.animate-stagger > :nth-child(6) { animation-delay: 250ms; }
.animate-stagger > :nth-child(7) { animation-delay: 300ms; }
.animate-stagger > :nth-child(8) { animation-delay: 350ms; }
.animate-stagger > :nth-child(9) { animation-delay: 400ms; }
.animate-stagger > :nth-child(10) { animation-delay: 450ms; }

/* Confetti particles */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall 3s ease-in forwards;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-float,
    .animate-pulse,
    .animate-sparkle {
        animation: none !important;
    }
}
