/* ===== new-year.css ===== */

/* ===== НОВОГОДНИЕ ЭФФЕКТЫ 2025 ===== */

/* Добавляем новогодние переменные */
:root {
    --new-year-red: #C62828;
    --new-year-green: #2E7D32;
    --new-year-gold: #FFD700;
    --new-year-dark-green: #1B5E20;
}

/* Базовые анимации */
@keyframes snowflakeFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confettiFall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(100px, 100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

/* Исправляем снежинки и конфетти */
.snowflake {
    position: fixed !important;
    background: white !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 9998 !important;
    filter: blur(0.5px) !important;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

.confetti {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 9997 !important;
    opacity: 0.8 !important;
}

/* Убираем конфликтующий фон снега */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background-image: 
        radial-gradient(circle at 20px 30px, rgba(255,255,255,0.1) 1px, transparent 2px),
        radial-gradient(circle at 60px 80px, rgba(255,255,255,0.05) 1px, transparent 2px);
    background-size: 200px 200px;
    animation: snow-fall 25s linear infinite;
    z-index: 9996;
    pointer-events: none;
    filter: blur(0.5px);
    opacity: 0.3;
}

@keyframes snow-fall {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(calc(100vh + 100px)); }
}

/* Новогоднее уведомление */
#newYearNotification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, 
        rgba(198, 40, 40, 0.95), 
        rgba(46, 125, 50, 0.95),
        rgba(255, 215, 0, 0.95));
    color: white;
    border-radius: 15px;
    padding: 20px;
    z-index: 10001;
    box-shadow: 
        0 5px 25px rgba(198, 40, 40, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    border: 2px solid var(--new-year-gold);
    animation: fadeIn 0.8s ease-out;
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.notification-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    text-align: center;
    font-family: 'Cinzel', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    opacity: 0.9;
}

.notification-content button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.notification-content button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Новогодние стили ДОПОЛНИТЕЛЬНЫЕ (не переопределяющие основные) */
.status-window.new-year {
    border-image: linear-gradient(45deg, var(--new-year-red), var(--new-year-green), var(--new-year-gold)) 1;
    position: relative;
    overflow: hidden;
}

.status-window.new-year::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-title.new-year {
    background: linear-gradient(45deg, 
        var(--new-year-red), 
        var(--new-year-green), 
        var(--new-year-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
}

.status-title.new-year::after {
    content: '🎄';
    position: absolute;
    right: -30px;
    animation: tree-shake 2s infinite;
}

@keyframes tree-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Кнопки меню с эффектом подарков - ДОПОЛНИТЕЛЬНЫЕ */
.menu-button.new-year {
    border: 2px solid var(--new-year-gold) !important;
    position: relative;
    overflow: hidden;
}

.menu-button.new-year::after {
    content: '🎁';
    position: absolute;
    right: -25px;
    opacity: 0;
    transition: all 0.3s;
}

.menu-button.new-year:hover {
    transform: translateY(-3px) scale(1.02) !important;
    border-color: #FFD700 !important;
}

.menu-button.new-year:hover::after {
    right: 10px;
    opacity: 1;
}

/* Счетчик с эффектом */
.counter-container.new-year {
    border: 2px solid var(--new-year-gold) !important;
    position: relative;
    overflow: hidden;
}

.counter-container.new-year::before {
    content: '2026';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    font-weight: bold;
    color: rgba(255, 215, 0, 0.1);
    z-index: 0;
    pointer-events: none;
}

/* Заголовки контента */
.content-title.new-year {
    border-left: 4px solid var(--new-year-gold) !important;
    position: relative;
    padding-left: 20px !important;
}

.content-title.new-year::before {
    content: '✨';
    position: absolute;
    left: -10px;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Статус сервера */
.server-status-output.new-year font[color="#008B00"] {
    border: 1px solid var(--new-year-green) !important;
    animation: pulse-green 2s infinite;
    padding: 2px 8px;
    border-radius: 4px;
}

.server-status-output.new-year font[color="#CD2626"] {
    border: 1px solid var(--new-year-red) !important;
    animation: pulse-red 2s infinite;
    padding: 2px 8px;
    border-radius: 4px;
}

@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(46, 125, 50, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(46, 125, 50, 0.8);
    }
}

@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(198, 40, 40, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(198, 40, 40, 0.8);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    #newYearNotification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .snowflake, .confetti {
        display: none;
    }
}

/* Для старых браузеров */
@supports not (backdrop-filter: blur(10px)) {
    #newYearNotification {
        background: linear-gradient(135deg, 
            rgba(198, 40, 40, 1), 
            rgba(46, 125, 50, 1),
            rgba(255, 215, 0, 1));
    }
}
