/* ============================================
   SEEARCH - Loading Overlay
   Paleta alinhada com style.css
   ============================================ */

#loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a1a1a 50%, #0d1b2e 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.45s ease;
}

/* Logo */
.loading-logo {
    width: 200px;
    margin-bottom: 2.5rem;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.85; transform: scale(0.97); }
}

/* Barra de progresso */
.loading-bar-wrapper {
    width: 280px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0d6efd, #6610f2, #0d6efd);
    background-size: 200% 100%;
    animation: barSlide 2s ease-in-out infinite, shimmer 2s linear infinite;
}

@keyframes barSlide {
    0%   { width: 0%; }
    60%  { width: 85%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* Ícones orbitando */
.loading-orbit {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.loading-orbit .center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    color: #0d6efd;
}

.loading-orbit .orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #0d6efd;
    box-shadow: 0 0 8px #0d6efd;
}

.loading-orbit .orbit-dot:nth-child(2) {
    animation: orbit 1.8s linear infinite;
}
.loading-orbit .orbit-dot:nth-child(3) {
    animation: orbit 1.8s linear infinite -0.6s;
    background: #6610f2;
    box-shadow: 0 0 8px #6610f2;
}
.loading-orbit .orbit-dot:nth-child(4) {
    animation: orbit 1.8s linear infinite -1.2s;
    background: #0a58ca;
    box-shadow: 0 0 8px #0a58ca;
}

@keyframes orbit {
    0%   { transform: rotate(0deg)   translateX(32px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(32px) rotate(-360deg); }
}

/* Texto */
.loading-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    text-align: center;
    transition: opacity 0.3s ease;
}

.loading-text span {
    color: #0d6efd;
    font-weight: 600;
}

/* Rodapé */
.loading-footer {
    position: absolute;
    bottom: 2rem;
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}