/* ==========================================================================
   ASI DEMOS - Visual Overlays (Grid, Noise)
   Subtle overlays for demo UI
   ========================================================================== */

/* Grid Overlay - Whisper subtle, barely there */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: var(--z-overlay);
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.6;
}

/* Noise Overlay - Film Grain Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: var(--z-overlay);
    opacity: var(--color-overlay-noise);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hide overlays on mobile for performance */
@media (max-width: 768px) {
    .grid-overlay {
        opacity: 0.5;
    }
}
