/* Profile Styles */

.profile-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.profile-avatar {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: #333;
}

.user-title {
    color: #777;
    text-transform: capitalize;
    margin-bottom: 15px;
}

.user-stats {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4e73df;
}

.stat-label {
    font-size: 0.9rem;
    color: #777;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.profile-body {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #eaedf2;
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #777;
    position: relative;
    white-space: nowrap;
}

.tab-btn.active {
    color: #4e73df;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #4e73df;
}

.tab-content {
    padding: 25px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.bio-section {
    margin-bottom: 30px;
}

.bio-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.bio-text {
    line-height: 1.6;
    color: #555;
}

.threads-list, .replies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thread-item, .reply-item {
    background-color: #f7f9fc;
    border-radius: 6px;
    padding: 15px;
}

.thread-title {
    margin-bottom: 10px;
}

.thread-title a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.thread-title a:hover {
    color: #4e73df;
}

.thread-meta, .reply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
}

.reply-thread {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.reply-content {
    margin-bottom: 10px;
    color: #555;
}

.solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #ebfbee;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.view-more {
    margin-top: 20px;
    text-align: center;
}

.no-content {
    color: #777;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
}