/* Google Reviews Carousel Styles */
.grc-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Loading */
.grc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.grc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: grc-spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes grc-spin {
    to { transform: rotate(360deg); }
}

/* Carousel */
.grc-carousel {
    overflow: hidden;
    position: relative;
}

.grc-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Review Card */
.grc-review-card {
    flex: 0 0 100%;
    min-width: 0;
    padding: 40px 30px;
    margin: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: calc(100% - 20px);
}

.grc-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Avatar */
.grc-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4285f4;
    margin: 0 auto 15px;
    display: block;
    background-color: #f0f0f0;
}

.grc-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    border: 3px solid #4285f4;
}

/* Author Name */
.grc-author-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

/* Stars */
.grc-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 20px;
}

.grc-stars svg {
    width: 20px;
    height: 20px;
}

.star-filled {
    color: #fbbc04;
    fill: currentColor;
}

.star-empty {
    color: #e0e0e0;
    fill: currentColor;
}

/* Review Text */
.grc-review-text {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    font-style: italic;
    margin: 0;
    position: relative;
    padding: 0 20px;
}

.grc-review-text::before,
.grc-review-text::after {
    content: '"';
    font-size: 40px;
    color: #4285f4;
    opacity: 0.3;
    font-family: Georgia, serif;
    position: absolute;
    line-height: 1;
}

.grc-review-text::before {
    left: 0;
    top: -10px;
}

.grc-review-text::after {
    content: '"';
    right: 0;
    bottom: -25px;
}

/* Review Date */
.grc-review-date {
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

/* Navigation */
.grc-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.grc-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #4285f4;
    background: transparent;
    color: #4285f4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.grc-nav-btn:hover {
    background: #4285f4;
    color: #fff;
    transform: scale(1.1);
}

.grc-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Dots */
.grc-dots {
    display: flex;
    gap: 10px;
}

.grc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #4285f4;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.grc-dot:hover {
    transform: scale(1.2);
}

.grc-dot.active {
    background: #4285f4;
}

/* Error */
.grc-error {
    text-align: center;
    padding: 40px 20px;
    color: #d93025;
    background: #fce8e6;
    border-radius: 12px;
}

/* Notice (Editor Mode) */
.grc-notice {
    text-align: center;
    padding: 40px 20px;
    background: #e8f0fe;
    color: #1967d2;
    border-radius: 12px;
    border: 2px dashed #4285f4;
}

/* Google Attribution */
.grc-google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 13px;
    color: #999;
}

.grc-google-badge img {
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .grc-review-card {
        padding: 30px 20px;
        margin: 0 5px;
    }
    
    .grc-avatar,
    .grc-avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .grc-author-name {
        font-size: 16px;
    }
    
    .grc-review-text {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .grc-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .grc-navigation {
        gap: 15px;
    }
}

/* Multiple cards layout (optional future feature) */
@media (min-width: 992px) {
    .grc-carousel-wrapper[data-layout="multi"] .grc-review-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .grc-carousel-wrapper[data-layout="multi"] .grc-review-card {
        flex: 0 0 calc(50% - 20px);
    }
}
