/* ========================================
   НОВОГОДНЕЕ ПОЗДРАВЛЕНИЕ - КРАСИВАЯ ВЕРСИЯ
   ======================================== */

/* Основной оверлей */
.new-year-greeting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 30, 80, 0.95) 0%, rgba(20, 50, 120, 0.95) 50%, rgba(10, 30, 80, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1099;
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.new-year-greeting-overlay.hidden {
    display: none;
}

/* Содержимое модали */
.new-year-greeting-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Декоративные элементы фона */
.new-year-greeting-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

.new-year-greeting-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(100, 200, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

/* Кнопка закрытия */
.new-year-greeting-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.new-year-greeting-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.new-year-greeting-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Заголовок с градиентом */
.new-year-greeting-title {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite, titleBounce 2s ease-in-out infinite;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: 2px;
}

/* Основное сообщение */
.new-year-greeting-message {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.new-year-greeting-message p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 10px 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.new-year-greeting-message p:nth-child(1) {
    animation-delay: 0.2s;
}

.new-year-greeting-message p:nth-child(2) {
    animation-delay: 0.4s;
}

.new-year-greeting-message p:nth-child(3) {
    animation-delay: 0.6s;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Снежинки */
.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1.5em;
    opacity: 0.8;
    animation: snowfall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 12s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 10s; animation-delay: 0.5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 12s; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 9s; animation-delay: 1.5s; }
.snowflake:nth-child(9) { left: 90%; animation-duration: 11s; animation-delay: 3.5s; }

/* Звёзды и украшения */
.new-year-greeting-decorations {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.decoration-item {
    font-size: 2.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

.decoration-item:nth-child(1) { animation-delay: 0s; }
.decoration-item:nth-child(2) { animation-delay: 0.4s; }
.decoration-item:nth-child(3) { animation-delay: 0.8s; }

/* Кнопка действия */
.new-year-greeting-action {
    position: relative;
    z-index: 1;
    margin-top: 25px;
}

.new-year-greeting-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    animation: slideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

.new-year-greeting-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.new-year-greeting-btn:active {
    transform: translateY(-1px);
}

/* ========================================
   АНИМАЦИИ
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes snowfall {
    from {
        top: -10vh;
        opacity: 1;
    }
    to {
        top: 100vh;
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Адаптивность */
@media (max-width: 600px) {
    .new-year-greeting-content {
        padding: 35px 25px;
    }

    .new-year-greeting-title {
        font-size: 2.5rem;
    }

    .new-year-greeting-message p {
        font-size: 1rem;
    }

    .decoration-item {
        font-size: 2rem;
    }

    .new-year-greeting-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

