/* Google Reviews Widget Styles */

/* Compact Widget */
.grw-compact-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    max-width: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.grw-compact-widget .grw-google-logo {
    margin-bottom: 12px;
}

.grw-compact-widget .grw-stars {
    margin-bottom: 8px;
}

.grw-compact-widget .grw-stars .grw-star {
    color: #FFD700;
    font-size: 18px;
    margin-right: 2px;
}

.grw-compact-widget .grw-rating-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Full Widget */
.grw-full-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

.grw-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.grw-rating-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.grw-excellent {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.grw-stars {
    display: flex;
    margin-bottom: 8px;
}

.grw-stars .grw-star {
    color: #FFD700;
    font-size: 20px;
    margin-right: 2px;
}

.grw-stars .grw-star.filled {
    color: #FFD700;
}

.grw-review-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.grw-google-logo {
    margin-top: auto;
}

/* Reviews Carousel */
.grw-reviews-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    margin-bottom: 0;
}

.grw-nav-btn {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 2;
    flex-shrink: 0;
}

.grw-nav-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.grw-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.grw-reviews-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-width: calc(100% - 120px);
}

.grw-reviews-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    width: fit-content;
}

.grw-review-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    width: 280px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #e9ecef;
}

.grw-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.grw-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
}

.grw-review-info {
    flex: 1;
}

.grw-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.grw-review-date {
    font-size: 12px;
    color: #666;
}

.grw-google-g {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.7;
}

.grw-review-rating {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.grw-review-rating .grw-stars {
    margin-right: 8px;
}

.grw-review-rating .grw-stars .grw-star {
    font-size: 14px;
    margin-right: 1px;
}

.grw-verified {
    color: #4285F4;
    font-size: 12px;
    font-weight: 600;
}

.grw-review-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.grw-read-more {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    margin-left: 4px;
}

.grw-read-more:hover {
    color: #333;
    text-decoration: underline;
}

/* Error Styles */
.grw-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grw-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .grw-rating-section {
        align-items: center;
        margin-bottom: 20px;
    }
    
    .grw-reviews-carousel {
        width: 100%;
    }
    
    .grw-review-card {
        min-width: 250px;
    }
    
    .grw-nav-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .grw-full-widget {
        padding: 16px;
    }
    
    .grw-review-card {
        min-width: 220px;
        padding: 12px;
    }
    
    .grw-excellent {
        font-size: 20px;
    }
}
