/* =========================================================
   MMC Reviews Styles - سامانه پارتاک (نسخه سبک و مدرن)
   ========================================================= */

/* --- ساختار کلی و کارت‌ها --- */
.mmc-reviews-wrapper, .mmc-review-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    font-family: inherit;
    direction: rtl;
}

.mmc-reviews-header, .mmc-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.mmc-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.mmc-reviews-header h2 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmc-form-title {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
    font-weight: 800;
}

.mmc-form-subtitle {
    font-size: 13px;
    color: #64748b;
}

.mmc-form-type-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 5px;
}

/* --- بخش خلاصه آمار --- */
.mmc-reviews-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
}

.mmc-summary-main {
    flex: 1;
    text-align: center;
    border-left: 1px dashed #cbd5e1;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mmc-summary-score {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 10px;
}

.mmc-score-out {
    font-size: 16px;
    color: #64748b;
    margin-right: 5px;
    font-weight: normal;
}

.mmc-summary-count {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
}

.mmc-summary-recommend {
    margin-top: 15px;
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.mmc-summary-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.mmc-criteria-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mmc-criteria-label {
    font-size: 13px;
    color: #334155;
    display: flex;
    justify-content: space-between;
}

.mmc-criteria-val {
    font-weight: bold;
    color: #0f172a;
}

.mmc-criteria-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.mmc-criteria-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
}

/* --- لیست نظرات --- */
.mmc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mmc-review-card {
    border: 1px solid #f1f5f9;
    padding: 20px;
    border-radius: 10px;
    background: #ffffff;
}

.mmc-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mmc-reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mmc-reviewer-avatar {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mmc-reviewer-meta {
    display: flex;
    flex-direction: column;
}

.mmc-reviewer-name {
    font-weight: bold;
    color: #0f172a;
    font-size: 14px;
}

.mmc-review-date {
    font-size: 12px;
    color: #94a3b8;
}

.mmc-review-services {
    font-size: 13px;
    color: #475569;
    margin-bottom: 10px;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.mmc-tag-label {
    font-weight: bold;
    color: #334155;
}

.mmc-review-body {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 15px;
}

.mmc-review-recommend {
    color: #10b981;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- گرافیک ستاره‌ها --- */
/* --- گرافیک ستاره‌ها (ویرایش شده) --- */
.mmc-review-stars {
    color: #f59e0b;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.mmc-star-rating-input {
    display: flex;
    gap: 5px;
    font-size: 24px;
    cursor: pointer;
    /* direction: rtl به صورت پیش‌فرض باعث می‌شود ستاره‌ها از راست به چپ چیده شوند */
}

.mmc-star-rating-input i {
    color: #cbd5e1; /* رنگ پیش‌فرض خاکستری برای ستاره توپر */
    transition: transform 0.1s ease, color 0.2s ease;
}

.mmc-star-rating-input i:active {
    transform: scale(0.85); /* افکت جذاب هنگام کلیک */
}
/* تمام تریک‌های هاور و کلاس‌های mmc-empty و mmc-rated از اینجا حذف شدند */

/* --- فیلدهای فرم --- */
.mmc-form-row {
    margin-bottom: 20px;
}

.mmc-form-label {
    display: block;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 10px;
    font-size: 14px;
}

.mmc-req {
    color: #ef4444;
}

.mmc-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    transition: border-color 0.3s;
    font-family: inherit;
    background: #fff;
}

.mmc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mmc-ltr-input {
    direction: ltr;
    text-align: left;
}

.mmc-services-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.mmc-checkbox-item {
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* دکمه‌های رادیویی لایک/دیسلایک */
.mmc-radio-group {
    display: flex;
    gap: 15px;
}

.mmc-radio-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #475569;
}

.mmc-radio-yes i { color: #10b981; }
.mmc-radio-no i { color: #ef4444; }

.mmc-radio-btn:hover { background: #f8fafc; }
.mmc-radio-btn input { display: none; }

/* استایل حالت انتخاب شده */
.mmc-radio-yes:has(input:checked) {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}
.mmc-radio-no:has(input:checked) {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.mmc-rating-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mmc-rating-title {
    font-size: 13px;
    color: #334155;
    margin-bottom: 5px;
}

.mmc-form-actions {
    margin-top: 30px;
    text-align: left;
}

/* دکمه‌ها و هشدارها */
.mmc-btn-primary {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.mmc-btn-primary:hover {
    background: #0284c7;
    color: #fff;
}

.mmc-btn-large {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
}

.mmc-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mmc-alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.mmc-alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mmc-hidden { display: none !important; }

/* ریسپانسیو */
@media (max-width: 768px) {
    .mmc-reviews-summary { flex-direction: column; }
    .mmc-summary-main { border-left: none; border-bottom: 1px dashed #cbd5e1; padding-left: 0; padding-bottom: 20px; }
    .mmc-reviews-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .mmc-rating-grid { grid-template-columns: 1fr; }
    .mmc-radio-group { flex-direction: column; }
    .mmc-form-actions { text-align: center; }
    .mmc-btn-large { width: 100%; justify-content: center; }
}