/* Widget de Avaliações do Google - VERSÃO FINAL CORRETA */

.google-reviews-widget {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.google-reviews-widget h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #2c3e50;
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.reviews-header > * {
    margin: 0 7px 5px 7px;
}

.google-logo {
    width: 24px;
    height: 24px;
}

.overall-rating {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.overall-rating > * {
    margin-right: 8px;
}

.overall-rating > *:last-child {
    margin-right: 0;
}

.stars {
    color: #ffc107;
    font-size: 1.2em;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* DESKTOP: 3 avaliações por bloco */
.review-card {
    width: calc(33.333% - 13.33px);
    min-width: calc(33.333% - 13.33px);
    max-width: calc(33.333% - 13.33px);
    height: 300px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    margin-right: 20px;
    border-radius: 12px;
    border-left: 4px solid #4285F4;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.review-card:nth-child(3n) {
    margin-right: 0;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.review-header > * {
    margin-right: 12px;
}

.review-header > *:last-child {
    margin-right: 0;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4, #34A853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1em;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
    margin-bottom: 3px;
    line-height: 1.2;
}

.review-date {
    color: #666;
    font-size: 0.8em;
    line-height: 1.2;
}

.review-rating {
    color: #ffc107;
    font-size: 0.9em;
    margin-bottom: 10px;
    line-height: 1.2;
    flex-shrink: 0;
}

.review-text {
    color: #555;
    line-height: 1.4;
    font-size: 0.85em;
    font-style: italic;
    position: relative;
    text-align: left;
    margin: 0;
    padding: 10px 18px 12px 12px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.review-text::before {
    content: '"';
    font-size: 1.2em;
    color: #4285F4;
    position: absolute;
    left: 0px;
    top: 6px;
    font-weight: bold;
    line-height: 1;
}

.review-text::after {
    content: '"';
    font-size: 1.2em;
    color: #4285F4;
    position: absolute;
    right: 3px;
    bottom: 0px;
    font-weight: bold;
    line-height: 1;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 8px;
}

.indicator:last-child {
    margin-right: 0;
}

.indicator.active {
    background-color: #4285F4;
}

.google-link {
    text-align: center;
    margin-top: 25px;
}

.google-reviews-button {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white !important;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-reviews-button i {
    margin-left: 8px;
    font-size: 1.1em;
}

.google-reviews-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    text-decoration: none;
}

/* MOBILE: 1 avaliação por bloco */
@media (max-width: 768px) {
    .google-reviews-widget {
        padding: 25px 15px;
        margin: 20px 10px;
    }
    
    .google-reviews-widget h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    
    .review-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 280px;
        margin-right: 0;
        padding: 18px;
    }
    
    .review-card:nth-child(3n) {
        margin-right: 0;
    }
    
    .reviewer-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.95em;
    }
    
    .reviewer-name {
        font-size: 0.9em;
    }
    
    .review-date {
        font-size: 0.75em;
    }
    
    .review-text {
        font-size: 0.8em;
        -webkit-line-clamp: 5;
        padding: 8px 15px 10px 10px;
        line-height: 1.4;
    }
    
    .review-text::before {
        font-size: 1.1em;
        top: 4px;
    }
    
    .review-text::after {
        font-size: 1.1em;
        bottom: -2px;
    }
    
    .reviews-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .reviews-header > * {
        margin: 3px 0;
    }
    
    .google-reviews-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .carousel-indicators {
        margin-top: 15px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
        margin-right: 6px;
    }
}