/* 
 * Effects & Immersive Interaction Layer (v2.0)
 * -------------------------------------------
 * Purpose: Global visual effects, loaders, and immersive interactive elements.
 * Dependencies: Driven by js/lightwinner.js (variables) and js/core/ui_manager.js.
 * 
 * Contents:
 * 1. Flashlight Overlay/Tint (#flashlight-overlay, #flashlight-tint)
 * 2. Cyber Loader Overlay (.cyber-loader-overlay)
 * 3. Logo/Power Switch Styling (#logo-switch)
 */

/* Global Console (Logo) - MOVED TO NAVIGATION.CSS */

/* #global-console {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: var(--z-ui);
} */

#logo-switch {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    text-shadow: 0 0 10px var(--accent-color);
    transition: transform 0.2s;
    user-select: none;
}

#logo-switch:active {
    transform: scale(0.95);
}

/* Cyber-Loader: Neon & Glitch Experience */
.cyber-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 5, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        visibility 0.5s;
}

.cyber-loader-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loader-scanline {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.1), transparent);
    top: -100px;
    left: 0;
    animation: scanlineMove 3s linear infinite;
    pointer-events: none;
}

@keyframes scanlineMove {
    0% {
        top: -100px;
    }

    100% {
        top: 100vh;
    }
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.loader-hex {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    position: relative;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hexRotate 10s linear infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.loader-hex::before {
    content: '';
    position: absolute;
    inset: 5px;
    clip-path: inherit;
    background: repeating-linear-gradient(0deg, rgba(212, 175, 55, 0.05) 0px, transparent 1px, transparent 3px);
}

.loader-inner-circle {
    width: 60px;
    height: 60px;
    border: 4px solid #D4AF37;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes hexRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #D4AF37;
    font-size: 1.2rem;
    position: relative;
    text-shadow: 2px 2px 0px rgba(255, 0, 0, 0.5), -2px -2px 0px rgba(0, 0, 255, 0.5);
    animation: textGlitch 2s infinite;
}

@keyframes textGlitch {

    0%,
    100% {
        transform: none;
        opacity: 1;
    }

    7% {
        transform: skew(-0.5deg, -0.9deg);
        opacity: 0.75;
    }

    10% {
        transform: none;
        opacity: 1;
    }

    27% {
        transform: none;
        opacity: 1;
    }

    30% {
        transform: skew(0.8deg, -0.1deg);
        opacity: 0.75;
    }

    35% {
        transform: none;
        opacity: 1;
    }

    52% {
        transform: none;
        opacity: 1;
    }

    55% {
        transform: skew(-1deg, 0.2deg);
        opacity: 0.75;
    }
}

.loader-status {
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.6);
    letter-spacing: 2px;
}