/* Sparkles Animation - Зеленые летающие искры */
.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: sparkleFloat 8s infinite ease-in-out;
}

.sparkle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
}

/* Разные размеры sparkles */
.sparkle.small {
    width: 3px;
    height: 3px;
    animation-duration: 6s;
}

.sparkle.medium {
    width: 5px;
    height: 5px;
    animation-duration: 8s;
}

.sparkle.large {
    width: 7px;
    height: 7px;
    animation-duration: 10s;
}

/* Красные цвета из umbrella-corp и темы */
.sparkle.color1 {
    color: #c00; /* Темно-красный из umbrella-corp */
    background: #c00;
}

.sparkle.color2 {
    color: #a11; /* Красный из umbrella-corp */
    background: #a11;
}

.sparkle.color3 {
    color: #870200; /* Очень темно-красный из umbrella-corp */
    background: #870200;
}

.sparkle.color4 {
    color: #dc143c; /* Crimson */
    background: #dc143c;
}

.sparkle.color5 {
    color: #ff0000; /* Red */
    background: #ff0000;
}

.sparkle.color6 {
    color: #cc0000; /* Темно-красный */
    background: #cc0000;
}

.sparkle.color7 {
    color: #b30000; /* Красный */
    background: #b30000;
}

.sparkle.color8 {
    color: #990000; /* Темно-красный */
    background: #990000;
}

.sparkle.color9 {
    color: #ff3333; /* Светло-красный */
    background: #ff3333;
}

.sparkle.color10 {
    color: #cc3333; /* Красный */
    background: #cc3333;
}

/* Анимация полета sparkles */
@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(-20px) scale(1.2);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) translateX(30px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) translateX(0) scale(0);
    }
}

/* Дополнительная анимация для мерцания */
@keyframes sparkleTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.sparkle.twinkle {
    animation: sparkleFloat 8s infinite ease-in-out, sparkleTwinkle 2s infinite ease-in-out;
}

/* Анимация для sparkles, летящих в разных направлениях */
@keyframes sparkleFloatLeft {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(-10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(-40px) scale(1.2);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) translateX(-60px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) translateX(-80px) scale(0);
    }
}

@keyframes sparkleFloatRight {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(40px) scale(1.2);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) translateX(60px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) translateX(80px) scale(0);
    }
}

.sparkle.direction-left {
    animation: sparkleFloatLeft 8s infinite ease-in-out;
}

.sparkle.direction-right {
    animation: sparkleFloatRight 8s infinite ease-in-out;
}

/* Стили для иконок */
.sparkle.icon {
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: none;
}

.sparkle.icon.small {
    width: 16px;
    height: 16px;
}

.sparkle.icon.medium {
    width: 24px;
    height: 24px;
}

.sparkle.icon.large {
    width: 32px;
    height: 32px;
}

.sparkle.icon::before {
    display: none;
}

.sparkle.icon svg,
.sparkle.icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.sparkle.icon svg path {
    transition: fill 0.3s ease;
}

/* Анимация вращения для иконок */
@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.sparkle.icon.rotate {
    animation: sparkleFloat 8s infinite ease-in-out, iconRotate 4s linear infinite;
}

.sparkle.icon.rotate.direction-left {
    animation: sparkleFloatLeft 8s infinite ease-in-out, iconRotate 4s linear infinite;
}

.sparkle.icon.rotate.direction-right {
    animation: sparkleFloatRight 8s infinite ease-in-out, iconRotate 4s linear infinite;
}

/* Применение красных цветов к иконкам через filter */
.sparkle.icon.color1 svg {
    filter: drop-shadow(0 0 3px #c00);
}

.sparkle.icon.color2 svg {
    filter: drop-shadow(0 0 3px #a11);
}

.sparkle.icon.color3 svg {
    filter: drop-shadow(0 0 3px #870200);
}

.sparkle.icon.color4 svg {
    filter: drop-shadow(0 0 3px #dc143c);
}

.sparkle.icon.color5 svg {
    filter: drop-shadow(0 0 3px #ff0000);
}

.sparkle.icon.color6 svg {
    filter: drop-shadow(0 0 3px #cc0000);
}

.sparkle.icon.color7 svg {
    filter: drop-shadow(0 0 3px #b30000);
}

.sparkle.icon.color8 svg {
    filter: drop-shadow(0 0 3px #990000);
}

.sparkle.icon.color9 svg {
    filter: drop-shadow(0 0 3px #ff3333);
}

.sparkle.icon.color10 svg {
    filter: drop-shadow(0 0 3px #cc3333);
}
