/**
 * Atmospheric Overlays CSS Framework
 *
 * Base CSS framework for layered atmospheric overlays.
 * Provides container, positioning, and z-index management.
 *
 * @package AtmosphericTextures
 */

/* ================================
   ATMOSPHERIC LAYERS CONTAINER
   ================================ */

.atmospheric-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ================================
   LAYER POSITIONING CLASSES
   ================================ */

/* Layers beneath content (negative z-index) */
.atmospheric-layer-beneath {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Layers above content (positive z-index) */
.atmospheric-layer-above {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Layers at content level (z-index: 0) */
.atmospheric-layer-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Edge-specific positioning */
.atmospheric-layer-edges {
    position: fixed;
    pointer-events: none;
}

/* ================================
   BLEND MODE SUPPORT
   ================================ */

.atmospheric-layer-beneath,
.atmospheric-layer-above,
.atmospheric-layer-content {
    mix-blend-mode: normal;
}

/* Blend mode variations */
.atmospheric-blend-normal {
    mix-blend-mode: normal;
}

.atmospheric-blend-screen {
    mix-blend-mode: screen;
}

.atmospheric-blend-overlay {
    mix-blend-mode: overlay;
}

.atmospheric-blend-multiply {
    mix-blend-mode: multiply;
}

.atmospheric-blend-soft-light {
    mix-blend-mode: soft-light;
}

.atmospheric-blend-hard-light {
    mix-blend-mode: hard-light;
}

.atmospheric-blend-color-dodge {
    mix-blend-mode: color-dodge;
}

.atmospheric-blend-color-burn {
    mix-blend-mode: color-burn;
}

/* ================================
   OVERLAY BASE STYLES
   ================================ */

.atmospheric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .atmospheric-layers {
        /* Mobile optimizations can be added here */
    }
    
    /* Hide overlays on mobile if needed */
    .atmospheric-mobile-hide {
        display: none !important;
    }
    
    /* Reduce opacity on mobile if needed */
    .atmospheric-mobile-reduce {
        opacity: 0.5 !important;
    }
}

/* ================================
   PERFORMANCE MODES
   ================================ */

/* Minimal performance mode - disable animations */
.atmospheric-layers[data-performance-mode="minimal"] .atmospheric-overlay {
    animation: none !important;
    transition: none !important;
}

/* Balanced performance mode - reduce animations */
.atmospheric-layers[data-performance-mode="balanced"] .atmospheric-overlay {
    animation-duration: 2s !important;
    transition-duration: 0.2s !important;
}

/* Full performance mode - all animations enabled (default) */
.atmospheric-layers[data-performance-mode="full"] .atmospheric-overlay {
    /* No restrictions - full animations */
}

/* ================================
   UTILITY CLASSES
   ================================ */

/* Fullscreen overlay */
.atmospheric-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

/* Edge positioning utilities */
.atmospheric-edge-top {
    top: 0;
    left: 0;
    right: 0;
    height: auto;
}

.atmospheric-edge-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
}

.atmospheric-edge-left {
    top: 0;
    left: 0;
    bottom: 0;
    width: auto;
}

.atmospheric-edge-right {
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
}

/* Corner positioning */
.atmospheric-corner-top-left {
    top: 0;
    left: 0;
}

.atmospheric-corner-top-right {
    top: 0;
    right: 0;
}

.atmospheric-corner-bottom-left {
    bottom: 0;
    left: 0;
}

.atmospheric-corner-bottom-right {
    bottom: 0;
    right: 0;
}

