/**
 * Christmas Theme Styles
 * Snowflakes animation and festive decorations
 */

/* Snowflakes 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: -20px;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    opacity: 0.9;
    user-select: none;
}

/* Snowflake fall animation */
@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

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

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

.snowflake.large {
    font-size: 1.4rem;
    opacity: 0.95;
}

/* Sway animation for more natural movement */
@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(10px);
    }
    75% {
        transform: translateX(-10px);
    }
}

/* Christmas decorations for hero section */
.hero-section.christmas-theme {
    position: relative;
}

/* Subtle Christmas overlay pattern - stars and snowflakes */
.hero-section.christmas-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* SVG pattern with stars and small dots for a festive feel */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cstyle%3E.star%7Bfill:%23ffffff;fill-opacity:0.08%7D.dot%7Bfill:%23ffffff;fill-opacity:0.05%7D%3C/style%3E%3C/defs%3E%3C!-- Star 1 --%3E%3Cpath class='star' d='M30 20l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z'/%3E%3C!-- Star 2 --%3E%3Cpath class='star' d='M150 60l2.5 7.5h8l-6.5 5 2.5 7.5-6.5-5-6.5 5 2.5-7.5-6.5-5h8z'/%3E%3C!-- Star 3 --%3E%3Cpath class='star' d='M80 140l2 6h6l-5 4 2 6-5-4-5 4 2-6-5-4h6z'/%3E%3C!-- Star 4 --%3E%3Cpath class='star' d='M170 170l1.5 4.5h5l-4 3 1.5 4.5-4-3-4 3 1.5-4.5-4-3h5z'/%3E%3C!-- Dots --%3E%3Ccircle class='dot' cx='100' cy='30' r='2'/%3E%3Ccircle class='dot' cx='20' cy='100' r='1.5'/%3E%3Ccircle class='dot' cx='180' cy='120' r='2'/%3E%3Ccircle class='dot' cx='60' cy='80' r='1.5'/%3E%3Ccircle class='dot' cx='140' cy='180' r='1.5'/%3E%3Ccircle class='dot' cx='120' cy='100' r='1'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
    animation: subtle-twinkle 8s ease-in-out infinite;
}

@keyframes subtle-twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-section.christmas-theme > * {
    position: relative;
    z-index: 2;
}

/* Christmas colors accent */
.christmas-accent-red {
    color: #c41e3a !important;
}

.christmas-accent-green {
    color: #228b22 !important;
}

/* Festive glow on buttons during Christmas */
.christmas-theme .hero-product-buttons .btn-purple {
    box-shadow: 0 8px 32px rgba(102, 9, 184, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.08),
                0 0 20px rgba(255, 255, 255, 0.3);
}

.christmas-theme .hero-product-buttons .btn-purple:hover {
    box-shadow: 0 12px 40px rgba(102, 9, 184, 0.25),
                0 4px 12px rgba(0, 0, 0, 0.1),
                0 0 30px rgba(255, 255, 255, 0.4);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        opacity: 0.5;
    }

    .snowflakes {
        display: none;
    }
}

/* Mobile optimization - fewer snowflakes visual */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8rem;
    }

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