/* ==========================================================================
   SKYFALL V3 - PAGE LOADER
   ========================================================================== */

/* Loader Container */
#skyfall-loader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#skyfall-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* HUD Box */
.loader-hud {
    position: relative;
    padding: 3rem 4rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(234, 88, 12, 0.1);
    box-shadow: 0 0 50px rgba(234, 88, 12, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.loader-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(234, 88, 12, 0.3));
    opacity: 0;
    animation: logo-fade-in 0.5s ease-out forwards 0.2s;
}

@keyframes logo-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Vertical Scanline (1px moving Left to Right) */
.loader-scanline {
    position: absolute;
    top: 0;
    left: -10%;
    width: 1px;
    height: 100%;
    background: rgba(234, 88, 12, 0.8);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.8);
    animation: scanline-pass 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 10;
}

@keyframes scanline-pass {
    0% {
        left: -10%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 110%;
        opacity: 0;
    }
}

/* HUD Corners */
.loader-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #EA580C;
    transition: all 0.3s ease;
}

.lc-tl {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.lc-tr {
    top: 0;
    right: 0;
    border-left: 0;
    border-bottom: 0;
}

.lc-bl {
    bottom: 0;
    left: 0;
    border-right: 0;
    border-top: 0;
}

.lc-br {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
}

/* Grid Overlay */
.loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(234, 88, 12, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 88, 12, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Loading Status Text */
.loader-status {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #EA580C;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 1rem;
}

.loader-status::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}
