/* Frontend styles for Google Reviews Slider Sync */

.grs-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.grs-summary {
    text-align: center;
    margin-bottom: 30px;
}

.grs-summary-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 8px;
}

.grs-summary-stars {
    margin-bottom: 6px;
}

.grs-star {
    font-size: 20px;
    margin: 0 1px;
}

.grs-star-full {
    color: #fbbf24;
}

.grs-star-empty {
    color: #e5e7eb;
}

.grs-summary-rating {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.grs-summary-google {
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
}

.grs-slider {
    position: relative;
    overflow: hidden;
}

.grs-slider-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.grs-slide {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 10px 0;
}

.grs-slide-active {
    opacity: 1;
    transform: scale(1);
}

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

.grs-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grs-avatar-placeholder {
    font-weight: 700;
    color: #374151;
}

.grs-author-meta {
    flex: 1;
}

.grs-author-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.grs-date {
    font-size: 12px;
    color: #9ca3af;
}

.grs-slide-rating {
    white-space: nowrap;
}

.grs-slide-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

.grs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f3f4f6;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #4b5563;
    transition: background 0.2s ease, transform 0.1s ease;
}

.grs-nav:hover {
    background: #e5e7eb;
    transform: translateY(-50%) translateY(-1px);
}

.grs-prev {
    left: 10px;
}

.grs-next {
    right: 10px;
}

.grs-dots {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    gap: 8px;
}

.grs-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.grs-dot-active {
    background: #111827;
    width: 22px;
}

/* Responsive */
@media (max-width: 768px) {
    .grs-wrapper {
        margin: 20px auto;
        padding: 20px;
        border-radius: 16px;
    }

    .grs-nav {
        display: none;
    }

    .grs-slide-text {
        font-size: 14px;
    }
}
