/**
 * ============================================
 * ARQUIVO: frontend.css
 * VERSAO: 3.1.0 - Classes CSS atualizadas
 * DESCRIÇÃO: Estilos correspondentes ao painel admin
 * ============================================
 */

/* ===== CONTAINER DE ETIQUETAS ===== */
.aqe-etiqueta-container {
    margin: 10px 0;
    min-height: 10px;
}

/* ===== ETIQUETAS - BASE ===== */
.aqe-etiqueta {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 10px 0;
    border-left: 4px solid;
    transition: all 0.3s ease;
    animation: slideInEtiqueta 0.5s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aqe-etiqueta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===== ETIQUETAS - TIPOS ===== */

/* Etiqueta Sucesso */
.aqe-etiqueta-sucesso {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

/* Etiqueta Revisão */
.aqe-etiqueta-revisao {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

/* Etiqueta Hard */
.aqe-etiqueta-hard {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
}

/* Etiqueta Hard Dominada */
.aqe-etiqueta-dominada {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-color: #17a2b8;
}

/* ===== COMPATIBILIDADE - Classes antigas ===== */
.aqe-etiqueta.sucesso {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #28a745;
}

.aqe-etiqueta.revisao {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-color: #ffc107;
}

.aqe-etiqueta.hard {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border-color: #dc3545;
}

.aqe-etiqueta.hard-dominada {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-color: #17a2b8;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInEtiqueta {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MENSAGEM VAZIA ===== */
.aqe-empty-message {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
}

.aqe-empty-message p {
    margin: 0;
    color: #6c757d;
    font-style: italic;
    font-size: 14px;
}

/* ===== NÍVEL DO USUÁRIO ===== */
.aqe-nivel-usuario-container {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.aqe-nivel-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.aqe-nivel-icon {
    font-size: 32px;
    line-height: 1;
}

.aqe-nivel-texto {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* Cores por nível */
.aqe-nivel-usuario-container.nivel-iniciante {
    border-left: 5px solid #28a745;
}

.aqe-nivel-usuario-container.nivel-intermediario {
    border-left: 5px solid #ffc107;
}

.aqe-nivel-usuario-container.nivel-avancado {
    border-left: 5px solid #dc3545;
}

/* ===== BARRA DE PROGRESSO ===== */
.aqe-nivel-progress {
    margin-top: 15px;
}

.aqe-progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.aqe-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.aqe-progress-fill::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%); }
}

.aqe-progress-text {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #6c757d;
    text-align: center;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .aqe-etiqueta {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .aqe-nivel-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .aqe-nivel-icon {
        font-size: 28px;
    }
    
    .aqe-nivel-texto {
        font-size: 16px;
    }
}

/* ===== LOADING STATE ===== */
.aqe-etiqueta-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.aqe-etiqueta-container.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== GUEST MESSAGE ===== */
.aqe-nivel-usuario-guest {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    color: #495057;
    text-align: center;
    margin: 20px 0;
}

/* ===== ESTATÍSTICAS DO NÍVEL ===== */
.aqe-nivel-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.aqe-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.aqe-stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.aqe-stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.aqe-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

@media (max-width: 480px) {
    .aqe-nivel-stats {
        grid-template-columns: 1fr;
    }
}