/* Google Reviews Styling */
.reviews-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    margin: 30px 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.google-logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.business-name {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.business-rating {
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
}

/* Carousel */
.reviews-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.review-card {
    flex: 0 0 350px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Review Header */
.review-header {
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.review-date {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

/* Stars */
.review-rating {
    margin-bottom: 12px;
}

.g-stars {
    display: flex;
    gap: 3px;
}

.g-stars .fa-star {
    color: #e8eaed;
    font-size: 16px;
    transition: color 0.2s ease;
}

.g-stars .checked-rate {
    color: #fbbc04;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Review Text */
.review-text {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.review-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #5f6368;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #3367d6, #2d7d32);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Error/Loading State */
.reviews-error {
    text-align: center;
    padding: 60px 0;
}

.no-reviews-message {
    color: #666;
    font-style: italic;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding: 30px 0;
        margin: 20px 0;
    }
    
    .reviews-carousel {
        padding: 0 35px;
    }
    
    .review-card {
        flex: 0 0 280px;
        padding: 20px;
        min-height: 250px;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .google-logo-img {
        max-width: 160px;
    }
    
    .business-name {
        font-size: 20px;
    }
    
    .reviewer-avatar {
        width: 48px;
        height: 48px;
        margin-right: 14px;
    }
    
    .reviewer-name {
        font-size: 15px;
    }
    
    .review-date {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .reviews-carousel {
        padding: 0 30px;
    }
    
    .review-card {
        flex: 0 0 250px;
        padding: 16px;
        min-height: 220px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 2px;
    }
    
    .carousel-next {
        right: 2px;
    }
    
    .review-text p {
        font-size: 13px;
        -webkit-line-clamp: 4;
    }
    
    .reviewer-avatar {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }
}

/* Font Awesome fallback if not loaded */
.g-stars .fa-star::before {
    content: "★";
}

/* Print styles */
@media print {
    .carousel-btn {
        display: none;
    }
    
    .reviews-track {
        transform: none !important;
        display: block;
    }
    
    .review-card {
        break-inside: avoid;
        margin-bottom: 20px;
        flex: none;
        width: 100%;
    }
}