
/*
==========================================================================
   NEW YEAR THEME - Новогоднее оформление
   Снежинки + снежная шапка на логотипе
==========================================================================
*/

/* ============================================
   SNOWFLAKES ANIMATION
   ============================================ */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255,255,255,0.8), 0 0 10px rgba(200,220,255,0.5);
    animation: snowfall linear infinite;
    opacity: 0.9;
    user-select: none;
}

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

/* Разные снежинки с разными параметрами */
.snowflake:nth-child(1)  { left: 3%;  animation-duration: 10s; font-size: 1.2em; animation-delay: 0s; }
.snowflake:nth-child(2)  { left: 10%; animation-duration: 14s; font-size: 0.8em; animation-delay: 1s; }
.snowflake:nth-child(3)  { left: 17%; animation-duration: 12s; font-size: 1.4em; animation-delay: 2.5s; }
.snowflake:nth-child(4)  { left: 24%; animation-duration: 16s; font-size: 0.6em; animation-delay: 0.5s; }
.snowflake:nth-child(5)  { left: 31%; animation-duration: 11s; font-size: 1.1em; animation-delay: 3s; }
.snowflake:nth-child(6)  { left: 38%; animation-duration: 13s; font-size: 0.9em; animation-delay: 1.5s; }
.snowflake:nth-child(7)  { left: 45%; animation-duration: 15s; font-size: 1.3em; animation-delay: 2s; }
.snowflake:nth-child(8)  { left: 52%; animation-duration: 10s; font-size: 0.7em; animation-delay: 4s; }
.snowflake:nth-child(9)  { left: 59%; animation-duration: 14s; font-size: 1.5em; animation-delay: 0.8s; }
.snowflake:nth-child(10) { left: 66%; animation-duration: 12s; font-size: 1em; animation-delay: 3.5s; }
.snowflake:nth-child(11) { left: 73%; animation-duration: 16s; font-size: 0.8em; animation-delay: 1.2s; }
.snowflake:nth-child(12) { left: 80%; animation-duration: 11s; font-size: 1.2em; animation-delay: 2.8s; }
.snowflake:nth-child(13) { left: 87%; animation-duration: 13s; font-size: 0.9em; animation-delay: 0.3s; }
.snowflake:nth-child(14) { left: 94%; animation-duration: 15s; font-size: 1.1em; animation-delay: 4.5s; }

/* ============================================
   SNOW CAP ON LOGO
   ============================================ */
.logo-new-year {
    position: relative;
    display: inline-block;
}

.logo-snow-cap {
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    pointer-events: none;
    line-height: 1;
}

/* Снежинки на шапке логотипа */
.logo-snow-cap::before {
    content: none;
    display: block;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }
    
    .snowflake:nth-child(n+10) {
        display: none; /* Меньше снежинок на мобильных */
    }
    
    .logo-snow-cap {
        top: -10px;
        font-size: 8px;
    }
    
    .logo-snow-cap::before {
        content: '❄ ❄ ❄';
    }
}

/* ============================================
   REDUCED MOTION (accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        opacity: 0.5;
    }
    
    .logo-snow-cap::before {
        animation: none;
    }
}
