/* ==========================================
   CHINESE NEW YEAR 2026 - YEAR OF THE HORSE 🐴
   To disable: Comment out the link to this file in index.html
   ========================================== */

/* CNY Lanterns & Elements Container */
.christmas-snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Floating Lucky Symbols */
.christmas-snow::before,
.christmas-snow::after {
    content: '🧧';
    position: absolute;
    top: -10%;
    font-size: 30px;
    animation: cnyFloat linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.christmas-snow::before {
    left: 15%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.christmas-snow::after {
    content: '🏮';
    left: 85%;
    animation-duration: 18s;
    animation-delay: 3s;
}

/* Float Animation for CNY Elements */
@keyframes cnyFloat {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateX(30px) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% {
        transform: translateX(-20px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateX(40px) rotate(270deg) scale(1.05);
    }
    100% {
        top: 110%;
        transform: translateX(0) rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

/* Additional CNY elements - enhanced by JavaScript */
.snowflake {
    position: absolute;
    top: -10%;
    font-size: 25px;
    user-select: none;
    pointer-events: none;
    animation: cnyFloat linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

/* Varied animation speeds */
.snowflake:nth-child(2n) {
    animation-duration: 16s;
}

.snowflake:nth-child(3n) {
    animation-duration: 20s;
}

.snowflake:nth-child(4n) {
    animation-duration: 14s;
}

/* Different sizes for variety */
.snowflake:nth-child(2n) {
    font-size: 20px;
}

.snowflake:nth-child(3n) {
    font-size: 32px;
}

.snowflake:nth-child(5n) {
    font-size: 22px;
}

/* CNY-themed background with traditional red and gold */
body {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 50%, #8b0000 100%);
    position: relative;
}

/* Add decorative pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255, 215, 0, 0.03) 100px, rgba(255, 215, 0, 0.03) 200px),
        repeating-linear-gradient(-45deg, transparent, transparent 100px, rgba(255, 215, 0, 0.03) 100px, rgba(255, 215, 0, 0.03) 200px);
    pointer-events: none;
    z-index: 0;
}

/* Golden glow effect for container */
.container {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(255, 215, 0, 0.2),
        inset 0 0 0 2px rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Festive golden accent on status badges */
.status-badge.online {
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #8b0000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* Add a pulsing golden glow to primary buttons */
@keyframes cnyGlow {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(212, 175, 55, 0.4),
            0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(212, 175, 55, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4);
    }
}

.btn-primary {
    animation: cnyGlow 2s ease-in-out infinite;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #8b0000;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.7);
}

/* CNY greeting banner */
.christmas-greeting {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 700;
    color: #8b0000;
    z-index: 1000;
    animation: slideInGreeting 1s ease-out;
    border: 2px solid rgba(139, 0, 0, 0.3);
}

.christmas-greeting::before {
    content: '🐴 ';
    font-size: 18px;
}

.christmas-greeting::after {
    content: ' 🎊';
    font-size: 18px;
}

@keyframes slideInGreeting {
    from {
        transform: translateX(400px) rotate(10deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

/* Floating lanterns decoration */
@keyframes swingLantern {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* Add golden sparkles effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .christmas-greeting {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 10px 20px;
    }

    .snowflake {
        font-size: 20px;
    }
}