/* Jitonex Global - Christmas Festive Mode Theme */
body.christmas-theme {
    background-color: #fdfbf9;
}

.xmas-banner {
    background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 35%, #065f46 70%, #7f1d1d 100%);
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 16px;
    text-align: center;
    position: relative;
    z-index: 45;
    border-bottom: 2px solid #f59e0b;
}

.xmas-banner button.xmas-copy-pill {
    background: rgba(255, 255, 255, 0.2);
    color: #fef3c7;
    padding: 2px 7px;
    border-radius: 5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid rgba(254, 243, 199, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.xmas-banner button.xmas-copy-pill:hover {
    background: #fbbf24;
    color: #7f1d1d;
}

/* Twinkling Fairy Lights Strip */
.xmas-lights {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 12px;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(6, 95, 70, 0.14), transparent);
}

.xmas-bulb {
    width: 7px;
    height: 10px;
    border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
    display: inline-block;
    animation: xmasTwinkle 2.2s infinite ease-in-out;
}

.xmas-bulb:nth-child(3n+1) { background: #ef4444; box-shadow: 0 0 8px #ef4444; animation-delay: 0s; }
.xmas-bulb:nth-child(3n+2) { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; animation-delay: 0.7s; }
.xmas-bulb:nth-child(3n+3) { background: #10b981; box-shadow: 0 0 8px #10b981; animation-delay: 1.4s; }

@keyframes xmasTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

/* Hanging Ornaments */
.xmas-ornaments {
    position: fixed;
    top: 86px;
    right: 18px;
    z-index: 35;
    display: flex;
    gap: 10px;
    pointer-events: none;
}

.xmas-ornament {
    transform-origin: top center;
    animation: xmasSway 3.6s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.xmas-ornament:nth-child(2) {
    animation-delay: 0.9s;
}

@keyframes xmasSway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

/* Festive Brand & Accent Overrides */
body.christmas-theme .xmas-logo-badge {
    background: linear-gradient(135deg, #b91c1c 0%, #065f46 100%) !important;
    border: 2px solid #fbbf24;
}

body.christmas-theme .bg-jitonex-emerald {
    background-color: #991b1b;
}

body.christmas-theme footer {
    border-top: 4px solid #991b1b;
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

/* Candy-cane festive divider */
.xmas-candy-divider {
    height: 6px;
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #b91c1c,
        #b91c1c 12px,
        #ffffff 12px,
        #ffffff 24px,
        #065f46 24px,
        #065f46 36px,
        #ffffff 36px,
        #ffffff 48px
    );
}

/* Lightweight Snowfall & Sparkle Overlay */
#xmas-snowfall {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.xmas-flake {
    position: absolute;
    top: -14px;
    color: rgba(186, 230, 253, 0.9);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
    user-select: none;
    pointer-events: none;
    animation-name: xmasSnowFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.xmas-flake.xmas-star {
    color: rgba(251, 191, 36, 0.85);
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
}

@keyframes xmasSnowFall {
    0% {
        transform: translateY(-12px) translateX(0) rotate(0deg);
        opacity: 0.95;
    }
    50% {
        transform: translateY(50vh) translateX(20px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(102vh) translateX(-14px) rotate(360deg);
        opacity: 0.2;
    }
}
