/* ================================================================
   Google Reviews Showcase — Front-end Styles
   ================================================================ */

/* --- Wrapper --------------------------------------------------- */
.grs-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Summary Bar ----------------------------------------------- */
.grs-summary {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.grs-summary-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.grs-google-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grs-google-text {
    font-size: 22px;
    font-weight: 700;
    color: #3c4043;
    letter-spacing: -.5px;
}

.grs-biz-info {
    flex: 1;
    min-width: 200px;
}

.grs-biz-name {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 6px;
}

.grs-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.grs-big-score {
    font-size: 36px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

.grs-count {
    font-size: 14px;
    color: #70757a;
}

.grs-write-review {
    display: inline-block;
    background: #1a73e8;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
}
.grs-write-review:hover { background: #1557b0; }

/* --- Stars ----------------------------------------------------- */
.grs-stars-wrap { display: inline-flex; gap: 1px; }

.grs-star          { font-size: 18px; }
.grs-star.full     { color: #f9ab00; }
.grs-star.half     { color: #f9ab00; opacity: .55; }
.grs-star.empty    { color: #dadce0; }

/* --- Grid ------------------------------------------------------ */
.grs-grid {
    display: grid;
    gap: 20px;
}

.grs-cols-1 { grid-template-columns: 1fr; }
.grs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grs-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grs-cols-3,
    .grs-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grs-cols-2,
    .grs-cols-3,
    .grs-cols-4 { grid-template-columns: 1fr; }
    .grs-summary-inner { flex-direction: column; align-items: flex-start; }
    .grs-big-score { font-size: 28px; }
}

/* --- Card ------------------------------------------------------ */
.grs-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.grs-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.grs-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.grs-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.grs-avatar-initial {
    font-size: 18px;
    font-weight: 700;
    color: #1a73e8;
}

.grs-reviewer-info { flex: 1; }

.grs-reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 2px;
}
.grs-review-time {
    font-size: 12px;
    color: #9aa0a6;
}

.grs-card-google-logo { margin-left: auto; flex-shrink: 0; }

.grs-card-stars .grs-star { font-size: 16px; }

.grs-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
}

.grs-read-more {
    color: #1a73e8;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
}
.grs-read-more:hover { text-decoration: underline; }

/* Misc */
.grs-error,
.grs-no-reviews {
    background: #fce8e6;
    color: #c5221f;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 14px;
}
.grs-no-reviews { background: #f8f9fa; color: #70757a; }
