/* ============================================
   Aura Chess — Global Site Loader
   ============================================ */

/* Full-screen overlay */
#aura-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0b0f14;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#aura-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── Spinning ring ── */
.loader-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00C8FF;
    border-bottom-color: #a855f7;
    animation: loaderSpin 1.2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 25px rgba(0, 200, 255, 0.25),
        inset 0 0 25px rgba(168, 85, 247, 0.15);
}

/* Inner glow circle */
.loader-ring::before {
    content: '';
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.08) 0%, transparent 70%);
}

/* ── Brand text ── */
.loader-brand {
    margin-top: 24px;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #00C8FF 0%, #a855f7 50%, #00C8FF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loaderGradient 2.5s ease infinite;
    text-transform: uppercase;
}

/* ── Sub-text dots ── */
.loader-dots {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00C8FF;
    opacity: 0.3;
    animation: loaderDot 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── Keyframes ── */
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderGradient {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes loaderDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40%           { opacity: 1;   transform: scale(1.4); }
}
