/* ============================================================
   Google Reviews Plugin — Stylesheet v2.0
   ============================================================ */

/* ── Reset & wrapper ───────────────────────────────────────── */
.gr-wrapper *,
.gr-wrapper *::before,
.gr-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.gr-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    max-width: 1140px;
    margin: 48px auto;
    padding: 0 20px;
    color: #1a1a2e;
}

/* ── Header card ───────────────────────────────────────────── */
.gr-header {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    text-align: center;
}

.gr-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gr-google-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1;
}

.gr-header__title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -.3px;
}

.gr-header__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gr-header__score {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.gr-header__count {
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

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

.gr-stars--lg .gr-star { font-size: 28px; }
.gr-stars--sm .gr-star { font-size: 20px; }

.gr-star--full  { color: #FBBC04; }
.gr-star--half  { color: #FBBC04; opacity: .55; }
.gr-star--empty { color: #e0e0e0; }

/* ── Grid ──────────────────────────────────────────────────── */
.gr-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

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

/* ── Review card ───────────────────────────────────────────── */
.gr-card {
    background: #F8F8F8;
    border: 1px solid #e4e4e4;
    border-radius: 18px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    cursor: default;
}

.gr-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
    border-color: #d4d4d4;
}

.gr-card--hidden {
    display: none;
}

/* ── Author row ─────────────────────────────────────────────── */
.gr-card__author {
    display: flex;
    align-items: center;
    gap: 13px;
}

/* Avatar */
.gr-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.gr-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -.5px;
}

/* Author info */
.gr-card__author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gr-card__name {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a2e;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    letter-spacing: -.1px;
}

/* Verified badge */
.gr-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1;
}

.gr-card__time {
    font-size: 12px;
    color: #9e9e9e;
    font-weight: 400;
}

/* Stars inside card */
.gr-card__stars {
    line-height: 1;
}

/* Review text */
.gr-card__text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    color: #3d3d3d;
    flex-grow: 1;
}

/* ── Footer / button ────────────────────────────────────────── */
.gr-footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.gr-show-more {
    background: #D5D5D5;
    border: 2px solid #D5D5D5;
    border-radius: 10px;
    padding: 14px 52px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1a1a2e;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
    outline: none;
}

.gr-show-more:hover {
    background: #bfbfbf;
    border-color: #bfbfbf;
    transform: translateY(-2px);
}

.gr-show-more:active {
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet: 3 → 2 kolone (ispod 900px) */
@media (max-width: 900px) {
    .gr-cols-3 .gr-grid,
    .gr-cols-4 .gr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gr-header {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .gr-header__score { font-size: 26px; }
    .gr-header__title { font-size: 18px; }
    .gr-google-logo   { font-size: 18px; }
}

/* Mobile: sve 1 kolona (ispod 600px) */
@media (max-width: 600px) {
    .gr-cols-2 .gr-grid,
    .gr-cols-3 .gr-grid,
    .gr-cols-4 .gr-grid {
        grid-template-columns: 1fr;
    }

    .gr-wrapper {
        padding: 0 12px;
        margin: 32px auto;
    }

    .gr-card {
        border-radius: 14px;
        padding: 18px 16px;
    }

    .gr-show-more {
        width: 100%;
        padding: 14px 20px;
    }

    .gr-stars--lg .gr-star { font-size: 24px; }
    .gr-stars--sm .gr-star { font-size: 18px; }
}
