/* =========================================================
   Google Reviews Plugin — Stylesheet
   ========================================================= */

/* Badge */
.gr-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    width: fit-content;
}

.gr-badge-logo svg { display: block; }

.gr-badge-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #202124;
    margin-bottom: 2px;
}

.gr-badge-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gr-badge-score {
    font-weight: 700;
    font-size: 15px;
    color: #202124;
}

.gr-badge-count {
    font-size: 13px;
    color: #5f6368;
}

/* Title */
.gr-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #202124;
}

/* Stars */
.gr-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.gr-stars svg { display: block; flex-shrink: 0; }

/* ---- Grid Layout ---- */
.gr-layout-grid .gr-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

/* ---- List Layout ---- */
.gr-layout-list .gr-reviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Review Card */
.gr-review-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s ease, transform .2s ease;
}

.gr-review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Card Header */
.gr-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Avatar */
.gr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8eaed;
}

.gr-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Author */
.gr-author-info {
    flex: 1;
    min-width: 0;
}

.gr-author-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #202124;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-author-name:hover { text-decoration: underline; }

.gr-date {
    font-size: 12px;
    color: #5f6368;
    display: block;
    margin-top: 1px;
}

.gr-google-icon { margin-left: auto; flex-shrink: 0; }
.gr-google-icon svg { display: block; }

/* Stars row */
.gr-card-stars { margin-bottom: 10px; }

/* Review text */
.gr-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Error / empty */
.gr-error { color: #c62828; font-size: 14px; }
.gr-empty { color: #5f6368; font-size: 14px; }

/* Responsive */
@media (max-width: 600px) {
    .gr-layout-grid .gr-reviews {
        grid-template-columns: 1fr;
    }
}
