/**
 * Новогодние эффекты - CSS стили
 * Модуль: newyear.effects
 */

/* ========================================
   СНЕГ
   ======================================== */

.newyear-snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.newyear-snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    animation: newyear-snowfall linear infinite;
}

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

@keyframes newyear-sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

/* ========================================
   ГИРЛЯНДА
   ======================================== */

.newyear-garland-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
    z-index: 9998;
    overflow: visible;
}

.newyear-garland-wrapper {
    position: relative;
}

.newyear-garland-wire {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.newyear-garland-wire svg {
    width: 100%;
    height: 30px;
}

.newyear-garland-wire path {
    fill: none;
    stroke: #2a2a2a;
    stroke-width: 2;
}

.newyear-bulb {
    position: absolute;
    width: 12px;
    height: 16px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    transform: translateX(-50%);
}

.newyear-bulb::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 5px;
    background: #555;
    border-radius: 2px 2px 0 0;
}

.newyear-bulb.lit {
    box-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
}

/* ========================================
   УКРАШЕНИЯ
   ======================================== */

.newyear-decoration-wrapper {
    position: relative;
    display: inline-block;
}

/* Новогодняя шапка */
.newyear-decoration-hat {
    position: absolute;
    top: -20px;
    right: -10px;
    width: 40px;
    height: 30px;
    pointer-events: none;
    z-index: 100;
    transform: rotate(15deg);
}

.newyear-decoration-hat::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #fff;
    border-radius: 4px;
}

.newyear-decoration-hat::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 5px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid #cc0000;
}

.newyear-decoration-hat .pompom {
    position: absolute;
    top: -5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

/* Ёлочный шар */
.newyear-decoration-ball {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
    border-radius: 50%;
    box-shadow: 
        inset -5px -5px 10px rgba(0,0,0,0.3),
        inset 5px 5px 10px rgba(255,255,255,0.3);
    z-index: 100;
    pointer-events: none;
}

.newyear-decoration-ball::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 2px;
}

.newyear-decoration-ball::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

/* Звезда */
.newyear-decoration-star {
    position: absolute;
    top: -20px;
    right: -10px;
    width: 30px;
    height: 30px;
    z-index: 100;
    pointer-events: none;
    animation: newyear-star-glow 1.5s ease-in-out infinite alternate;
}

.newyear-decoration-star svg {
    width: 100%;
    height: 100%;
    fill: #ffd700;
    filter: drop-shadow(0 0 5px #ffd700);
}

@keyframes newyear-star-glow {
    0% {
        filter: drop-shadow(0 0 5px #ffd700);
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 15px #ffd700);
        transform: scale(1.1);
    }
}

/* Леденец */
.newyear-decoration-candy {
    position: absolute;
    top: -25px;
    right: -5px;
    width: 25px;
    height: 40px;
    z-index: 100;
    pointer-events: none;
    transform: rotate(-30deg);
}

.newyear-decoration-candy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 4px solid transparent;
    border-top-color: #ff0000;
    border-right-color: #fff;
    border-radius: 50%;
}

.newyear-decoration-candy::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 25px;
    background: repeating-linear-gradient(
        0deg,
        #ff0000 0px,
        #ff0000 4px,
        #fff 4px,
        #fff 8px
    );
    border-radius: 3px;
}

/* ========================================
   АНИМАЦИИ ДЛЯ УКРАШЕНИЙ
   ======================================== */

.newyear-decoration-swing {
    animation: newyear-swing 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes newyear-swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

