/**
 * ================================================
 * PROGRESS BARS - PADRÃO ARCA ACADEMY
 * Baseado no Brandbook Oficial
 * "Progresso: Barras douradas preenchendo conforme avanço."
 * ================================================
 */

/* ============================================
   VARIÁVEIS GLOBAIS
   ============================================ */
:root {
    --progress-bar-gradient: linear-gradient(90deg, var(--antique-gold) 0%, #b08c52 100%);
    --progress-bar-solid: var(--antique-gold);
    --progress-bar-bg: #e9ecef;
}

/* ============================================
   BARRA DE PROGRESSO PADRÃO
   ============================================ */
.arca-progress-bar {
    height: 20px;
    background: var(--progress-bar-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.arca-progress-fill {
    height: 100%;
    background: var(--progress-bar-gradient);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(197, 157, 95, 0.3);
}

/* ============================================
   VARIANTES DE TAMANHO
   ============================================ */
.arca-progress-bar.sm {
    height: 8px;
}

.arca-progress-bar.sm .arca-progress-fill {
    font-size: 0;
}

.arca-progress-bar.md {
    height: 20px;
}

.arca-progress-bar.lg {
    height: 30px;
}

.arca-progress-bar.lg .arca-progress-fill {
    font-size: 1rem;
}

/* ============================================
   ANIMAÇÃO DE SHIMMER (OPCIONAL)
   ============================================ */
.arca-progress-fill.shimmer::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: shimmer 2s infinite;
}

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

/* ============================================
   CLASSES DE COMPATIBILIDADE
   Para não quebrar código existente
   ============================================ */
.progress-bar-custom {
    height: 20px;
    border-radius: 10px;
    background: var(--progress-bar-bg);
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    background: var(--progress-bar-gradient) !important;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Bootstrap Progress Bar Override */
.progress {
    background: var(--progress-bar-bg);
}

.progress-bar {
    background: var(--progress-bar-gradient) !important;
    background-image: var(--progress-bar-gradient) !important;
}

/* Variantes de cor específicas - Todas em Dourado conforme Brandbook */
.progress-bar.bg-info,
.progress-bar.bg-primary,
.progress-bar.bg-warning,
.progress-bar.bg-secondary {
    background: var(--progress-bar-gradient) !important;
    background-image: var(--progress-bar-gradient) !important;
}

/* Apenas success e danger mantêm cores originais (para status) */
.progress-bar.bg-success {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%) !important;
}

/* ============================================
   PROGRESS BAR COM LABEL
   ============================================ */
.arca-progress-container {
    margin-bottom: 1.5rem;
}

.arca-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #4A5568);
}

.arca-progress-label .label {
    font-weight: 600;
}

.arca-progress-label .value {
    color: var(--antique-gold);
    font-weight: 700;
}

/* ============================================
   ESTADOS ESPECIAIS
   ============================================ */
.arca-progress-fill.completed {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.arca-progress-fill.warning {
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
}

.arca-progress-fill.danger {
    background: linear-gradient(90deg, #dc3545 0%, #c82333 100%);
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .arca-progress-bar {
        height: 16px;
    }
    
    .arca-progress-fill {
        font-size: 0.7rem;
    }
}

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.arca-progress-bar[role="progressbar"] {
    position: relative;
}

.arca-progress-bar[role="progressbar"]::before {
    content: attr(aria-label);
    position: absolute;
    left: -9999px;
}

/* Respeitar preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .arca-progress-fill {
        transition: none !important;
    }
    
    .arca-progress-fill.shimmer::after {
        animation: none !important;
    }
}
