/* Animacje świąteczne */

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 25px rgba(201, 75, 75, 0.3),
                    0 0 20px rgba(255, 215, 0, 0.2),
                    inset 0 0 10px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 15px 35px rgba(201, 75, 75, 0.5),
                    0 0 40px rgba(255, 215, 0, 0.4),
                    inset 0 0 20px rgba(255, 215, 0, 0.2);
        transform: translateY(-2px) scale(1.02);
    }
}

@keyframes shake-gift {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-5deg); }
    20%, 40%, 60%, 80% { transform: rotate(5deg); }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Klasy animacji */
.fade-in {
    animation: fade-in var(--transition-normal);
}

.fade-in-up {
    animation: fade-in-up var(--transition-normal);
}

.slide-in-left {
    animation: slide-in-left var(--transition-normal);
}

.bounce {
    animation: bounce 1s infinite;
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

.shake {
    animation: shake-gift 0.5s;
}

/* Snowflake animation */
.snowflake {
    position: absolute;
    top: -10px;
    color: var(--color-snow);
    font-size: 1em;
    opacity: 0.8;
    pointer-events: none;
    animation: snowfall linear infinite;
    z-index: 1000;
}

/* Loading spinner */
@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}
