/* Google Reviews Carousel Styles */

.reviews-section {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

.reviews-section-inline {
    background: #ffffff;
    padding: 30px 0;
    margin-top: 30px;
    position: relative;
    width: 100%;
}

.reviews-section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.reviews-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

#reviews-carousel {
    position: relative;
    min-height: 180px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

.reviews-section-inline #reviews-carousel {
    min-height: 150px;
}

/* Reviews Header */
.reviews-header {
    background: #ffffff;
    padding: 25px 40px;
    border-bottom: 2px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-section-inline .reviews-header {
    padding: 15px 30px;
    border-bottom: 1px solid #e8eaed;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reviews-rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-rating-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.reviews-stars-display {
    display: flex;
    gap: 3px;
}

.reviews-stars-display .star {
    font-size: 20px;
}

.reviews-count {
    font-size: 16px;
    color: #5f6368;
}

.reviews-google-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 2px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.reviews-google-link:hover {
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
}

.reviews-google-link::after {
    content: '→';
    font-size: 18px;
}

.review-slide {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.review-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.review-content {
    padding: 40px;
}

.reviews-section-inline .review-content {
    padding: 20px 30px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviewer-info {
    flex: 1;
    min-width: 200px;
}

.reviewer-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.review-date {
    font-size: 14px;
    color: #7f8c8d;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 24px;
    line-height: 1;
}

.star-full {
    color: #f39c12;
}

.star-half {
    color: #f39c12;
    opacity: 0.5;
}

.star-empty {
    color: #dfe6e9;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
    font-style: italic;
}

.reviews-section-inline .review-text {
    font-size: 15px;
    line-height: 1.5;
}

/* Navigation Dots */
.review-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
}

.reviews-section-inline .review-dots {
    padding: 15px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #3498db;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.review-dot:hover {
    background: #3498db;
    transform: scale(1.2);
}

.review-dot.active {
    background: #3498db;
    width: 12px;
    height: 12px;
}

/* Error State */
.review-error {
    padding: 60px 40px;
    text-align: center;
}

.review-error p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }

    .reviews-section-inline {
        padding: 20px 0;
        margin-top: 20px;
    }

    .reviews-section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .reviews-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-section-inline .reviews-header {
        padding: 15px;
    }

    .reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .reviews-rating-number {
        font-size: 28px;
    }

    .reviews-google-link {
        width: 100%;
        justify-content: center;
    }

    .review-content {
        padding: 30px 20px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviewer-name {
        font-size: 18px;
    }

    .review-text {
        font-size: 15px;
    }

    .star {
        font-size: 20px;
    }

    #reviews-carousel {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 30px 0;
    }

    .reviews-section-inline {
        padding: 15px 0;
        margin-top: 15px;
    }

    .reviews-section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .reviews-header {
        padding: 15px;
    }

    .reviews-section-inline .reviews-header {
        padding: 10px 15px;
    }

    .reviews-rating-number {
        font-size: 24px;
    }

    .reviews-stars-display .star {
        font-size: 16px;
    }

    .reviews-count {
        font-size: 14px;
    }

    .reviews-google-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .review-content {
        padding: 25px 15px;
    }

    .reviews-section-inline .review-content {
        padding: 15px;
    }

    .reviewer-name {
        font-size: 16px;
    }

    .review-text {
        font-size: 14px;
    }

    .reviews-section-inline .review-text {
        font-size: 13px;
    }

    .star {
        font-size: 18px;
    }

    .review-dots {
        padding: 15px;
        gap: 8px;
    }

    .review-dot {
        width: 8px;
        height: 8px;
    }

    .review-dot.active {
        width: 10px;
        height: 10px;
    }

    #reviews-carousel {
        min-height: 340px;
    }
}

/* Professional Blue Accent Variant */
.reviews-section.blue-accent .review-rating .star-full {
    color: #3498db;
}

.reviews-section.blue-accent .review-dot {
    border-color: #2c3e50;
}

.reviews-section.blue-accent .review-dot:hover,
.reviews-section.blue-accent .review-dot.active {
    background: #2c3e50;
}

/* Dark Header Variant */
.reviews-section.dark-variant {
    background: #2c3e50;
}

.reviews-section.dark-variant .reviews-section-title {
    color: #ffffff;
}

.reviews-section.dark-variant #reviews-carousel {
    background: #34495e;
}

.reviews-section.dark-variant .reviewer-name {
    color: #ecf0f1;
}

.reviews-section.dark-variant .review-date {
    color: #bdc3c7;
}

.reviews-section.dark-variant .review-text {
    color: #ecf0f1;
}

.reviews-section.dark-variant .review-dots {
    background: #34495e;
}

/* Accessibility */
.review-dot:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Loading State */
.reviews-loading {
    padding: 60px 40px;
    text-align: center;
}

.reviews-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
