/*
====================================================================
  WIKI SWIPER LOADING - TELA DE CARREGAMENTO LOCAL
  
  SISTEMA COMPLETO DE LOADING PARA TROCA DE IDIOMA DA WIKI
  
  CARACTERÍSTICAS IMPLEMENTADAS:
  ✅ Posicionamento local sobre o carrossel da Wiki
  ✅ Aparece apenas durante a troca de idioma
  ✅ Ocultação instantânea do Swiper durante carregamento
  ✅ Animações suaves e efeitos visuais
  ✅ Design responsivo para todas as telas
  ✅ Efeitos de blur e transparência para cobertura total
  ✅ Spinner duplo com cores do tema
  ✅ Barra de progresso animada
  ✅ Mensagens dinâmicas com efeitos de glow
  
  POSICIONAMENTO:
  - position: absolute sobre o container do Swiper
  - z-index: 1000 para ficar acima de tudo
  - width/height: 100% para cobrir completamente
  - border-radius: inherit para seguir o container pai
  
  EFEITOS VISUAIS:
  - background: rgba(15, 6, 46, 0.98) com alta opacidade
  - backdrop-filter: blur(8px) para desfoque do fundo
  - transform: scale() para efeito de entrada/saída
  - transition: none para entrada instantânea
  - transition: 0.2s ease-in para saída suave
  
  RESPONSIVIDADE:
  - Mobile: Spinner menor, textos reduzidos
  - Tablet: Tamanho intermediário
  - Desktop: Tamanho completo com todos os efeitos
  
  INTEGRAÇÃO:
  - HTML: sites/public/componentes/loading/wiki_swiper_loading.html
  - JS: sites/public/componentes/loading/wiki_swiper_loading.js
  - Seção Wiki: sites/public/componentes/landingpage_portifolio/06_wiki/desktop/
  
  Autor: #@HD
  Data de criação: 30/09/2025
  Última atualização: 30/09/2025
====================================================================
*/

/* ====================================================================
   WIKI SWIPER LOADING CONTAINER - POSICIONAMENTO LOCAL
   ==================================================================== */
.wiki-swiper-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 6, 46, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: none; /* Sem transição inicial */
    border-radius: inherit;
}

.wiki-swiper-loading.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: all 0.2s ease-in;
}

/* Conteúdo centralizado */
.wiki-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* ====================================================================
   WIKI LOADING SPINNER - ESPECÍFICO PARA WIKI
   ==================================================================== */
.wiki-loading-spinner {
    width: 50px;
    height: 50px;
    position: relative;
    margin-bottom: 15px;
}

.wiki-loading-spinner::before,
.wiki-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: wikiSpin 1.2s linear infinite;
}

.wiki-loading-spinner::before {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(18, 247, 255, 0.2);
    border-top: 3px solid #12f7ff;
    animation: wikiSpin 1s linear infinite;
}

.wiki-loading-spinner::after {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border: 2px solid rgba(255, 18, 18, 0.3);
    border-top: 2px solid #ff1212;
    animation: wikiSpin 1.5s linear infinite reverse;
}

@keyframes wikiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animação de pulsação para o spinner */
.wiki-loading-spinner {
    animation: wikiPulse 2s ease-in-out infinite;
}

@keyframes wikiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ====================================================================
   WIKI LOADING TEXT - ESTILO ESPECÍFICO
   ==================================================================== */
.wiki-loading-text {
    color: #f5f5f5;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    animation: wikiTextGlow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(18, 247, 255, 0.5);
}

.wiki-loading-subtext {
    color: #12f7ff;
    font-size: 0.85rem;
    opacity: 0.8;
    animation: wikiFadeInOut 3s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes wikiTextGlow {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 10px rgba(18, 247, 255, 0.5);
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        text-shadow: 0 0 20px rgba(18, 247, 255, 0.8);
        transform: scale(1.02);
    }
}

@keyframes wikiFadeInOut {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ====================================================================
   WIKI LOADING PROGRESS BAR - COMPACTA
   ==================================================================== */
.wiki-loading-progress {
    width: 180px;
    height: 3px;
    background: rgba(18, 247, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.wiki-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff1212, #12f7ff, #ff1212);
    background-size: 200% 100%;
    border-radius: 8px;
    width: 0%;
    animation: wikiProgress 2s ease-in-out infinite, wikiGradientShift 3s ease-in-out infinite;
    position: relative;
}

.wiki-loading-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: wikiShimmer 1.5s ease-in-out infinite;
}

@keyframes wikiProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes wikiGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes wikiShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ====================================================================
   EFEITOS ADICIONAIS - WIKI ESPECÍFICO
   ==================================================================== */
/* Efeito de onda no spinner */
.wiki-loading-spinner::before {
    box-shadow: 0 0 15px rgba(18, 247, 255, 0.4);
}

.wiki-loading-spinner::after {
    box-shadow: 0 0 10px rgba(255, 18, 18, 0.4);
}

/* Animação de entrada suave */
.wiki-loading-content > * {
    animation: wikiSlideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.wiki-loading-content > *:nth-child(1) { animation-delay: 0.1s; }
.wiki-loading-content > *:nth-child(2) { animation-delay: 0.2s; }
.wiki-loading-content > *:nth-child(3) { animation-delay: 0.3s; }
.wiki-loading-content > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes wikiSlideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================================
   RESPONSIVE - WIKI LOADING
   ==================================================================== */
@media (max-width: 768px) {
    .wiki-loading-spinner {
        width: 40px;
        height: 40px;
    }
    
    .wiki-loading-text {
        font-size: 1rem;
    }
    
    .wiki-loading-subtext {
        font-size: 0.8rem;
    }
    
    .wiki-loading-progress {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .wiki-loading-content {
        padding: 15px;
    }
    
    .wiki-loading-spinner {
        width: 35px;
        height: 35px;
        margin-bottom: 12px;
    }
    
    .wiki-loading-text {
        font-size: 0.9rem;
    }
    
    .wiki-loading-subtext {
        font-size: 0.75rem;
    }
    
    .wiki-loading-progress {
        width: 120px;
        height: 2px;
    }
}
