/* Christmas Theme - Subtle & Elegant Snowfall */

/* Snowflake container - covers entire viewport */
.snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

/* Base snowflake styles */
.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 1em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: snowfall linear infinite;
    will-change: transform;
}

/* Snowflake sizes */
.snowflake.small {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0.4;
}

.snowflake.medium {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0.5;
}

.snowflake.large {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0.6;
}

/* Main snowfall animation - falling with gentle drift */
@keyframes snowfall {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Alternate drift patterns for variety */
@keyframes snowfall-drift-left {
    0% {
        transform: translateY(-20px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-80px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes snowfall-sway {
    0% {
        transform: translateY(-20px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(30px);
    }
    50% {
        transform: translateY(50vh) translateX(-20px);
    }
    75% {
        transform: translateY(75vh) translateX(40px);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(10px);
        opacity: 0;
    }
}

/* Animation variants */
.snowflake.drift-left {
    animation-name: snowfall-drift-left;
}

.snowflake.sway {
    animation-name: snowfall-sway;
}

/* Holiday Banner Styles */
.holiday-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    animation: banner-glow 3s ease-in-out infinite;
}

.holiday-banner-text {
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.holiday-banner-icon {
    color: #FFD700;
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes banner-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .snowflake {
        animation: none;
        display: none;
    }
    .holiday-banner {
        animation: none;
    }
    .holiday-banner-icon {
        animation: none;
    }
}

/* Reduce snowflakes on mobile for performance */
@media (max-width: 768px) {
    .snowflake:nth-child(n+20) {
        display: none;
    }
}

/* ==================== */
/* Santa Hat on Logo    */
/* ==================== */

.logo-with-hat {
    position: relative;
    display: inline-block;
}

.santa-hat {
    position: absolute;
    top: -6px;
    left: 15%;
    transform: translateX(-50%) rotate(-20deg);
    width: 22px;
    pointer-events: none;
    z-index: 10;
}

/* Santa hat image styling */
.santa-hat img {
    width: 100%;
    height: auto;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* Responsive hat sizes to match logo */
@media (min-width: 768px) {
    .santa-hat {
        top: -8px;
        left: 15%;
        transform: translateX(-50%) rotate(-20deg);
        width: 26px;
    }
}

@media (min-width: 1280px) {
    .santa-hat {
        top: -10px;
        left: 15%;
        transform: translateX(-50%) rotate(-20deg);
        width: 30px;
    }
}
