/* ==============================================
   spinner-global.css – Teams FC
   Loader global con paleta: dorado #ffd700,
   azul cian #00e5ff, rojo sutil #dc3545
   ============================================== */

/* ---------- OVERLAY FULL SCREEN ---------- */
.main-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

/* Radial dorado sutil en la parte superior */
.main-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.06), transparent 60%);
    pointer-events: none;
}

/* Línea roja inferior — acento mínimo */
.main-loader::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.55), transparent);
    animation: fc-scanline 2.5s ease-in-out infinite;
}

/* Clase para ocultar el loader cuando la página ya cargó */
.main-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ---------- CONTENEDOR CENTRAL ---------- */
.fc-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* ---------- LOGO SVG ---------- */
.fc-loader__svg {
    height: 130px;
    display: block;
}

/* Animación pulse por path — cian con halo dorado en el pico */
.fc-loader__svg path {
    animation: fc-pulse 1s infinite;
    fill: #00e5ff;
}

.fc-loader__svg .path-7 { animation-delay: -1s;    }
.fc-loader__svg .path-6 { animation-delay: -.875s; }
.fc-loader__svg .path-5 { animation-delay: -.75s;  }
.fc-loader__svg .path-4 { animation-delay: -.625s; }
.fc-loader__svg .path-3 { animation-delay: -.5s;   }
.fc-loader__svg .path-2 { animation-delay: -.375s; }
.fc-loader__svg .path-1 { animation-delay: -.25s;  }
.fc-loader__svg .path-0 { animation-delay: -.125s; }

/* ---------- ANILLOS DOBLES ---------- */
.fc-loader__rings {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Anillo exterior — cian */
.fc-loader__ring-outer {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 229, 255, 0.12);
    border-top-color: #00e5ff;
    border-right-color: rgba(0, 229, 255, 0.4);
    animation: fc-spin 1.1s linear infinite;
}

/* Anillo interior — dorado, gira al revés */
.fc-loader__ring-inner {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 215, 0, 0.12);
    border-bottom-color: #ffd700;
    border-left-color: rgba(255, 215, 0, 0.35);
    animation: fc-spin 0.75s linear infinite reverse;
}

/* Punto central rojo — acento mínimo */
.fc-loader__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.85);
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.9),
                0 0 8px rgba(220, 53, 69, 0.35);
    animation: fc-dotpulse 1s ease-in-out infinite;
}

/* ---------- TEXTO DE MARCA ---------- */
.fc-loader__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.fc-loader__title {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffd700;
    opacity: 0.85;
    animation: fc-blink 1.8s ease-in-out infinite;
}

.fc-loader__subtitle {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 229, 255, 0.55);
    animation: fc-blink 1.8s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* ---------- BARRA DE PROGRESO ---------- */
.fc-loader__bar-wrap {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.fc-loader__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #ffd700);
    border-radius: 999px;
    animation: fc-loadbar 1.8s ease-in-out infinite;
}

/* ---------- KEYFRAMES ---------- */
@keyframes fc-pulse {
    0%   { opacity: .07; filter: drop-shadow(0 0 0px #00e5ff); }
    40%  { opacity: 1;   filter: drop-shadow(0 0 5px #ffd700) drop-shadow(0 0 10px rgba(0, 229, 255, 0.4)); }
    100% { opacity: .07; filter: drop-shadow(0 0 0px #00e5ff); }
}

@keyframes fc-spin {
    to { transform: rotate(360deg); }
}

@keyframes fc-dotpulse {
    0%,100% { transform: scale(0.7); opacity: 0.5; }
    50%      { transform: scale(1.2); opacity: 1;   }
}

@keyframes fc-blink {
    0%,100% { opacity: 0.3; }
    50%      { opacity: 1;   }
}

@keyframes fc-loadbar {
    0%   { width: 0%;   margin-left: 0%;    }
    50%  { width: 80%;  margin-left: 10%;   }
    100% { width: 0%;   margin-left: 100%;  }
}

@keyframes fc-scanline {
    0%,100% { opacity: 0; transform: scaleX(0.3); }
    50%      { opacity: 1; transform: scaleX(1);   }
}