/* =============================
   Reviews Page
============================= */

.reviews-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(26px, 3vw, 38px);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    min-height: 46px;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    background: var(--glass-tint);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition:
        background-color var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out),
        transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out);
}

.filter-btn:hover {
    color: var(--primary-dark);
    background: var(--primary-light);
    border-color: rgba(255, 106, 0, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn[aria-pressed="true"] {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.filter-count {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.reviews-grid .review-card {
    flex: initial;
    width: auto;
    animation: cardIn var(--dur-base) var(--ease-out);
}

.reviews-grid .review-card[hidden] {
    display: none;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

.reviews-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-strong);
    background: var(--glass-tint);
}

.reviews-empty[hidden] {
    display: none;
}

/* Hero Grid layout for Reviews page */
.page-hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.page-hero-grid .page-hero-text {
    flex: 1 1 320px;
}

/* Summary panel inside Hero Header */
.review-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(18px, 2.5vw, 24px) clamp(24px, 3vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md), var(--shadow-inset-glass);
    margin-inline: 0;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .page-hero-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-summary {
        width: 100%;
        margin-inline: auto;
    }
}

.review-score {
    text-align: center;
}

.review-score b {
    display: block;
    font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary-dark);
}

.review-score span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

/* Demo data notice */
.demo-notice {
    display: flex;
    gap: 14px;
    margin-top: clamp(28px, 3vw, 40px);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed var(--border-strong);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.7;
}

.demo-notice svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--primary);
}
