/* ═══════════════════════════════════════
   PREMIUM FULL-WIDTH PRELOADER
   Centralized Styles for MK WordPress Designer
   ═══════════════════════════════════════ */

.loader {
    position: fixed;
    inset: 0;
    background: #05050a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader.hidden {
    display: none;
}

/* Background Cinematic Orbs */
.loader-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.loader-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.loader-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.loader-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
}

.loader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    width: 100%;
    opacity: 0;
    /* Ready for GSAP */
}

.loader-logo {
    opacity: 0;
    /* Ready for GSAP */
    transform: translateY(20px);
    margin-bottom: var(--space-4);
}

.loader-logo-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 30px var(--color-primary-glow));
}

.loader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
}

.loader-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.loader-number {
    font-size: 8rem;
    /* Larger, more impactful */
    font-weight: 900;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(130, 36, 227, 0.3);
    line-height: 0.9;
}

.loader-percent {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-primary-light);
}

/* FULL-WIDTH MAJESTIC BAR */
.loader-bar {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 20;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--color-primary) 30%,
            var(--color-secondary) 70%,
            white 100%);
    box-shadow: 0 0 30px var(--color-primary), 0 0 60px var(--color-primary-glow);
    position: relative;
    transition: width 0.1s ease;
}

/* Creative Light Beam */
.loader-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    filter: blur(15px);
    z-index: 21;
}

.loader-typing {
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    height: 20px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .loader-number {
        font-size: 5rem;
    }

    .loader-logo-img {
        height: 70px;
    }
}