/* ═══════════════════════════════════════════════
   Google Reviews Carousel – Styles
   ═══════════════════════════════════════════════ */

.grc-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Track ── */
.grc-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Card ── */
.grc-card {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.grc-card-inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    transition: box-shadow 0.3s ease;
}

.grc-card-inner:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* ── Header (logo + stars) ── */
.grc-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.grc-google-logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    line-height: 0;
}

.grc-google-logo svg {
    display: block;
}

.grc-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.grc-star {
    display: block;
}

.grc-star--filled {
    fill: #f4b400;
}

.grc-star--empty {
    fill: #dadce0;
}

.grc-rating-number {
    font-size: 16px;
    font-weight: 700;
    color: #f4b400;
    margin-left: 6px;
    line-height: 1;
}

/* ── Body ── */
.grc-card-body {
    flex: 1;
    margin-bottom: 20px;
}

.grc-review-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #3c4043;
    margin: 0;
    word-break: break-word;
}

/* ── Footer (author) ── */
.grc-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f3f4;
}

.grc-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.grc-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eaed;
    color: #5f6368;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

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

.grc-author-date {
    font-size: 12.5px;
    color: #80868b;
}

/* ── Navigation arrows ── */
.grc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 16px));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #202124;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.grc-nav:hover {
    background: #3c4043;
    transform: translateY(calc(-50% - 16px)) scale(1.08);
}

.grc-nav:active {
    transform: translateY(calc(-50% - 16px)) scale(0.95);
}

.grc-nav--prev { left: 4px; }
.grc-nav--next { right: 4px; }

.grc-nav[disabled] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* ── Dots ── */
.grc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 0;
}

.grc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dadce0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.grc-dot:hover {
    background: #bdc1c6;
}

.grc-dot--active {
    background: #3c4043;
    transform: scale(1.2);
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

/* Tablet : 2 cards */
@media (max-width: 1024px) {
    .grc-card {
        flex: 0 0 50%;
    }
    .grc-carousel-wrapper {
        padding: 20px 50px;
    }
}

/* Mobile : 1 card */
@media (max-width: 640px) {
    .grc-card {
        flex: 0 0 100%;
    }
    .grc-carousel-wrapper {
        padding: 16px 44px;
    }
    .grc-nav {
        width: 36px;
        height: 36px;
    }
    .grc-card-inner {
        min-height: 240px;
        padding: 22px 20px 20px;
    }
}
