/* Estilos para páginas de usuários */

/* Cards de usuários */
.user-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.user-card .card-body {
    padding: 1.5rem;
}

/* Avatar placeholders */
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-placeholder-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-placeholder-xs {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Estatísticas do usuário */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 1rem;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stats-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Feed de comentários */
.comment-feed {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.comment-content {   
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.comment-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    /*background: linear-gradient(transparent, rgba(255,255,255,0.9));*/
    pointer-events: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    margin-right: 0.5rem;
}

.comment-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.comment-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #e3f2fd;
    color: #1976d2;
}

/* Links para questões */
.questao-link {
    margin-top: 1rem;
}

.questao-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.questao-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.questao-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
}

.questao-info {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Barra de progresso personalizada */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s ease;
}

/* Bio do usuário */
.user-bio {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Paginação personalizada */
.pagination-custom .page-link {
    color: #667eea;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

/* Busca de usuários */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.search-button {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Timeline */
.timeline-custom {
    position: relative;
    padding-left: 2rem;
}

.timeline-custom::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    z-index: 1;
}

/* Tema escuro */
.dark-version .user-card {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.dark-version .user-card:hover {
    box-shadow: 0 15px 35px rgba(255,255,255,0.05);
}

.dark-version .comment-item {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.dark-version .comment-item:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.05);
}

.dark-version .questao-card {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-version .questao-card:hover {
    background-color: #4b5563;
}

.dark-version .user-bio {
    background-color: #374151;
    color: #f9fafb;
}

.dark-version .search-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-version .search-input:focus {
    border-color: #667eea;
    background-color: #374151;
}

.dark-version .timeline-custom::before {
    background: #4b5563;
}

/* Responsividade */
@media (max-width: 768px) {
    .user-card {
        margin-bottom: 1rem;
    }
    
    .comment-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .stats-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-custom {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

/* Melhorias na tipografia */
.user-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.user-subtitle {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.dark-version .user-title {
    color: #f7fafc;
}

.dark-version .user-subtitle {
    color: #a0aec0;
} 