/* =====================================================================================
 * /css/reviews.css
 * Componente de Reseñas (Reviews) compartido por modal_evento.php y modal_venue.php.
 * Sección: encabezado + resumen (promedio/estrellas/conteo) + lista + botón "Write".
 * ===================================================================================== */

.wk-reviews-section {
    margin-top: 1rem;
}

.wk-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.wk-reviews-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    color: #1f2937;
}

.wk-reviews-summary {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: #6b7280;
}

.wk-reviews-summary .wk-avg {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.wk-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: .95rem;
    line-height: 1;
}

.wk-stars .wk-star-empty {
    color: #d1d5db;
}

.wk-btn-write-review {
    white-space: nowrap;
}

/* Lista scrollable */
.wk-reviews-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: .25rem;
}

.wk-reviews-list::-webkit-scrollbar {
    width: 6px;
}

.wk-reviews-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.wk-review-card {
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    background: #fff;
}

.wk-review-card:last-child {
    margin-bottom: 0;
}

.wk-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.wk-review-author {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.wk-review-author .wk-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5e7eb;
    flex: 0 0 38px;
    display: inline-block;
    object-fit: cover;
}

.wk-review-author .wk-name {
    font-weight: 600;
    color: #111827;
    line-height: 1.1;
}

.wk-review-date {
    color: #9ca3af;
    font-size: .8rem;
    white-space: nowrap;
}

.wk-review-rtitle {
    font-weight: 700;
    color: #1f2937;
    margin-top: .5rem;
}

.wk-review-text {
    color: #374151;
    font-size: .9rem;
    margin-top: .25rem;
    white-space: pre-line;
}

.wk-reviews-empty {
    border: 1px dashed #d1d5db;
    border-radius: .75rem;
    padding: 1.25rem;
    text-align: center;
    color: #6b7280;
}

/* Modal de escritura (iframe) sobre la modal */
#wkWriteReviewModal .modal-body {
    padding: 0;
}

#wkWriteReviewFrame {
    width: 100%;
    height: 78vh;
    border: 0;
    display: block;
}
