/* ========== Professional Course Reviews - Version 1.1 ========== */

/* خلاصه امتیازات */
.pcr-rating-summary {
    display: flex;
    gap: 40px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 30px 0 40px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    align-items: center;
}

.pcr-average {
    text-align: center;
    min-width: 130px;
}

.pcr-average .big-number {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.pcr-average .stars {
    color: #f59e0b;
    font-size: 24px;
    letter-spacing: 2px;
    margin: 8px 0 4px;
}

.pcr-average .total {
    color: #64748b;
    font-size: 14px;
}

.pcr-bars {
    flex: 1;
    min-width: 240px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.bar-row .label {
    width: 70px;
    color: #475569;
    font-weight: 500;
}

.bar {
    flex: 1;
    height: 11px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.bar-row .count {
    width: 28px;
    text-align: left;
    color: #64748b;
    font-size: 13px;
}

/* کارت نظرات */
#reviews .commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#reviews .comment {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px !important;
    display: flex;
    gap: 18px;
    transition: all 0.25s ease;
}

#reviews .comment:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

#reviews img.avatar {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: cover;
    border: none !important;
}

.pcr-rating-stars {
    color: #f59e0b;
    font-size: 25px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.pcr-rating-stars .star.filled {
    color: #f59e0b;
}

.pcr-verified {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    padding: 3px 11px;
    border-radius: 99px;
    font-weight: 600;
    margin-right: 8px;
}

.pcr-extra-meta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.pcr-badge {
    display: inline-block;
    font-size: 12px;
    padding: 3px 11px;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pcr-badge.recommend {
    background: #dbeafe;
    color: #1e40af;
}

.pcr-badge.not-recommend {
    background: #fee2e2;
    color: #991b1b;
}

.pcr-learned,
.pcr-satisfaction {
    font-size: 14px;
    color: #475569;
    margin-top: 6px;
    line-height: 1.5;
}

.pcr-helpful {
    margin-top: 16px;
}

.pcr-helpful-btn {
    background-color: #1F232F !important;
    border: none !important;
    border-radius: 5px;
    padding: 7px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff !important;
}
.pcr-helpful-btn:hover {
    background-color: #3c425a !important;

}

.pcr-helpful-btn:hover {
    background: #e2e8f0;
}

.pcr-helpful-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

/* ========== فرم نظرات ========== */
#review_form_wrapper,
#review_form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-top: 30px;
}

#reply-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    color: #0f172a;
    display: none;
}

.pcr-form-row {
    display: flex;
    gap: 18px;
    margin-bottom: 4px;
}

.pcr-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.pcr-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 14.5px;
}

.pcr-form-group input[type="text"],
.pcr-form-group input[type="email"],
.pcr-form-group textarea,
.pcr-form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px !important;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
    color: #0f172a !important;
}

.pcr-form-group input:focus,
.pcr-form-group textarea:focus,
.pcr-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.pcr-extra-fields {
    background: #f8fafc;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
}

.pcr-radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.pcr-radio-group label {
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: #334155;
}

/* ستاره امتیاز در فرم */
.pcr-rating-field {
    margin-bottom: 24px !important;
}

.pcr-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    font-size: 22px !important;
    color: #000 !important;
    line-height: 1;
}

.pcr-stars-input input {
    display: none;
}

.pcr-stars-input label {
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    margin: 0 !important;
    font-weight: normal !important;
    font-size: 30px !important;
}

.pcr-stars-input label:hover,
.pcr-stars-input label:hover ~ label,
.pcr-stars-input input:checked ~ label {
    color: #f59e0b;
}

.pcr-stars-input label:hover {
    transform: scale(1.15);
}

/* دکمه ارسال */
.pcr-submit-btn,
#respond .form-submit input[type="submit"] {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 36px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: auto !important;
}

.pcr-submit-btn:hover,
#respond .form-submit input[type="submit"]:hover {
    background: #1e293b !important;
    transform: translateY(-1px);
}
.woocommerce-Reviews-title {
    display: none;
}
.comment-text{padding: 1em 1em 1em !important;}
/* ریسپانسیو */
@media (max-width: 640px) {
    .pcr-rating-summary {
        flex-direction: column;
        gap: 24px;
        padding: 22px;
    }

    .pcr-form-row {
        flex-direction: column;
        gap: 0;
    }

    #reviews .comment {
        flex-direction: column;
        gap: 14px;
    }

    .pcr-stars-input {
        font-size: 32px;
    }

    #review_form_wrapper,
    #review_form {
        padding: 22px;
    }
}