﻿body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 10% 20%, rgba(248, 113, 113, 0.12), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(52, 211, 153, 0.18), transparent 50%),
                radial-gradient(circle at 50% 90%, rgba(250, 204, 21, 0.2), transparent 50%);
    z-index: -1;
}

/* Remove the old snowfall animation - we're replacing it with JavaScript snowflakes */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml,%3Csvg width="160" height="160" viewBox="0 0 160 160" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="rgba(255,255,255,0.1)"%3E%3Ccircle cx="15" cy="25" r="1"/%3E%3Ccircle cx="80" cy="60" r="0.8"/%3E%3Ccircle cx="130" cy="20" r="1"/%3E%3Ccircle cx="40" cy="110" r="0.6"/%3E%3Ccircle cx="120" cy="130" r="1"/%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
    z-index: -1;
}

.site-header {
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.6), rgba(220, 38, 38, 0.5));
    position: relative;
    overflow: visible;
}

.hero {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.85), rgba(220, 38, 38, 0.75));
}

.album-card {
    border: 1px solid rgba(250, 204, 21, 0.18);
}

.album-link {
    background: rgba(250, 204, 21, 0.2);
}

.admin-primary {
    background: linear-gradient(135deg, #f87171, #facc15);
}

/* Enhanced Christmas Light Strand */
.twinkle-strand {
    position: absolute;
    inset: auto 0 -25px;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 10;
}

/* Enhanced Christmas Bulbs - Faster and Brighter */
.christmas-bulb {
    width: 20px;
    height: 28px;
    background: var(--bulb-color, #facc15);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: 
        christmasFlickerFast var(--twinkle-duration, 1s) ease-in-out infinite,
        christmasGlowBright var(--twinkle-duration, 1s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    filter: brightness(1.2); /* Brighter base */
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px var(--bulb-color, #facc15), /* Bigger glow */
        0 0 25px rgba(255, 255, 255, 0.4),
        inset 0 3px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Bulb cap/base */
.christmas-bulb::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 8px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 2px 2px 0 0;
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Wire/connection point */
.christmas-bulb::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4px;
    background: #34495e;
    border-radius: 1px;
}

/* Faster, brighter flickering animation */
@@keyframes christmasFlickerFast {
    0%, 100% { 
        filter: brightness(0.8);
        transform: translateY(0) scale(1);
    }
    10% { 
        filter: brightness(2.2); /* Much brighter peaks */
        transform: translateY(-3px) scale(1.08);
    }
    20% { 
        filter: brightness(1.1);
        transform: translateY(0) scale(1);
    }
    35% { 
        filter: brightness(2.5); /* Super bright flash */
        transform: translateY(-2px) scale(1.05);
    }
    45% { 
        filter: brightness(0.9);
        transform: translateY(0) scale(1);
    }
    60% { 
        filter: brightness(2.0);
        transform: translateY(-4px) scale(1.1);
    }
    75% { 
        filter: brightness(1.2);
        transform: translateY(0) scale(1);
    }
    85% { 
        filter: brightness(2.3);
        transform: translateY(-1px) scale(1.03);
    }
}

/* Brighter glowing effect */
@@keyframes christmasGlowBright {
    0%, 100% { 
        box-shadow: 
            0 0 10px var(--bulb-color, #facc15),
            0 0 20px rgba(255, 255, 255, 0.2),
            inset 0 3px 0 rgba(255, 255, 255, 0.4),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }
    15% { 
        box-shadow: 
            0 0 30px var(--bulb-color, #facc15), /* Much bigger glow */
            0 0 50px var(--bulb-color, #facc15),
            0 0 70px rgba(255, 255, 255, 0.6),
            inset 0 3px 0 rgba(255, 255, 255, 0.6),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }
    35% { 
        box-shadow: 
            0 0 40px var(--bulb-color, #facc15),
            0 0 60px var(--bulb-color, #facc15),
            0 0 80px rgba(255, 255, 255, 0.8),
            inset 0 3px 0 rgba(255, 255, 255, 0.7),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 0 15px var(--bulb-color, #facc15),
            0 0 25px rgba(255, 255, 255, 0.3),
            inset 0 3px 0 rgba(255, 255, 255, 0.4),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }
    75% { 
        box-shadow: 
            0 0 35px var(--bulb-color, #facc15),
            0 0 55px var(--bulb-color, #facc15),
            0 0 75px rgba(255, 255, 255, 0.7),
            inset 0 3px 0 rgba(255, 255, 255, 0.6),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }
}

/* String wire effect */
.twinkle-strand::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, 
        #2c3e50 0%, 
        #34495e 25%, 
        #2c3e50 50%, 
        #34495e 75%, 
        #2c3e50 100%);
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Even faster variations for different bulbs */
.christmas-bulb:nth-child(3n) {
    animation-duration: 0.8s;
}

.christmas-bulb:nth-child(4n) {
    animation-duration: 1.2s;
}

.christmas-bulb:nth-child(5n) {
    animation-duration: 0.6s; /* Very fast */
}

.christmas-bulb:nth-child(7n) {
    animation-duration: 1.4s;
}

.christmas-bulb:nth-child(2n) {
    animation-duration: 0.7s;
}

/* Snowflake container and animations */
.christmas-snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.christmas-snowflake {
    position: absolute;
    color: white;
    pointer-events: none;
    user-select: none;
    font-family: serif;
    font-weight: bold;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.4);
    animation: christmasSnowflakeGlow 3s ease-in-out infinite;
}

@@keyframes christmasSnowflakeGlow {
    0%, 100% { 
        text-shadow: 
            0 0 5px rgba(255, 255, 255, 0.8),
            0 0 10px rgba(255, 255, 255, 0.6);
    }
    50% { 
        text-shadow: 
            0 0 8px rgba(255, 255, 255, 1),
            0 0 15px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6);
    }
}

/* CSS fallback snowfall animation */
@@keyframes christmasSnowfall {
    0% { 
        transform: translateY(-20px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive adjustments */
@@media (max-width: 768px) {
    .twinkle-strand {
        padding: 0 1rem;
    }
    
    .christmas-bulb {
        width: 16px;
        height: 22px;
    }
    
    .christmas-bulb::before {
        width: 10px;
        height: 6px;
        top: -4px;
    }
    
    .christmas-bulb::after {
        width: 1.5px;
        height: 3px;
        top: -7px;
    }
    
    /* Fewer snowflakes on mobile */
    .christmas-snowflake:nth-child(n+26) {
        display: none;
    }
}

/* Extra bright hover effect */
.christmas-bulb:hover {
    animation-duration: 0.3s !important;
    filter: brightness(3) !important; /* Super bright on hover */
    transform: scale(1.2) !important;
    box-shadow: 
        0 0 50px var(--bulb-color) !important,
        0 0 80px var(--bulb-color) !important,
        0 0 100px rgba(255, 255, 255, 0.8) !important;
}
