/* Christmas Snow Effect - Festive Winter Theme */

/* Snow Container */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    animation: containerFadeIn 1s ease-in;
}

/* Container fade-in animation */
@keyframes containerFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Individual Snowflake */
.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    user-select: none;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Snowfall Animation */
@keyframes snowfall {
    0% {
        top: -10%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Sway Animation for natural movement */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(50px);
    }
}

/* Different snowflake sizes */
.snowflake.small {
    font-size: 0.7em;
    opacity: 0.6;
}

.snowflake.medium {
    font-size: 1em;
    opacity: 0.8;
}

.snowflake.large {
    font-size: 1.5em;
    opacity: 0.9;
}

/* Spin animation for some snowflakes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.snowflake.spinning {
    animation: snowfall linear infinite, spin 3s linear infinite;
}

/* Optional: Christmas theme background overlay (subtle) */
.christmas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

/* Snowflake symbols - using various Unicode characters */
.snowflake::before {
    content: '\2744'; /* ❄ snowflake symbol */
}

/* Alternative snowflake styles */
.snowflake.style-1::before {
    content: '\2746'; /* ❆ */
}

.snowflake.style-2::before {
    content: '\2745'; /* ❅ */
}

.snowflake.style-3::before {
    content: '\2743'; /* ❃ */
}

.snowflake.style-4::before {
    content: '\2744'; /* ❄ */
}

/* Performance optimization */
.snow-container {
    will-change: transform;
    transform: translateZ(0);
}

.snowflake {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }

    .snowflake.large {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .snowflake {
        font-size: 0.6em;
    }

    .snowflake.large {
        font-size: 1em;
    }
}

/* Blur effect for depth */
.snowflake.blur {
    filter: blur(1px);
}

/* Optional: Festive glow effect */
.snowflake.glow {
    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(173, 216, 230, 0.6),
        0 0 15px rgba(173, 216, 230, 0.4);
}
