/* assets/agr-reviews.css */

.agr-reviews-wrap {
    font-family: inherit;
    margin: 2rem 0;
}

/* ── Aggregate score ─────────────────────────────────────────────────────────── */
.agr-aggregate {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 24px;
}

.agr-agg-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.agr-aggregate-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agr-agg-count {
    font-size: 0.875rem;
    color: #555;
}

/* ── Star icons ──────────────────────────────────────────────────────────────── */
.agr-stars,
.agr-review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.agr-star--full  path { fill: #fbbc04; }
.agr-star--half  path { fill: #fbbc04; opacity: 0.6; }
.agr-star--empty path { fill: #e0e0e0; }

/* ── Review cards ────────────────────────────────────────────────────────────── */
.agr-reviews-list {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
    gap: 20px;
}

.agr-review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba( 0,0,0,0.05 );
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.agr-review-card:hover {
    box-shadow: 0 4px 18px rgba( 0,0,0,0.1 );
    transform: translateY( -2px );
}

/* ── Card header ─────────────────────────────────────────────────────────────── */
.agr-review-header {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.agr-author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.agr-author-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2271b1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.agr-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.agr-author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agr-author-name:hover {
    color: #2271b1;
    text-decoration: underline;
}

.agr-review-time {
    font-size: 0.78rem;
    color: #888;
}

/* ── Review body ─────────────────────────────────────────────────────────────── */
.agr-review-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #444;
    margin: 0 0 14px;
}

/* ── Card footer ─────────────────────────────────────────────────────────────── */
.agr-review-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: auto;
}

.agr-google-logo {
    opacity: 0.7;
}

/* ── No reviews ──────────────────────────────────────────────────────────────── */
.agr-no-reviews {
    color: #888;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .agr-reviews-list {
        grid-template-columns: 1fr;
    }
    .agr-aggregate {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Review card white box ───────────────────────────────────────────────────── */
.agr-review {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agr-review:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ── Read More link ──────────────────────────────────────────────────────────── */
.agr-review__link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    margin-top: auto;
    transition: opacity 0.2s ease;
}

.agr-review__link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

