/* ========================================
   CHRISTMAS DECORATIONS - Temporary Holiday Theme
   To disable: Comment out the <link> in HTML files
   ======================================== */

/* Snowfall Animation */
@keyframes snowfall {
    0% { transform: translateY(-10vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

/* Sway Animation - left and right movement */
@keyframes sway {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(15px); }
    75% { transform: translateX(-15px); }
}

/* Individual Snowflake */
.snowflake {
    position: fixed;
    top: -20px;
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 9999;
    font-size: 20px;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* animation-duration set via JS */
}

.snowflake::before {
    content: '❄';
    display: block;
    animation: sway var(--sway-duration, 3s) ease-in-out infinite;
}

/* Christmas Lights String - Elegant hanging lights */
.christmas-garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
    background: transparent;
}

/* The string/wire */
.christmas-garland::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #2d5016 10%, 
        #2d5016 90%, 
        transparent 100%
    );
}

/* Individual light bulb */
.christmas-light {
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 60% 60%;
    margin: 0 25px;
    position: relative;
    top: 12px;
    animation: glow 2s ease-in-out infinite;
}

/* Light socket */
.christmas-light::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 2px 2px 0 0;
}

/* Wire connecting to socket */
.christmas-light::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #2d5016;
}

.christmas-light:nth-child(5n+1) {
    background: radial-gradient(circle at 30% 30%, #ff8a8a, #ff0000);
    box-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000, 0 5px 20px rgba(255, 0, 0, 0.5);
    animation-delay: 0s;
}

.christmas-light:nth-child(5n+2) {
    background: radial-gradient(circle at 30% 30%, #ffe066, #ffd000);
    box-shadow: 0 0 15px #ffd000, 0 0 30px #ffd000, 0 5px 20px rgba(255, 208, 0, 0.5);
    animation-delay: 0.4s;
}

.christmas-light:nth-child(5n+3) {
    background: radial-gradient(circle at 30% 30%, #90ee90, #00cc00);
    box-shadow: 0 0 15px #00cc00, 0 0 30px #00cc00, 0 5px 20px rgba(0, 204, 0, 0.5);
    animation-delay: 0.8s;
}

.christmas-light:nth-child(5n+4) {
    background: radial-gradient(circle at 30% 30%, #87ceeb, #0099ff);
    box-shadow: 0 0 15px #0099ff, 0 0 30px #0099ff, 0 5px 20px rgba(0, 153, 255, 0.5);
    animation-delay: 1.2s;
}

.christmas-light:nth-child(5n+5) {
    background: radial-gradient(circle at 30% 30%, #dda0dd, #cc00cc);
    box-shadow: 0 0 15px #cc00cc, 0 0 30px #cc00cc, 0 5px 20px rgba(204, 0, 204, 0.5);
    animation-delay: 1.6s;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.7;
        filter: brightness(0.8);
    }
    50% {
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* Christmas Corner Decorations */
.christmas-corner {
    position: fixed;
    z-index: 10000;
    font-size: 3rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    animation: gentle-swing 3s ease-in-out infinite;
}

.christmas-corner-left {
    top: 40px;
    left: 10px;
}

.christmas-corner-right {
    top: 40px;
    right: 10px;
    animation-delay: 1.5s;
}

@keyframes gentle-swing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@media screen and (max-width: 768px) {
    
    .christmas-corner {
        font-size: 2rem;
    }
    
    .christmas-garland {
        height: 24px;
    }
    
    .christmas-light {
        width: 8px;
        height: 12px;
    }
}

/* Optional: Christmas tree in footer area */
.christmas-tree-decoration {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2.5rem;
    z-index: 9997;
    animation: tree-glow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.christmas-tree-decoration:hover {
    transform: scale(1.2);
}

@keyframes tree-glow {
    0% {
        filter: drop-shadow(0 0 5px #228b22);
    }
    100% {
        filter: drop-shadow(0 0 15px #ffd700);
    }
}

/* Reduced motion preference - only affect non-essential animations */
@media (prefers-reduced-motion: reduce) {
    .christmas-light,
    .christmas-corner,
    .christmas-tree-decoration {
        animation: none !important;
    }
    
    /* Keep snowflakes fully animated - sway included for realism */
}
