/* Стили для страницы профиля */

/* Шапка профиля */
.profile-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-avatar {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin-bottom: 5px;
    font-size: 28px;
    color: #333;
}

.profile-role {
    color: #8B5A2B;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 16px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #1F3438;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Контент профиля */
.profile-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.profile-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.profile-tab:hover {
    color: #8B5A2B;
    background-color: rgba(139, 90, 43, 0.05);
}

.profile-tab.active {
    color: #8B5A2B;
    border-bottom-color: #8B5A2B;
    background-color: rgba(139, 90, 43, 0.05);
}

.tab-content {
    padding: 30px;
}

.tab-content h2 {
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

/* Сохраненные материалы */
.saved-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.category-filter {
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-filter:hover {
    background-color: #e0e0e0;
}

.category-filter.active {
    background-color: #8B5A2B;
    color: #fff;
}

.saved-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.saved-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #8B5A2B;
}

.saved-item-type {
    flex: 0 0 80px;
    color: #8B5A2B;
    font-weight: 500;
}

.saved-item-type i {
    font-size: 20px;
    margin-right: 5px;
}

.saved-item-info {
    flex: 1;
}

.saved-item-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.saved-item-info h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.saved-item-info h3 a:hover {
    color: #8B5A2B;
}

.saved-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.saved-date i, .saved-author i {
    margin-right: 5px;
    color: #8B5A2B;
}

.saved-item-info p {
    color: #555;
    line-height: 1.5;
}

.saved-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.small-btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* Моя активность */
.activity-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.activity-filter {
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.activity-filter:hover {
    background-color: #e0e0e0;
}

.activity-filter.active {
    background-color: #8B5A2B;
    color: #fff;
}

.activity-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.activity-icon {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: #fff;
}

.comment-icon {
    background-color: #1F3438;
}

.question-icon {
    background-color: #8B5A2B;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.activity-header h3 {
    font-size: 18px;
    color: #333;
    margin-right: 15px;
}

.activity-date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.activity-text {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
}

.activity-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.activity-link {
    color: #8B5A2B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.activity-link:hover {
    color: #6a4420;
    text-decoration: underline;
}

.activity-status {
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 4px;
}

.activity-status.answered {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.activity-status.pending {
    background-color: rgba(245, 124, 0, 0.1);
    color: #f57c00;
}

/* Настройки профиля */
.profile-form {
    max-width: 800px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #8B5A2B;
    outline: none;
}

.avatar-input {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.file-input {
    display: none;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
}

.form-check-label {
    color: #444;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .saved-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .saved-item-type {
        flex: 0 0 auto;
    }
    
    .saved-actions {
        flex-direction: row;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .avatar-input {
        flex-direction: column;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .activity-icon {
        margin: 0 auto;
    }
    
    .activity-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .activity-date {
        margin-left: 0;
    }
} 