/* کانتینر اصلی نظرات */
.pro-reviews-container {
    max-width: 1200px;
    margin: 40px auto;
    background: var(--pro-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* هدر نظرات */
.pro-reviews-header {
    padding: 24px 30px;
    background: var(--pro-header-bg, #f8f9fa);
    border-bottom: 1px solid var(--pro-border, #e9ecef);
}

.pro-reviews-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
}

.pro-rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pro-accent, #ffc107);
    padding: 6px 12px;
    border-radius: 40px;
    color: #212529;
}

.pro-rating-average {
    font-weight: bold;
    font-size: 1.2rem;
}

/* آمار ستاره‌ها */
.pro-review-stats {
    margin-top: 20px;
}

.pro-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.pro-stat-label {
    width: 70px;
    font-weight: 500;
}

.pro-stat-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.pro-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.pro-stat-count {
    width: 40px;
    text-align: right;
    color: #6c757d;
}

/* لیست نظرات */
.pro-reviews-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-review-item {
    padding: 24px 30px;
    border-bottom: 1px solid var(--pro-border, #e9ecef);
    transition: background 0.2s;
}

.pro-review-item:hover {
    background: var(--pro-hover-bg, #f8f9fa);
}

/* کارت هر نظر */
.pro-review-card {
    display: flex;
    gap: 20px;
}

.pro-review-avatar {
    flex-shrink: 0;
}

.pro-review-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--pro-accent, #ffc107);
}

.pro-review-content {
    flex: 1;
}

.pro-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pro-review-author {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pro-text, #212529);
}

.pro-verified-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.pro-review-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.pro-review-rating {
    margin-bottom: 12px;
}

.pro-review-text {
    color: var(--pro-text-light, #495057);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pro-review-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pro-like-btn,
.pro-dislike-btn,
.pro-reply-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    color: #6c757d;
}

.pro-like-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.pro-dislike-btn:hover {
    background: #ffebee;
    color: #d32f2f;
}

.pro-reply-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.pro-reply-btn:hover {
    background: #e9ecef;
}

/* فرم ثبت نظر */
.pro-review-form-wrapper {
    padding: 30px;
    background: var(--pro-form-bg, #f8f9fa);
    border-top: 1px solid var(--pro-border, #e9ecef);
}

.pro-form-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.pro-rating-input {
    margin-bottom: 20px;
}

.pro-rating-input select {
    width: 200px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
}

.pro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.pro-form-group {
    margin-bottom: 15px;
}

.pro-form-group input,
.pro-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.pro-form-group input:focus,
.pro-form-group textarea:focus {
    outline: none;
    border-color: var(--pro-accent, #ffc107);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.pro-textarea {
    min-height: 120px;
    resize: vertical;
}

.pro-submit-btn {
    background: var(--pro-accent, #ffc107);
    color: #212529;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pro-submit-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* پیام‌ها و خطاها */
.pro-no-reviews,
.pro-verification-msg {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* صفحه‌بندی */
.pro-pagination {
    padding: 20px 30px;
    text-align: center;
}

.pro-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-pagination li a,
.pro-pagination li span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: white;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
}

.pro-pagination li a:hover {
    background: var(--pro-accent, #ffc107);
    color: white;
}

.pro-pagination li .current {
    background: var(--pro-accent, #ffc107);
    color: white;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .pro-reviews-container {
        margin: 20px;
        border-radius: 12px;
    }
    
    .pro-reviews-header,
    .pro-review-item,
    .pro-review-form-wrapper {
        padding: 16px 20px;
    }
    
    .pro-review-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .pro-review-avatar img {
        width: 45px;
        height: 45px;
    }
    
    .pro-reviews-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .pro-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .pro-review-meta {
        gap: 8px;
    }
    
    .pro-review-actions {
        flex-wrap: wrap;
    }
}

/* حالت دارک (اختیاری) */
@media (prefers-color-scheme: dark) {
    .pro-reviews-container {
        --pro-bg: #1e1e2f;
        --pro-header-bg: #2a2a3b;
        --pro-border: #3a3a4e;
        --pro-text: #e9ecef;
        --pro-text-light: #adb5bd;
        --pro-hover-bg: #252537;
        --pro-form-bg: #2a2a3b;
    }
    
    .pro-stat-bar {
        background: #3a3a4e;
    }
    
    .pro-form-group input,
    .pro-form-group textarea,
    .pro-rating-input select {
        background: #252537;
        border-color: #3a3a4e;
        color: white;
    }
}