/* Google Reviews Display - Carousel Style */

.grd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    border-radius: 16px;
}

/* Header Styling */
.grd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.grd-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.grd-google-logo {
    height: 24px;
    width: auto;
    flex-shrink: 0;
}

.grd-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: #ffffff;
}

.grd-rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grd-rating-number {
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
}

.grd-stars-small {
    display: flex;
    gap: 2px;
}

.grd-stars-small .grd-star {
    width: 16px;
    height: 16px;
}

.grd-total-reviews {
    font-size: 14px;
    color: #9aa0a6;
}

.grd-cta-button {
    background-color: #000000;
    color: #ff0000;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 2px solid #ff0000;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.grd-cta-button:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

/* Carousel Wrapper */
.grd-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.grd-carousel {
    overflow: hidden;
    border-radius: 12px;
}

.grd-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Navigation Buttons */
.grd-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    border: 2px solid #ff0000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.grd-nav-button:hover {
    background: #000000;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.grd-nav-button:hover svg {
    color: #ffffff;
}

.grd-nav-button:hover svg path {
    stroke: currentColor;
}

.grd-nav-button svg {
    color: #ff0000;
    display: block;
}

.grd-nav-button svg path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.grd-nav-prev {
    left: 0;
}

.grd-nav-next {
    right: 0;
}

.grd-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ff0000;
}

.grd-nav-button:disabled svg {
    color: #ff0000;
}

.grd-nav-button:disabled svg path {
    stroke: currentColor;
}

/* Review Card */
.grd-review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease;
}

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

/* Review Header */
.grd-review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.grd-author-avatar {
    position: relative;
    flex-shrink: 0;
}

.grd-author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.grd-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.grd-google-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
}

.grd-author-details {
    flex: 1;
    min-width: 0;
}

.grd-author-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.grd-author-name {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grd-verified-icon {
    flex-shrink: 0;
}

.grd-review-time {
    font-size: 13px;
    color: #5f6368;
}

/* Stars */
.grd-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.grd-star {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Review Text */
.grd-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #3c4043;
    margin-bottom: 12px;
}

.grd-read-more {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.grd-read-more:hover {
    text-decoration: underline;
}

/* Error States */
.grd-error,
.grd-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #ffffff;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grd-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .grd-header-left {
        flex-wrap: wrap;
    }
    
    .grd-cta-button {
        width: 100%;
        text-align: center;
    }
    
    .grd-carousel-wrapper {
        padding: 0 50px;
    }
    
    .grd-review-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .grd-nav-button {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .grd-container {
        padding: 20px 10px;
    }
    
    .grd-title {
        font-size: 20px;
    }
    
    .grd-carousel-wrapper {
        padding: 0 40px;
    }
    
    .grd-review-card {
        min-width: 260px;
        max-width: 260px;
        padding: 20px;
    }
    
    .grd-nav-button {
        width: 32px;
        height: 32px;
    }
}
