/* Estilos para a seção de depoimentos */

.depoimentos-section {
    padding: 20px 10px;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5; /* Cor de fundo leve para destacar a seção */
    margin-top: 20px;
}

.depoimentos-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reviews-summary-average {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviews-summary-average-value {
    font-size: 36px;
    font-weight: bold;
    color: #0086ff; /* Cor principal do Magalu */
}

.reviews-summary-average-stars-container {
    position: relative;
    width: 100px; /* Largura fixa para as estrelas */
    height: 20px;
}

.reviews-summary-average-stars-background,
.reviews-summary-average-stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

.reviews-summary-average-stars-background::before {
    content: "★★★★★";
    font-size: 20px;
    color: #ccc; /* Estrelas de fundo cinzas */
}

.reviews-summary-average-stars-foreground::before {
    content: "★★★★★";
    font-size: 20px;
    color: #ffc107; /* Estrelas de primeiro plano amarelas */
}

.reviews-summary-average-stars-foreground {
    width: 92%; /* Ajustar dinamicamente com base na porcentagem (92% do HTML original) */
}

.reviews-summary-average-count,
.reviews-summary-average-comments {
    font-size: 14px;
    color: #666;
}

.reviews-summary-ratings {
    width: 100%;
    max-width: 300px;
}

.reviews-summary-ratings-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.reviews-summary-ratings-item-label {
    width: 15px;
    font-size: 12px;
    color: #333;
}

.reviews-summary-ratings-item-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 0 10px;
}

.reviews-summary-ratings-item-bar-foreground {
    height: 100%;
    background-color: #0086ff; /* Cor da barra de progresso */
    border-radius: 4px;
}

.reviews-summary-ratings-item-count {
    font-size: 12px;
    color: #666;
    width: 40px;
    text-align: right;
}

/* Estilos para a lista de depoimentos */
.reviews-list {
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-card {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-card-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0086ff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.review-card-header-info {
    display: flex;
    flex-direction: column;
}

.review-card-header-info-name {
    font-weight: bold;
    color: #333;
}

.review-card-header-info-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-card-header-info-rating .rating-stars-container {
    width: 70px;
    height: 14px;
    position: relative;
}

.review-card-header-info-rating .rating-stars-background::before {
    content: "★★★★★";
    font-size: 14px;
    color: #ccc;
}

.review-card-header-info-rating .rating-stars-foreground::before {
    content: "★★★★★";
    font-size: 14px;
    color: #ffc107;
}

.review-card-content-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.review-card-content-date {
    font-size: 12px;
    color: #999;
}

.reviews-list-footer {
    text-align: center;
    padding-top: 15px;
}

.reviews-list-footer a {
    color: #0086ff;
    text-decoration: none;
    font-weight: bold;
}

.reviews-list-footer a:hover {
    text-decoration: underline;
}

/* Estilos para a seção de mídia nos depoimentos */
.review-card-media {
    margin-top: 10px;
}

.review-card-media img {
    /* Estilos já definidos inline no HTML, mas é bom ter um fallback aqui */
    width: 90px;
    height: 90px;
    border-radius: 4px;
    object-fit: cover;
}
