
/* =========================================
   AGAPE SHOP — AVIS CLIENTS
========================================= */

.product-reviews,
.reviews-admin {
    --review-navy: #152b49;
    --review-blue: #24476d;
    --review-gold: #f4b740;
    --review-muted: #6b7280;
    --review-border: #e5eaf0;

    color: #202b3a;
    width: 100%;
}

.product-reviews {
    margin: 48px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--review-border);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(21, 43, 73, 0.05);
}

.product-reviews-heading,
.reviews-admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 26px;
}

.product-reviews h2,
.reviews-admin h1 {
    color: var(--review-navy);
    margin: 6px 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.product-reviews-heading p,
.reviews-admin-heading p {
    color: var(--review-muted);
    margin: 0;
    line-height: 1.6;
}

.reviews-eyebrow {
    color: #8a6418;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.review-summary {
    flex-shrink: 0;
    min-width: 150px;
    padding: 18px;
    text-align: center;
    background: #fffaf0;
    border: 1px solid #f4e5c1;
    border-radius: 14px;
}

.review-summary > strong {
    display: block;
    color: var(--review-navy);
    font-size: 2rem;
    line-height: 1.2;
}

.review-summary > span {
    display: block;
    margin-top: 6px;
    color: var(--review-muted);
    font-size: 0.82rem;
}

.review-stars,
.review-admin-stars {
    display: flex;
    gap: 3px;
    margin: 9px 0;
    font-size: 1.1rem;
}

.review-summary .review-stars {
    justify-content: center;
}

.star-filled {
    color: var(--review-gold);
}

.star-empty {
    color: #d8dee7;
}

.review-form-card {
    margin: 26px 0 34px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid var(--review-border);
    border-radius: 15px;
}

.review-form-card h3,
.review-list > h3 {
    color: var(--review-navy);
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.review-form-card > p {
    color: var(--review-muted);
    line-height: 1.6;
}

.review-form-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-form-card label {
    margin-top: 8px;
    color: var(--review-navy);
    font-size: 0.92rem;
    font-weight: 700;
}

.review-form-card select,
.review-form-card textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    color: #243247;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.review-form-card select:focus,
.review-form-card textarea:focus {
    outline: none;
    border-color: var(--review-blue);
    box-shadow: 0 0 0 3px rgba(36, 71, 109, 0.12);
}

.review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 10px;
    padding: 12px 20px;
    color: #fff;
    background: var(--review-navy);
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.review-submit:hover {
    color: #fff;
    background: var(--review-blue);
    transform: translateY(-1px);
}

.review-form-footnote,
.review-notice {
    color: var(--review-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.review-delete-form {
    margin-top: 12px;
}

.review-delete-button {
    padding: 9px 0;
    color: #b42318;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.review-login-prompt {
    margin: 25px 0;
    padding: 22px;
    background: #f8fafc;
    border-radius: 12px;
}

.review-login-prompt p {
    margin-top: 0;
}

.review-list {
    margin-top: 35px;
}

.review-public-card {
    padding: 22px 0;
    border-bottom: 1px solid var(--review-border);
}

.review-public-card:last-child {
    border-bottom: 0;
}

.review-public-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--review-navy);
    border-radius: 50%;
    font-weight: 800;
}

.review-public-top strong {
    color: var(--review-navy);
}

.review-public-date {
    margin-top: 4px;
    color: var(--review-muted);
    font-size: 0.82rem;
}

.review-public-comment {
    margin: 12px 0 0;
    color: #3c4859;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.review-alert {
    margin: 18px 0;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    line-height: 1.5;
}

.review-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.review-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.reviews-empty {
    padding: 36px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.reviews-empty-icon {
    color: #d4a63d;
    font-size: 2.5rem;
}

.reviews-empty h2,
.reviews-empty h3 {
    color: var(--review-navy);
    margin: 10px 0;
}

.reviews-empty p {
    color: var(--review-muted);
    margin-bottom: 0;
}

/* =========================================
   ADMINISTRATION
========================================= */

.reviews-admin {
    padding: 8px 0 30px;
}

.reviews-admin-heading {
    margin-bottom: 28px;
}

.reviews-admin-heading h1 {
    margin-top: 8px;
}

.reviews-count {
    padding: 10px 15px;
    color: var(--review-navy);
    background: #eef3f8;
    border: 1px solid #dce5ef;
    border-radius: 30px;
    font-weight: 800;
    white-space: nowrap;
}

.reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.reviews-filters a {
    padding: 10px 15px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--review-border);
    border-radius: 9px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.reviews-filters a:hover,
.reviews-filters a.active {
    color: #fff;
    background: var(--review-navy);
    border-color: var(--review-navy);
}

.reviews-admin-list {
    display: grid;
    gap: 18px;
}

.review-admin-card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--review-border);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(21, 43, 73, 0.04);
}

.review-admin-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.review-admin-author {
    color: var(--review-navy);
    font-size: 1rem;
    font-weight: 800;
}

.review-admin-meta {
    margin-top: 6px;
    color: var(--review-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.review-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pending {
    color: #854d0e;
    background: #fef3c7;
}

.status-approved {
    color: #166534;
    background: #dcfce7;
}

.status-rejected {
    color: #991b1b;
    background: #fee2e2;
}

.review-admin-comment {
    color: #3c4859;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.review-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #edf0f4;
}

.review-admin-actions form {
    margin: 0;
}

.review-action {
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.review-action-approve {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.review-action-approve:hover {
    background: #dcfce7;
}

.review-action-reject {
    color: #854d0e;
    background: #fffbeb;
    border-color: #fde68a;
}

.review-action-reject:hover {
    background: #fef3c7;
}

.review-action-delete {
    color: #991b1b;
    background: #fff;
    border-color: #fecaca;
}

.review-action-delete:hover {
    background: #fef2f2;
}

@media (max-width: 640px) {
    .product-reviews {
        margin: 28px 0;
        padding: 19px;
        border-radius: 13px;
    }

    .product-reviews-heading,
    .reviews-admin-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-summary {
        width: 100%;
        box-sizing: border-box;
    }

    .review-form-card {
        padding: 17px;
    }

    .review-submit {
        width: 100%;
        box-sizing: border-box;
    }

    .review-admin-card {
        padding: 17px;
    }

    .review-admin-top {
        flex-direction: column;
    }

    .review-admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .review-admin-actions form,
    .review-action {
        width: 100%;
        box-sizing: border-box;
    }
}
