/* XCO Christmas Sparkles Styles */

#xco-sparkles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    mix-blend-mode: screen;
}

/* Ensure sparkles don't interfere with user interaction */
body.has-sparkles {
    position: relative;
}

/* Optional: Reduce sparkles opacity on dark backgrounds */
@media (prefers-color-scheme: dark) {
    #xco-sparkles-canvas {
        opacity: 0.8;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #xco-sparkles-canvas {
        opacity: 0.6;
    }
}

/* Admin bar compatibility */
body.admin-bar #xco-sparkles-canvas {
    top: 32px;
    height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar #xco-sparkles-canvas {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* Performance optimization for older browsers */
@supports not (mix-blend-mode: screen) {
    #xco-sparkles-canvas {
        opacity: 0.7;
    }
}

/* Christmas theme enhancement - optional Santa cursor */
.xco-christmas-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="28">🎅</text></svg>'), auto;
}
