/* Christmas Theme Styles */

/* Snowflake container */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Individual snowflake */
.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.8);
    animation: fall linear infinite;
    opacity: 0;
}

/* Snowflake falling animation */
@keyframes fall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Hide the Christmas toggle button */
.christmas-toggle {
    display: none !important;
}

/* Christmas toggle button */
.christmas-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background: linear-gradient(135deg, #c41e3a 0%, #165B33 100%);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.christmas-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.christmas-toggle.disabled {
    background: linear-gradient(135deg, #666 0%, #999 100%);
    animation: none;
}

.christmas-toggle .icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.christmas-toggle:hover .icon {
    transform: rotate(20deg);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(196, 30, 58, 0.7);
    }
}

/* Hidden state */
.christmas-hidden {
    display: none;
}

/* Christmas lights decoration for header */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 1;
    padding: 0 20px;
}

.christmas-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: twinkle 1.5s infinite;
    box-shadow: 0 0 10px currentColor;
    position: relative;
}

/* Wire connecting the lights */
.christmas-light::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
}

/* Color variations */
.christmas-light:nth-child(1) { background: #ff0000; color: #ff0000; animation-delay: 0s; }
.christmas-light:nth-child(2) { background: #00ff00; color: #00ff00; animation-delay: 0.15s; }
.christmas-light:nth-child(3) { background: #ffff00; color: #ffff00; animation-delay: 0.3s; }
.christmas-light:nth-child(4) { background: #0000ff; color: #0000ff; animation-delay: 0.45s; }
.christmas-light:nth-child(5) { background: #ff00ff; color: #ff00ff; animation-delay: 0.6s; }
.christmas-light:nth-child(6) { background: #00ffff; color: #00ffff; animation-delay: 0.75s; }
.christmas-light:nth-child(7) { background: #ff8800; color: #ff8800; animation-delay: 0.9s; }
.christmas-light:nth-child(8) { background: #ff0088; color: #ff0088; animation-delay: 1.05s; }
.christmas-light:nth-child(9) { background: #88ff00; color: #88ff00; animation-delay: 1.2s; }
.christmas-light:nth-child(10) { background: #8800ff; color: #8800ff; animation-delay: 1.35s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
        filter: brightness(0.7);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3);
        filter: brightness(1.3);
    }
}

/* Make lights respect header layout */
.header-content {
    position: relative;
}

/* Hide lights when Christmas theme is disabled */
.christmas-hidden .christmas-lights {
    display: none;
}

/* Dark theme adjustments */
[data-theme="dark"] .snowflake {
    text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

[data-theme="dark"] .christmas-toggle {
    border-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .christmas-toggle {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .christmas-toggle .icon {
        font-size: 24px;
    }
    
    .snowflake {
        font-size: 0.8em;
    }
}