/* Обертка списка отзывов */
.bb-feedback-wrap {
    margin: 30px 0;
}

/* Статистика */
.bb-tutor-stats {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.bb-stats-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}

.bb-stats-avg {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    min-width: 150px;
}

.bb-stats-number {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.bb-stats-stars {
    margin: 12px 0;
    font-size: 24px;
}

.bb-stats-total {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

/* Распределение рейтинга */
.bb-stats-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bb-stats-bar-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
    align-items: center;
}

.bb-stats-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: right;
}

.bb-stats-bar-wrap {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.bb-stats-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.bb-stats-bar-count {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* Популярные теги */
.bb-stats-tags {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.bb-stats-tags h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #1f2937;
}

.bb-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bb-popular-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    font-weight: 500;
}

.bb-popular-tag small {
    color: #6b7280;
}

/* Фильтры */
.bb-feedback-filters {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.bb-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bb-filter-input,
.bb-filter-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.bb-filter-input {
    flex: 1;
    min-width: 200px;
}

.bb-filter-select {
    min-width: 150px;
}

.bb-btn-secondary {
    background: #6b7280;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-btn-secondary:hover {
    background: #4b5563;
}

/* Список отзывов */
.bb-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bb-feedback-item {
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.bb-feedback-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bb-feedback-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.bb-feedback-avatar {
    flex-shrink: 0;
}

.bb-feedback-avatar img {
    border-radius: 50%;
}

.bb-feedback-meta {
    flex: 1;
}

.bb-feedback-author {
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 4px;
}

.bb-feedback-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.bb-feedback-rating {
    font-size: 18px;
}

/* Теги в отзыве */
.bb-feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bb-feedback-tag {
    padding: 4px 12px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    font-size: 13px;
}

/* Контент отзыва */
.bb-feedback-content {
    color: #374151;
    line-height: 1.7;
    margin-bottom: 12px;
}

.bb-feedback-lesson {
    font-size: 13px;
    color: #9ca3af;
}

/* Пустое состояние */
.bb-feedback-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* Пагинация */
.bb-feedback-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 30px 0 20px;
}

.bb-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bb-page-link:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.bb-page-link.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Итого */
.bb-feedback-summary {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 20px;
}

/* Кнопка "Read more" */
.bb-read-more {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.bb-read-more:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Анимация появления */
.bb-feedback-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bb-feedback-item.bb-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .bb-stats-summary {
        grid-template-columns: 1fr;
    }
    
    .bb-filters-row {
        flex-direction: column;
    }
    
    .bb-filter-input,
    .bb-filter-select {
        width: 100%;
    }
    
    .bb-feedback-item {
        padding: 16px;
    }
}