/* =========================================
   Dashboard de Reviews - Google Reviews Style
   ========================================= */

.bare-reviews-dashboard {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: var(--bare-radius-lg);
    background: #FFFFFF !important;
}

.bare-star-rating label svg {
    width: 44px;
    height: 44px;
    display: block;
    /* text-align: center; */
}

/* Esquerda - Barras de Distribuição */
.bare-reviews-left {
    flex: 1;
    min-width: 280px;
}

.bare-review-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.bare-review-bar-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 60px;
    font-weight: 600;
    color: #374151;
}

.bare-star-icon {
    color: #f4c150;
    font-size: 16px;
}

.bare-star-number {
    font-size: 14px;
}

.bare-review-bar-track {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bare-review-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f4c150 0%, #f39c12 100%);
    border-radius: 4px;
    transition: width 0.8s ease-out;
    position: relative;
}

.bare-review-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    border-radius: 4px;
}

.bare-review-bar-count {
    min-width: 30px;
    text-align: right;
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

/* Direita - Resumo da Nota */
.bare-reviews-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 200px;
}

.bare-rating-score {
    font-size: 48px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bare-rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.bare-rating-star {
    font-size: 20px;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.bare-rating-star.full {
    color: #f4c150;
}

.bare-rating-star.half {
    color: #f4c150;
    position: relative;
}

.bare-rating-star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #f4c150;
}

.bare-rating-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.bare-review-cta {
    background: var(--bare-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--bare-radius-md);
    font-size: 16px;
    font-weight: 600;

}

.bare-review-cta:hover {
    background: var(--bare-primary-hover);
}

.bare-review-cta:active {
    transform: translateY(0);
}

/* Formulário de Avaliação */
.bare-form-group {
    margin-bottom: 1.5rem;
}

.bare-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.bare-form-group input,
.bare-form-group textarea,
.bare-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: var(--bare-radius-md);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bare-form-group input:focus,
.bare-form-group textarea:focus,
.bare-form-group select:focus {
    outline: none;
    border-color: var(--bare-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.bare-rating-select select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.bare-submit-btn {
    background: var(--bare-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--bare-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bare-submit-btn:hover {
    background: var(--bare-primary-hover);
}

/* Lista de Avaliações */
.bare-reviews-list {
    margin-top: 2rem;
}

.bare-review-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--bare-radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.bare-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bare-review-author {
    flex: 1;
}

.bare-review-author strong {
    color: #1f2937;
    font-size: 16px;
    display: block;
    margin-bottom: 0.5rem;
}

.bare-review-rating {
    display: flex;
    gap: 2px;
}

.bare-review-star {
    font-size: 16px;
    color: #d1d5db;
}

.bare-review-star.filled {
    color: #f4c150;
}

.bare-review-date {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.bare-review-content {
    color: #4b5563;
    line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
    .bare-reviews-dashboard {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .bare-reviews-left {
        min-width: auto;
    }

    .bare-reviews-right {
        min-width: auto;
    }

    .bare-rating-score {
        font-size: 36px;
    }

    .bare-review-bar {
        gap: 0.75rem;
    }

    .bare-review-bar-label {
        min-width: 50px;
    }

    .bare-review-bar-count {
        min-width: 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .bare-reviews-dashboard {
        padding: 1rem;
    }

    .bare-rating-score {
        font-size: 32px;
    }

    .bare-review-cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    .bare-review-item {
        padding: 1rem;
    }

    .bare-review-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bare-review-date {
        align-self: flex-start;
    }
}

/* Animações */
@keyframes bareFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bare-review-bar-fill {
    animation: bareFillBar 1s ease-out;
}

@keyframes bareFillBar {
    from {
        width: 0;
    }
}

/* =========================================
   Fim do Dashboard de Reviews
   ========================================= */