/* Aggregate Rating */
.aggregate-rating {
    padding: 20px;
}

.aggregate-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.aggregate-stars {
    margin: 10px 0;
}

.aggregate-count {
    color: #666;
    font-size: 0.95rem;
}

/* Star Distribution */
.star-distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.star-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.star-bar:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.star-bar.active {
    background-color: #eef2ff;
    border: 1px solid #4a6cf7;
}

.star-label {
    width: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.star-bar-track {
    flex: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.star-bar-fill {
    height: 100%;
    background-color: #ffc107;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.star-count {
    width: 45px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef2ff;
    color: #4a6cf7;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.filter-tag a {
    color: #4a6cf7;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
}

.filter-tag a:hover {
    color: #d32f2f;
}

.clear-all {
    font-size: 0.85rem;
    color: #999;
}

.filter-result-count {
    font-size: 0.9rem;
    color: #666;
}

/* Review Cards */
.review-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.review-card-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 8px;
}

.review-card-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.review-card-meta {
    font-size: 0.9rem;
    color: #555;
}

.review-card-country {
    color: #888;
    font-size: 0.85rem;
}

.review-card-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 6px;
}

/* Verified Badge */
.verified-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 6px;
}

/* Featured Reviews */
.review-card.featured {
    border: 2px solid #4a6cf7;
    background: #fafbff;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.review-card.featured .review-card-content {
    flex: 1;
}

.review-card.featured .review-card-meta {
    margin-top: 15px;
}

.featured-badge {
    display: inline-block;
    background: #4a6cf7;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

/* Search */
.reviews-search .form-control {
    border-radius: 6px 0 0 6px;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
}

.reviews-search .btn {
    border-radius: 0 6px 6px 0;
    padding: 8px 16px;
}

/* Pagination */
.pagination .page-link {
    color: #4a6cf7;
    border-color: #dee2e6;
    padding: 8px 14px;
}

.pagination .page-item.active .page-link {
    background-color: #4a6cf7;
    border-color: #4a6cf7;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* Responsive */
@media (max-width: 991px) {
    .aggregate-rating {
        padding: 10px;
    }

    .aggregate-score {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .review-card {
        padding: 16px;
    }

    .star-count {
        width: 35px;
    }
}
