/* ============================================
   LOADER PREMIUM - ZELO
   Rápido + Motivacional + Visual Premium
   © 2026 LITE STUDIO
   ============================================ */

.st-loader-container {
    position: fixed;
    inset: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 32px 24px;
    overflow: hidden;
}

/* Background sutil */
.st-loader-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: loaderGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes loaderGlow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.5; 
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15); 
        opacity: 0.8; 
    }
}

/* Logo */
.st-loader-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 32px;
}

.st-loader-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    box-shadow: 
        0 15px 50px rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-8px); 
    }
}

.st-loader-icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

/* Título */
.st-loader-title {
    font-family: 'Teko', 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3em;
    margin: 0 0 8px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Status */
.st-loader-status {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
    min-height: 20px;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
}

.st-loader-status.done {
    color: #10b981;
    font-weight: 700;
}

/* Barra de progresso */
.st-loader-progress {
    width: 100%;
    max-width: 300px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.st-loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffffff 0%, #e5e5e5 100%);
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.st-loader-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%
    );
    animation: barShimmer 1.8s linear infinite;
}

@keyframes barShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.st-loader-bar.done {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Percentual */
.st-loader-percent {
    font-family: 'JetBrains Mono', 'Share Tech Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.st-loader-percent.done {
    color: #10b981;
}

/* ============================================
   DICAS MOTIVACIONAIS
   ============================================ */
.st-loader-tips {
    width: 100%;
    max-width: 400px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.st-loader-tip {
    text-align: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    animation: tipFadeIn 0.4s ease;
    width: 100%;
}

.st-loader-tip.fade-out {
    animation: tipFadeOut 0.3s ease forwards;
}

@keyframes tipFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes tipFadeOut {
    from { 
        opacity: 1; 
        transform: translateY(0); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
}

.st-loader-tip-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: rgba(16, 185, 129, 0.8);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.st-loader-tip-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Dots animados */
.st-loader-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.st-loader-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dotPulse 1.2s ease-in-out infinite;
}

.st-loader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.st-loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
        background: #ffffff;
    }
}

/* Versão */
.st-loader-version {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}

/* Animação de saída */
.st-loader-container.exiting {
    animation: loaderExit 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
        pointer-events: none;
    }
}

/* Responsivo */
@media (max-width: 480px) {
    .st-loader-container {
        padding: 24px 16px;
    }
    
    .st-loader-icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
    }
    
    .st-loader-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .st-loader-title {
        font-size: 1.8rem;
    }
    
    .st-loader-progress {
        max-width: 260px;
    }
    
    .st-loader-percent {
        font-size: 1.7rem;
    }
    
    .st-loader-tips {
        max-width: 320px;
    }
    
    .st-loader-tip {
        padding: 12px 16px;
    }
    
    .st-loader-tip-text {
        font-size: 0.88rem;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .st-loader-icon,
    .st-loader-container::before,
    .st-loader-bar::before,
    .st-loader-dots span,
    .st-loader-tip {
        animation: none;
    }
}