/* =============================================================================
   Christmas Theme - Active December 20 - January 1
   ============================================================================= */

/* ========== CHRISTMAS LIGHTS ========== */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    pointer-events: none;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    animation: twinkle 1.5s infinite;
}

.light::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 1px;
    height: 8px;
    background: #666;
}

.light:nth-child(20n+1) { background: #ff0000; box-shadow: 0 0 10px #ff0000; animation-delay: 0s; }
.light:nth-child(20n+2) { background: #00ff00; box-shadow: 0 0 10px #00ff00; animation-delay: 0.3s; }
.light:nth-child(20n+3) { background: #0000ff; box-shadow: 0 0 10px #0000ff; animation-delay: 0.6s; }
.light:nth-child(20n+4) { background: #ffff00; box-shadow: 0 0 10px #ffff00; animation-delay: 0.9s; }
.light:nth-child(20n+5) { background: #ff00ff; box-shadow: 0 0 10px #ff00ff; animation-delay: 1.2s; }
.light:nth-child(20n+6) { background: #ff0000; box-shadow: 0 0 10px #ff0000; animation-delay: 0.2s; }
.light:nth-child(20n+7) { background: #00ff00; box-shadow: 0 0 10px #00ff00; animation-delay: 0.5s; }
.light:nth-child(20n+8) { background: #0000ff; box-shadow: 0 0 10px #0000ff; animation-delay: 0.8s; }
.light:nth-child(20n+9) { background: #ffff00; box-shadow: 0 0 10px #ffff00; animation-delay: 1.1s; }
.light:nth-child(20n+10) { background: #ff00ff; box-shadow: 0 0 10px #ff00ff; animation-delay: 1.4s; }
.light:nth-child(20n+11) { background: #ff0000; box-shadow: 0 0 10px #ff0000; animation-delay: 0.1s; }
.light:nth-child(20n+12) { background: #00ff00; box-shadow: 0 0 10px #00ff00; animation-delay: 0.4s; }
.light:nth-child(20n+13) { background: #0000ff; box-shadow: 0 0 10px #0000ff; animation-delay: 0.7s; }
.light:nth-child(20n+14) { background: #ffff00; box-shadow: 0 0 10px #ffff00; animation-delay: 1.0s; }
.light:nth-child(20n+15) { background: #ff00ff; box-shadow: 0 0 10px #ff00ff; animation-delay: 1.3s; }
.light:nth-child(20n+16) { background: #ff0000; box-shadow: 0 0 10px #ff0000; animation-delay: 0.15s; }
.light:nth-child(20n+17) { background: #00ff00; box-shadow: 0 0 10px #00ff00; animation-delay: 0.45s; }
.light:nth-child(20n+18) { background: #0000ff; box-shadow: 0 0 10px #0000ff; animation-delay: 0.75s; }
.light:nth-child(20n+19) { background: #ffff00; box-shadow: 0 0 10px #ffff00; animation-delay: 1.05s; }
.light:nth-child(20n+20) { background: #ff00ff; box-shadow: 0 0 10px #ff00ff; animation-delay: 1.35s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== FALLING SNOW ========== */
.snowflake {
    position: fixed;
    top: -10px;
    color: white;
    font-size: 1em;
    opacity: 0.8;
    pointer-events: none;
    z-index: 9998;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ========== CHRISTMAS TREE ========== */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 100px;
    animation: sway 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.5));
}

@keyframes sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* ========== FESTIVE RIBBON ========== */
.ribbon {
    position: fixed;
    top: 60px;
    right: -80px;
    background: #c41e3a;
    color: white;
    padding: 10px 100px;
    transform: rotate(45deg);
    z-index: 9997;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
}

/* ========== STARS BACKGROUND ========== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

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

/* ========== FESTIVE NAVBAR ENHANCEMENT ========== */
body.christmas-theme .navbar {
    border-bottom: 3px solid #ffd700 !important;
}

body.christmas-theme .navbar::after {
    content: '🎄 ❄️ 🎁 ⭐ 🔔 ❄️ 🎄';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========== CARD DECORATIONS ========== */
.snowflake-decoration {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Add subtle festive glow to cards and buttons */
body.christmas-theme .card:hover,
body.christmas-theme .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3) !important;
}

/* ========== SEASONAL GREETING BANNER ========== */
.christmas-greeting {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(193, 30, 58, 0.1) 0%, rgba(15, 81, 50, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.christmas-greeting h2 {
    color: #ffd700;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.christmas-greeting p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .christmas-tree {
        font-size: 60px;
        bottom: 10px;
        right: 10px;
    }

    .ribbon {
        font-size: 12px;
        padding: 8px 80px;
    }

    .christmas-greeting {
        margin: 10px;
        padding: 15px;
    }

    .christmas-greeting h2 {
        font-size: 1.4em;
    }

    .christmas-greeting p {
        font-size: 0.95em;
    }
}
