/* Christmas Theme for OSRS Chatlogger */
/* Clean version - festive decorations only, no darkness overrides */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #228b22;
    --christmas-gold: #ffd700;
    --christmas-white: #fffafa;
}

/* ==================== SNOW EFFECT ==================== */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    animation: snowfall linear infinite;
    opacity: 0.8;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 0.8em; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; animation-delay: 0.5s; font-size: 1em; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; animation-delay: 2s; font-size: 0.6em; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; font-size: 1.4em; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 9s; animation-delay: 1.5s; font-size: 0.9em; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 4s; font-size: 0.7em; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; animation-delay: 2.5s; font-size: 1.1em; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; animation-delay: 5s; font-size: 0.5em; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 7s; animation-delay: 0.2s; font-size: 1.3em; }
.snowflake:nth-child(11) { left: 10%; animation-duration: 11s; animation-delay: 6s; font-size: 0.8em; }
.snowflake:nth-child(12) { left: 20%; animation-duration: 9s; animation-delay: 7s; font-size: 1em; }
.snowflake:nth-child(13) { left: 30%; animation-duration: 13s; animation-delay: 8s; font-size: 0.6em; }
.snowflake:nth-child(14) { left: 40%; animation-duration: 8s; animation-delay: 9s; font-size: 1.2em; }
.snowflake:nth-child(15) { left: 50%; animation-duration: 12s; animation-delay: 10s; font-size: 0.7em; }
.snowflake:nth-child(16) { left: 60%; animation-duration: 10s; animation-delay: 3.5s; font-size: 0.9em; }
.snowflake:nth-child(17) { left: 70%; animation-duration: 14s; animation-delay: 4.5s; font-size: 1.1em; }
.snowflake:nth-child(18) { left: 80%; animation-duration: 9s; animation-delay: 5.5s; font-size: 0.8em; }
.snowflake:nth-child(19) { left: 90%; animation-duration: 11s; animation-delay: 6.5s; font-size: 1em; }
.snowflake:nth-child(20) { left: 3%; animation-duration: 13s; animation-delay: 7.5s; font-size: 0.6em; }

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==================== CHRISTMAS LIGHTS ==================== */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
    z-index: 10001;
    overflow: visible;
}

.christmas-lights::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.christmas-lights .light-string {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.light-bulb {
    width: 14px;
    height: 18px;
    border-radius: 50%;
    position: relative;
    margin-top: 8px;
    animation: bulb-glow 1.5s ease-in-out infinite;
}

.light-bulb::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    border-radius: 2px 2px 0 0;
}

.light-bulb::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    filter: blur(8px);
    z-index: -1;
}

.light-bulb.red { 
    background: radial-gradient(circle at 30% 30%, #ff6666, #ff0000, #cc0000); 
    box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}
.light-bulb.green { 
    background: radial-gradient(circle at 30% 30%, #66ff66, #00ff00, #00cc00); 
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}
.light-bulb.blue { 
    background: radial-gradient(circle at 30% 30%, #66b3ff, #0099ff, #0066cc); 
    box-shadow: 0 0 10px #0099ff, 0 0 20px #0099ff;
}
.light-bulb.gold, .light-bulb.yellow { 
    background: radial-gradient(circle at 30% 30%, #ffff99, #ffff00, #cccc00); 
    box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
}
.light-bulb.purple { 
    background: radial-gradient(circle at 30% 30%, #cc99ff, #9900ff, #6600cc); 
    box-shadow: 0 0 10px #9900ff, 0 0 20px #9900ff;
}
.light-bulb.orange { 
    background: radial-gradient(circle at 30% 30%, #ffb366, #ff6600, #cc5200); 
    box-shadow: 0 0 10px #ff6600, 0 0 20px #ff6600;
}

.light-bulb:nth-child(1) { animation-delay: 0s; }
.light-bulb:nth-child(2) { animation-delay: 0.15s; }
.light-bulb:nth-child(3) { animation-delay: 0.3s; }
.light-bulb:nth-child(4) { animation-delay: 0.45s; }
.light-bulb:nth-child(5) { animation-delay: 0.6s; }
.light-bulb:nth-child(6) { animation-delay: 0.75s; }
.light-bulb:nth-child(7) { animation-delay: 0.9s; }
.light-bulb:nth-child(8) { animation-delay: 1.05s; }
.light-bulb:nth-child(9) { animation-delay: 1.2s; }
.light-bulb:nth-child(10) { animation-delay: 0.1s; }
.light-bulb:nth-child(11) { animation-delay: 0.25s; }
.light-bulb:nth-child(12) { animation-delay: 0.4s; }
.light-bulb:nth-child(13) { animation-delay: 0.55s; }
.light-bulb:nth-child(14) { animation-delay: 0.7s; }
.light-bulb:nth-child(15) { animation-delay: 0.85s; }
.light-bulb:nth-child(16) { animation-delay: 1.0s; }
.light-bulb:nth-child(17) { animation-delay: 1.15s; }
.light-bulb:nth-child(18) { animation-delay: 0.05s; }
.light-bulb:nth-child(19) { animation-delay: 0.2s; }
.light-bulb:nth-child(20) { animation-delay: 0.35s; }

@keyframes bulb-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ==================== HEADER SPACING FOR LIGHTS ==================== */
.theme-christmas header {
    position: relative;
    z-index: 10000;
    padding-top: 35px;
}

/* ==================== FESTIVE ACCENTS (subtle) ==================== */
.theme-christmas .osrs-panel {
    border-color: var(--christmas-red) !important;
}

.theme-christmas footer {
    position: relative;
}

.theme-christmas footer::before {
    content: '🎄';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 20px;
}

.theme-christmas footer::after {
    content: '🎄';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 20px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .christmas-lights {
        height: 25px;
    }
    
    .light-bulb {
        width: 10px;
        height: 14px;
        margin-top: 6px;
    }
    
    .light-bulb::before {
        width: 4px;
        height: 6px;
        top: -5px;
    }
    
    .theme-christmas header {
        padding-top: 28px;
    }
}

@media (max-width: 480px) {
    .light-bulb {
        width: 8px;
        height: 12px;
    }
    
    .light-bulb:nth-child(even) {
        display: none;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .light-bulb {
        animation: none;
    }
    
    .light-bulb {
        opacity: 0.8;
    }
}
