/* MISSIRIA Reviews — display styles (theme-agnostic; scoped to .mr-*) */

/* ============================================================ */
/*  Summary                                                     */
/* ============================================================ */

.mr-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #111827;
}

.mr-summary--muted {
    color: #6b7280;
}

.mr-summary-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 1.05rem;
    line-height: 1;
}

.mr-summary-score {
    font-weight: 700;
}

.mr-summary-text {
    color: #4b5563;
}

.mr-summary-text--muted {
    color: #6b7280;
    font-style: italic;
}

/* ============================================================ */
/*  Stars                                                       */
/* ============================================================ */

.mr-star {
    color: #d1d5db;
    line-height: 1;
    font-size: 1em;
}

.mr-star-filled {
    color: #FFD000;
}

.mr-star-empty {
    color: #d1d5db;
}

.mr-star-half {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    background: linear-gradient(90deg, #FFD000 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================================ */
/*  List                                                        */
/* ============================================================ */

.mr-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 780px;
    margin: 1.5rem auto;
    font-family: inherit;
    color: #111827;
}

.mr-list--empty {
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
}

.mr-empty {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

/* ============================================================ */
/*  Card                                                        */
/* ============================================================ */

.mr-review-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mr-review-card--link {
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mr-review-card--link:hover,
.mr-review-card--link:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.mr-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mr-review-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #FFF3CC;
    color: #7A5A00;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    line-height: 1;
}

.mr-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mr-review-name {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
}

.mr-review-subline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6b7280;
}

.mr-review-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
    font-size: 0.95rem;
}

.mr-review-date {
    color: #6b7280;
}

.mr-review-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1f2937;
}

.mr-review-title {
    margin: 0;
    font-weight: 700;
    color: #111827;
}

.mr-review-text {
    margin: 0;
    color: #374151;
}

.mr-review-product {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
    font-style: italic;
}

.mr-review-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ============================================================ */
/*  Pagination                                                  */
/* ============================================================ */

.mr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.mr-page-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mr-page-link:hover,
.mr-page-link:focus {
    background: #f9fafb;
    border-color: #d1d5db;
}

.mr-page-count {
    color: #6b7280;
}

/* ============================================================ */
/*  Homepage grid                                               */
/* ============================================================ */

.mr-homepage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .mr-homepage-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 767.98px) {
    .mr-homepage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
