/* ==========================================
   SEÇÃO GOOGLE REVIEWS - LAYOUT CENTRALIZADO
   ========================================== */

.google-reviews-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* ==========================================
   HEADER CENTRALIZADO
   ========================================== */

.reviews-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.reviews-header-center .section-label {
    display: inline-block;
    background: #E8D5C4;
    color: #2C5F8D;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.reviews-header-center .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C5F8D;
    margin-bottom: 15px;
    font-family: 'Crimson Pro', serif;
}

.reviews-header-center .section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ==========================================
   CARD DE RESUMO INLINE (CENTRALIZADO)
   ========================================== */

.reviews-summary-inline {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-rating-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C5F8D;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 1.3rem;
    color: #FBBC04;
}

.rating-count {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.google-badge-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    font-weight: 600;
    color: #5f6368;
    font-size: 0.9rem;
    border-left: 2px solid #e0e0e0;
    padding-left: 20px;
}

/* ==========================================
   GRID DE AVALIAÇÕES
   ========================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

/* Loading State */
.reviews-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2C5F8D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.reviews-loading p {
    color: #666;
    font-size: 1rem;
}

/* ==========================================
   CARD DE AVALIAÇÃO
   ========================================== */

.review-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: rgba(44, 95, 141, 0.2);
}

/* Header do Review */
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C5F8D, #7AB8A8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Foto de perfil do Google */
.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.review-author-info {
    flex: 1;
    min-width: 0;
}

.review-author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #202124;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 0.85rem;
    color: #5f6368;
    margin-top: 2px;
}

/* Estrelas */
.review-stars {
    display: flex;
    gap: 2px;
    font-size: 1.1rem;
    color: #FBBC04;
}

/* Texto */
.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3c4043;
    margin: 0;
}

/* Badge Google */
.review-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #5f6368;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.review-source svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   FOOTER (BOTÃO)
   ========================================== */

.reviews-footer {
    text-align: center;
}

.btn-google-reviews {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: #202124;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google-reviews:hover {
    background: #f8f9fa;
    border-color: #2C5F8D;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }

/* ==========================================
   RESPONSIVO
   ========================================== */

@media (max-width: 768px) {
    .google-reviews-section {
        padding: 60px 0;
    }
    
    .reviews-header-center {
        margin-bottom: 40px;
    }
    
    .reviews-header-center .section-title {
        font-size: 2rem;
    }
    
    .reviews-summary-inline {
        flex-direction: column;
        gap: 20px;
        padding: 24px 28px;
        border-radius: 16px;
    }
    
    .google-badge-inline {
        border-left: none;
        border-top: 2px solid #e0e0e0;
        padding-left: 16px;
        padding-top: 12px;
    }
    
    .rating-number {
        font-size: 2rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .reviews-summary-inline {
        padding: 20px;
    }
    
    .rating-number {
        font-size: 1.8rem;
    }
    
    .rating-stars {
        font-size: 1.1rem;
    }
}

/* ==========================================
   ESTADOS VAZIOS
   ========================================== */

.reviews-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.reviews-empty i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.reviews-empty h3 {
    color: #5f6368;
    margin-bottom: 10px;
}

.reviews-empty p {
    color: #999;
}