/* =========================================================================
   GWS Google Reviews — Carousel Widget
   ========================================================================= */

.ggr-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Summary (left panel) ─────────────────────────────────── */

.ggr-summary {
    flex-shrink: 0;
    text-align: center;
    min-width: 180px;
    padding: 20px;
}

.ggr-rating-label {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.ggr-stars-big {
    font-size: 28px;
    margin-bottom: 8px;
}

.ggr-star {
    display: inline-block;
}

.ggr-star-full {
    color: #fbbc05;
}

.ggr-star-half {
    color: #fbbc05;
    opacity: 0.6;
}

.ggr-star-empty {
    color: #dadce0;
}

.ggr-rating-text {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 12px;
}

.ggr-rating-text a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ggr-rating-text a:hover {
    color: #4285F4;
}

.ggr-google-logo {
    margin-top: 4px;
}

.ggr-google-logo svg {
    opacity: 0.8;
}

/* ── Carousel ─────────────────────────────────────────────── */

.ggr-carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
}

.ggr-carousel {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.ggr-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Navigation arrows ────────────────────────────────────── */

.ggr-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    background: #fff;
    color: #5f6368;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    line-height: 1;
    padding: 0;
}

.ggr-nav:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.ggr-nav:active {
    transform: scale(0.95);
}

/* ── Review Card ──────────────────────────────────────────── */

.ggr-review-card {
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.ggr-review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ggr-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ggr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ggr-review-author {
    flex: 1;
    min-width: 0;
}

.ggr-review-author strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ggr-review-date {
    display: block;
    font-size: 12px;
    color: #9aa0a6;
    margin-top: 2px;
}

.ggr-google-icon {
    flex-shrink: 0;
}

.ggr-review-stars {
    font-size: 16px;
    margin-bottom: 8px;
}

.ggr-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer ───────────────────────────────────────────────── */

.ggr-footer {
    display: none;
}

.ggr-see-all {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
}

.ggr-see-all:hover {
    text-decoration: underline;
}

/* ── Dark theme ───────────────────────────────────────────── */

.ggr-dark {
    background: #1a1d27;
    border-radius: 12px;
}

.ggr-dark .ggr-rating-label {
    color: #fff;
}

.ggr-dark .ggr-rating-text {
    color: #9aa0a6;
}

.ggr-dark .ggr-rating-text a {
    color: #e8eaed;
}

.ggr-dark .ggr-review-card {
    background: #232734;
    border-color: #2d3142;
}

.ggr-dark .ggr-review-author strong {
    color: #e8eaed;
}

.ggr-dark .ggr-review-text {
    color: #bdc1c6;
}

.ggr-dark .ggr-nav {
    background: #232734;
    border-color: #2d3142;
    color: #e8eaed;
}

.ggr-dark .ggr-nav:hover {
    background: #2d3142;
    border-color: #4285F4;
}

.ggr-dark .ggr-see-all {
    color: #8ab4f8;
}

/* ── Error ────────────────────────────────────────────────── */

.ggr-error {
    padding: 16px;
    background: #fce8e6;
    color: #c5221f;
    border-radius: 8px;
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .ggr-widget {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .ggr-summary {
        min-width: auto;
        padding: 10px 0;
    }

    .ggr-carousel-container {
        width: 100%;
    }

    .ggr-review-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {
    .ggr-review-card {
        flex: 0 0 250px;
    }

    .ggr-nav {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}
