/* Стили для экспертов */

/* Карточки экспертов */
.expert-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.expert-card-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.verified-badge, .featured-badge {
    margin-left: 5px;
}

.expert-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.expert-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    font-size: 3rem;
    color: #adb5bd;
    margin: 0 auto;
}

/* Стили для рейтинга */
.expert-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.rating-value {
    font-weight: bold;
    margin-right: 5px;
}

.rating-stars {
    display: inline-flex;
}

/* Подробная страница эксперта */
.expert-detail-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.expert-rating-large {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.expert-social-links .btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 6px 0;
    text-align: center;
    font-size: 16px;
}

.expert-bio {
    line-height: 1.6;
}

/* Отзывы */
.review-item {
    margin-bottom: 15px;
}

.review-rating {
    color: #ffc107;
}

/* Похожие эксперты */
.similar-experts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.similar-expert {
    text-align: center;
    margin: 0 5px;
}

.similar-expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 5px;
}

.similar-expert-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .expert-card-header {
        position: static;
        text-align: right;
        padding: 10px;
    }
    
    .expert-detail-photo {
        width: 120px;
        height: 120px;
    }
}