/* =========================================================
   EMENIU — PLAN REVIEWS SECTION
   style-reviews.css
   ========================================================= */

/* ── Section wrapper ──────────────────────────────────── */
.emeniu-reviews-section {
    background: #f9f6f0;
    padding: 70px 0 80px;
    font-family: 'Inter', sans-serif;
}

.emeniu-reviews-section .reviews-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section heading ──────────────────────────────────── */
.emeniu-reviews-section .reviews-heading {
    text-align: center;
    margin-bottom: 48px;
}

.emeniu-reviews-section .reviews-heading h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #3a4b35;
    margin: 0 0 8px;
}

.emeniu-reviews-section .reviews-heading .reviews-subtitle {
    font-size: 0.95rem;
    color: #7a8a74;
}

/* ── Summary bar ──────────────────────────────────────── */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 36px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.reviews-avg-score {
    text-align: center;
    min-width: 90px;
}

.reviews-avg-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3a4b35;
    line-height: 1;
}

.reviews-avg-stars {
    margin: 6px 0 4px;
}

.reviews-avg-count {
    font-size: 0.8rem;
    color: #999;
}

.reviews-bars {
    flex: 1;
}

.reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.reviews-bar-label {
    font-size: 0.8rem;
    color: #666;
    min-width: 36px;
    text-align: right;
}

.reviews-bar-track {
    flex: 1;
    height: 7px;
    background: #e8e2d8;
    border-radius: 99px;
    overflow: hidden;
}

.reviews-bar-fill {
    height: 100%;
    background: #c9a96e;
    border-radius: 99px;
    transition: width 0.6s ease;
}

.reviews-bar-num {
    font-size: 0.78rem;
    color: #999;
    min-width: 18px;
}

/* ── Star display (static) ────────────────────────────── */
.stars-display {
    display: inline-flex;
    gap: 2px;
    color: #c9a96e;
    font-size: 1rem;
    line-height: 1;
}

.stars-display .star-empty {
    color: #ddd;
}

/* ── Review cards list ────────────────────────────────── */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.review-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #ede8e0;
    transition: box-shadow 0.2s;
}

.review-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.review-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3a4b35;
}

.review-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-card-date {
    font-size: 0.78rem;
    color: #aaa;
}

.review-verified-badge {
    font-size: 0.72rem;
    color: #5d8a57;
    background: #eaf4e8;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.review-card-title {
    font-weight: 600;
    color: #3a4b35;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.review-card-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── Load more button ─────────────────────────────────── */
.reviews-load-more-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-load-more {
    background: transparent;
    border: 2px solid #c9a96e;
    color: #c9a96e;
    padding: 10px 28px;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.reviews-load-more:hover {
    background: #c9a96e;
    color: #fff;
}

.reviews-load-more:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── Empty state ──────────────────────────────────────── */
.reviews-empty {
    text-align: center;
    padding: 36px 0;
    color: #aaa;
    font-size: 0.9rem;
}

/* ── Divider ──────────────────────────────────────────── */
.reviews-divider {
    border: none;
    border-top: 1px solid #e8e2d8;
    margin: 0 0 40px;
}

/* ── Review form wrapper ──────────────────────────────── */
.reviews-form-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #ede8e0;
}

.reviews-form-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #3a4b35;
    margin: 0 0 24px;
}

/* ── Locked state (not logged in / not purchased) ─────── */
.reviews-locked {
    text-align: center;
    padding: 12px 0 8px;
    color: #888;
    font-size: 0.92rem;
    line-height: 1.7;
}

.reviews-locked a {
    color: #6f7f63;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Star rating INPUT (CSS interactive) ─────────────── */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-bottom: 20px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}

/* Highlight selected and hovered stars */
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input[type="radio"]:checked ~ label {
    color: #c9a96e;
}

.star-rating-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* ── Form fields ──────────────────────────────────────── */
.review-field {
    margin-bottom: 18px;
}

.review-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.review-field input[type="text"],
.review-field textarea {
    width: 100%;
    border: 1px solid #d8d0c4;
    border-radius: 10px;
    padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background: #faf9f7;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    resize: vertical;
}

.review-field input[type="text"]:focus,
.review-field textarea:focus {
    outline: none;
    border-color: #6f7f63;
    box-shadow: 0 0 0 3px rgba(111,127,99,0.1);
    background: #fff;
}

.review-field textarea {
    min-height: 110px;
}

/* ── Submit button ────────────────────────────────────── */
.review-submit-btn {
    background: #6f7f63;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.review-submit-btn:hover {
    background: #5a6b50;
    transform: translateY(-1px);
}

.review-submit-btn:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

/* ── Messages ─────────────────────────────────────────── */
.review-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    display: none;
}

.review-message.success {
    background: #eaf4e8;
    color: #3d6e38;
    border: 1px solid #b7dcb3;
    display: block;
}

.review-message.error {
    background: #fdecea;
    color: #b33a3a;
    border: 1px solid #f0b9b8;
    display: block;
}

/* ── Already reviewed notice ──────────────────────────── */
.review-already-done {
    background: #f0f4ee;
    border: 1px solid #c4d4be;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #4a6644;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
    .emeniu-reviews-section {
        padding: 50px 0 60px;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .reviews-avg-score {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: unset;
        text-align: left;
    }

    .review-card {
        padding: 18px 20px;
    }

    .reviews-form-section {
        padding: 22px 18px;
    }

    .star-rating-input label {
        font-size: 1.7rem;
    }
}
