/* ================================================
   SCHOLARiQ – Global Page Transition Loader
   Triggered on every Blazor SPA route change.
   NOT triggered by: infinite scroll, wizard steps,
   in-page tab switches (no URL change).
   ================================================ */

#scholariq-page-loader {
    position: fixed;
    inset: 0;
    background: #1d2330;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    will-change: opacity;
}

#scholariq-page-loader.sq-loader-visible {
    opacity: 1;
    pointer-events: auto;
}

.sq-loader-logo {
    width: 140px;
    height: auto;
    animation: sqLoaderPulse 1.8s ease-in-out infinite;
}

.sq-loader-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(184, 134, 11, 0.22);
    border-top-color: #B8860B;
    animation: sqLoaderSpin 0.75s linear infinite;
}

@keyframes sqLoaderPulse {
    0%, 100% { opacity: 1;    transform: scale(1);    }
    50%       { opacity: 0.65; transform: scale(0.96); }
}

@keyframes sqLoaderSpin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .sq-loader-logo { width: 110px; }
    .sq-loader-ring { width: 36px; height: 36px; }
}
