/**
 * Christmas Skin CSS
 */

/* --- Snow Animation --- */
/* --- Animation Container --- */
/* --- Animation Container --- */
.christmas-skin-container-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* --- Frost Effect --- */
.cs-frost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(255, 255, 255, 0.4) 90%, rgba(255, 255, 255, 0.8) 100%);
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.5);
    z-index: 9998;
    pointer-events: none;
}

/* --- Northern Lights (Aurora) --- */
.cs-aurora-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 150, 0.2), rgba(0, 50, 255, 0.2), rgba(255, 0, 255, 0.2));
    background-size: 200% 200%;
    filter: blur(30px);
    animation: aurora 10s ease infinite;
    z-index: 9000;
}

@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Golden Dust --- */
.cs-item.golden-dust {
    color: #FFD700;
    text-shadow: 0 0 2px #FFD700;
    border-radius: 50%;
}

/* --- Bokeh Lights --- */
.cs-item.bokeh-light {
    position: absolute;
    /* Size and color set in JS */
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(20px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

.cs-item {
    position: absolute;
    top: -50px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    user-select: none;
    z-index: 9999;
    animation-name: fall, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

/* Specific styles for different types */
.cs-item.sparkle {
    animation-name: fall, twinkle;
}

@keyframes fall {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

@keyframes sway {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(50px) rotate(180deg);
    }

    100% {
        transform: translateX(0) rotate(360deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* --- Smooth Scroll & Modern UI --- */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d42426;
    /* Christmas Red */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b31217;
}

/* --- Burst Animation --- */
.cs-burst-item {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: burst 1s ease-out forwards;
}

@keyframes burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--moveX), var(--moveY)) scale(0);
        opacity: 0;
    }
}

/* --- Navbar Decoration --- */
/* Navbar color is now controlled via the backoffice color picker */
/* The color is applied via JavaScript in front.js */

/* Add a "snow" border effect to the bottom of the nav */
#header .header-nav::after,
.header-nav::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, #fff 50%, transparent 60%) repeat-x;
    background-size: 20px 20px;
    z-index: 10;
}

/* Change text colors in nav to white for better contrast on red */
#header .header-nav a,
.header-nav a,
#header .header-nav span,
.header-nav span,
#header .header-top a,
.header-top a {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* --- Footer Decoration --- */
#footer,
.footer-container {
    background: #1a472a !important;
    /* Christmas Green */
    color: #fff !important;
    border-top: 5px solid #d42426;
    position: relative;
    padding-top: 20px;
}

#footer a,
.footer-container a {
    color: #e0e0e0 !important;
}

#footer a:hover,
.footer-container a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Festive footer header text */
#footer h1,
#footer h2,
#footer h3,
#footer h4,
.footer-container h1,
.footer-container h2,
.footer-container h3,
.footer-container h4 {
    color: #ffcc00 !important;
    /* Gold */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}