/**
 * Rgheeb Resume Checker Pro - Main Stylesheet
 * 
 * @package Rgheeb_Resume_Checker_Pro
 * @version 3.0.0
 */

/* استيراد خط Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

/* المتغيرات */
:root {
    --rgheeb-primary: #f3a022;
    --rgheeb-primary-dark: #d98e1d;
    --rgheeb-primary-light: #fef3c7;
    --rgheeb-secondary: #3a3a3a;
    --rgheeb-secondary-light: #5a5a5a;
    --rgheeb-success: #10b981;
    --rgheeb-success-light: #d1fae5;
    --rgheeb-warning: #f59e0b;
    --rgheeb-warning-light: #fef3c7;
    --rgheeb-danger: #ef4444;
    --rgheeb-danger-light: #fee2e2;
    --rgheeb-info: #3b82f6;
    --rgheeb-info-light: #dbeafe;
    --rgheeb-white: #ffffff;
    --rgheeb-gray-50: #f9fafb;
    --rgheeb-gray-100: #f3f4f6;
    --rgheeb-gray-200: #e5e7eb;
    --rgheeb-gray-300: #d1d5db;
    --rgheeb-gray-400: #9ca3af;
    --rgheeb-gray-500: #6b7280;
    --rgheeb-gray-600: #4b5563;
    --rgheeb-gray-700: #374151;
    --rgheeb-gray-800: #1f2937;
    --rgheeb-gray-900: #111827;
    --rgheeb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --rgheeb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --rgheeb-radius: 12px;
    --rgheeb-radius-sm: 8px;
    --rgheeb-transition: all 0.3s ease;
}

/* الحاوية الرئيسية */
.rgheeb-rc-wrapper {
    max-width: 900px;
    margin: 30px auto;
    padding: 0;
    background: var(--rgheeb-white);
    border-radius: var(--rgheeb-radius);
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    color: var(--rgheeb-secondary);
    box-shadow: var(--rgheeb-shadow-lg);
    overflow: hidden;
    line-height: 1.7;
}

/* رأس الصفحة المصغر */
.rgheeb-rc-header-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--rgheeb-gray-50);
    border-bottom: 1px solid var(--rgheeb-gray-200);
}

/* اللوقو في الرأس - مكبر إلى 150x75 بكسل */
.rgheeb-logo-mini {
    max-width: 150px !important;
    max-height: 75px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.rgheeb-header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
}

/* رأس التقرير للطباعة */
.rgheeb-report-header {
    display: none;
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid var(--rgheeb-primary);
    margin-bottom: 20px;
}

.rgheeb-report-header h2 {
    margin: 10px 0 0;
    font-size: 20px;
    color: var(--rgheeb-secondary);
}

/* اللوقو في رأس التقرير - مكبر إلى 150x75 بكسل */
.rgheeb-report-logo {
    max-width: 150px !important;
    max-height: 75px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/* منطقة الرفع */
.rgheeb-rc-upload-section {
    padding: 40px 30px;
}

.rgheeb-rc-upload-area {
    border: 2px dashed var(--rgheeb-gray-300);
    border-radius: var(--rgheeb-radius);
    padding: 50px 30px;
    text-align: center;
    background: var(--rgheeb-gray-50);
    transition: var(--rgheeb-transition);
    cursor: pointer;
}

.rgheeb-rc-upload-area:hover,
.rgheeb-rc-upload-area.dragover {
    border-color: var(--rgheeb-primary);
    background: var(--rgheeb-primary-light);
}

.rgheeb-upload-icon {
    color: var(--rgheeb-primary);
    margin-bottom: 20px;
}

.rgheeb-rc-upload-area h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
}

.rgheeb-upload-hint {
    color: var(--rgheeb-gray-500);
    margin: 0 0 5px;
}

.rgheeb-upload-formats {
    color: var(--rgheeb-gray-400);
    font-size: 13px;
    margin: 0 0 20px;
}

/* حقل الملف - مخفي بشكل صحيح */
#rgheeb-rc-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* الأزرار */
.rgheeb-rc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--rgheeb-radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rgheeb-transition);
    text-decoration: none;
}

.rgheeb-btn-primary {
    background: var(--rgheeb-primary);
    color: var(--rgheeb-white);
}

.rgheeb-btn-primary:hover {
    background: var(--rgheeb-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--rgheeb-shadow);
}

.rgheeb-btn-secondary {
    background: var(--rgheeb-gray-100);
    color: var(--rgheeb-secondary);
}

.rgheeb-btn-secondary:hover {
    background: var(--rgheeb-gray-200);
}

/* زر اختيار الملف كـ label */
label#rgheeb-select-file {
    display: inline-flex;
    cursor: pointer;
}

/* معاينة الملف */
.rgheeb-file-preview {
    background: var(--rgheeb-gray-50);
    border-radius: var(--rgheeb-radius);
    padding: 20px;
    margin-top: 20px;
}

.rgheeb-file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rgheeb-file-info svg {
    color: var(--rgheeb-primary);
    flex-shrink: 0;
}

.rgheeb-file-details {
    flex: 1;
}

.rgheeb-file-name {
    display: block;
    font-weight: 600;
    color: var(--rgheeb-secondary);
    word-break: break-all;
}

.rgheeb-file-size {
    display: block;
    font-size: 13px;
    color: var(--rgheeb-gray-500);
}

.rgheeb-remove-file {
    background: none;
    border: none;
    color: var(--rgheeb-gray-400);
    cursor: pointer;
    padding: 5px;
    transition: var(--rgheeb-transition);
}

.rgheeb-remove-file:hover {
    color: var(--rgheeb-danger);
}

.rgheeb-btn-analyze {
    width: 100%;
}

/* حالة التحميل */
.rgheeb-loading-section {
    padding: 60px 30px;
    text-align: center;
}

.rgheeb-loading-content {
    max-width: 400px;
    margin: 0 auto;
}

.rgheeb-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--rgheeb-gray-200);
    border-top-color: var(--rgheeb-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rgheeb-loading-section h3 {
    margin: 0 0 30px;
    color: var(--rgheeb-secondary);
}

.rgheeb-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rgheeb-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--rgheeb-gray-50);
    border-radius: var(--rgheeb-radius-sm);
    opacity: 0.5;
    transition: var(--rgheeb-transition);
}

.rgheeb-step.active {
    opacity: 1;
    background: var(--rgheeb-primary-light);
}

.rgheeb-step.completed {
    opacity: 1;
    background: var(--rgheeb-success-light);
}

.rgheeb-step-icon {
    font-size: 20px;
}

.rgheeb-step-text {
    font-weight: 500;
}

/* رسالة الخطأ */
.rgheeb-error-section {
    padding: 60px 30px;
    text-align: center;
}

.rgheeb-error-content {
    max-width: 400px;
    margin: 0 auto;
}

.rgheeb-error-content svg {
    color: var(--rgheeb-danger);
    margin-bottom: 20px;
}

.rgheeb-error-content h3 {
    margin: 0 0 10px;
    color: var(--rgheeb-danger);
}

.rgheeb-error-content p {
    color: var(--rgheeb-gray-600);
    margin: 0 0 25px;
}

/* نتائج التحليل */
.rgheeb-results-section {
    padding: 30px;
}

.rgheeb-results-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ملخص النتيجة */
.rgheeb-score-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, var(--rgheeb-primary-light) 0%, var(--rgheeb-white) 100%);
    border: 1px solid var(--rgheeb-primary);
    border-radius: var(--rgheeb-radius);
    padding: 30px;
    margin-bottom: 30px;
}

.rgheeb-score-chart {
    flex-shrink: 0;
}

.rgheeb-chart-container {
    position: relative;
    width: 140px;
    height: 140px;
}

.rgheeb-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#rgheeb-score-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--rgheeb-secondary);
    line-height: 1;
}

.rgheeb-score-label {
    font-size: 14px;
    color: var(--rgheeb-gray-500);
}

.rgheeb-score-details {
    flex: 1;
}

.rgheeb-score-details h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--rgheeb-secondary);
}

.rgheeb-grade-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--rgheeb-primary);
    color: var(--rgheeb-white);
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

#rgheeb-score-message {
    margin: 0;
    color: var(--rgheeb-gray-600);
    line-height: 1.8;
}

/* أقسام التحليل */
.rgheeb-analysis-section {
    margin-bottom: 25px;
    border: 1px solid var(--rgheeb-gray-200);
    border-radius: var(--rgheeb-radius);
    overflow: hidden;
}

.rgheeb-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--rgheeb-gray-100);
    border-bottom: 1px solid var(--rgheeb-gray-200);
}

.rgheeb-section-header svg {
    color: var(--rgheeb-primary);
}

.rgheeb-section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
}

.rgheeb-section-content {
    padding: 20px;
}

/* شبكة التحليل */
.rgheeb-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .rgheeb-analysis-grid {
        grid-template-columns: 1fr;
    }
}

/* بطاقات التحليل */
.rgheeb-analysis-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--rgheeb-white);
    border: 1px solid var(--rgheeb-gray-200);
    border-radius: var(--rgheeb-radius-sm);
    transition: var(--rgheeb-transition);
}

.rgheeb-analysis-card:hover {
    box-shadow: var(--rgheeb-shadow);
}

.rgheeb-status-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.rgheeb-status-icon.success {
    background: var(--rgheeb-success-light);
    color: var(--rgheeb-success);
}

.rgheeb-status-icon.warning {
    background: var(--rgheeb-warning-light);
    color: var(--rgheeb-warning);
}

.rgheeb-status-icon.danger {
    background: var(--rgheeb-danger-light);
    color: var(--rgheeb-danger);
}

.rgheeb-status-icon.info {
    background: var(--rgheeb-info-light);
    color: var(--rgheeb-info);
}

.rgheeb-card-content {
    flex: 1;
}

.rgheeb-card-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
    margin-bottom: 4px;
}

.rgheeb-card-content p {
    margin: 0;
    font-size: 14px;
    color: var(--rgheeb-gray-600);
    line-height: 1.6;
}

/* تسليط الضوء على المشاكل */
.rgheeb-problem-highlight {
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--rgheeb-danger-light);
    border: 1px solid var(--rgheeb-danger);
    border-radius: var(--rgheeb-radius-sm);
    font-size: 13px;
    color: var(--rgheeb-danger);
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

/* المهارات */
.rgheeb-skills-container {
    padding: 20px;
}

.rgheeb-skills-category {
    margin-bottom: 20px;
}

.rgheeb-skills-category:last-child {
    margin-bottom: 0;
}

.rgheeb-skills-category h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
}

.rgheeb-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rgheeb-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--rgheeb-gray-100);
    color: var(--rgheeb-secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--rgheeb-transition);
}

.rgheeb-tag:hover {
    background: var(--rgheeb-primary-light);
    color: var(--rgheeb-primary-dark);
}

.rgheeb-tag.hard-skill {
    background: var(--rgheeb-info-light);
    color: var(--rgheeb-info);
}

.rgheeb-tag.soft-skill {
    background: var(--rgheeb-success-light);
    color: var(--rgheeb-success);
}

/* التوصيات */
.rgheeb-recommendations-section {
    margin-top: 30px;
    border: 1px solid var(--rgheeb-gray-200);
    border-radius: var(--rgheeb-radius);
    overflow: hidden;
}

.rgheeb-recommendations-list {
    padding: 20px;
}

.rgheeb-recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--rgheeb-gray-50);
    border-radius: var(--rgheeb-radius-sm);
    margin-bottom: 12px;
}

.rgheeb-recommendation-item:last-child {
    margin-bottom: 0;
}

.rgheeb-recommendation-priority {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
}

.rgheeb-recommendation-priority.high {
    background: var(--rgheeb-danger);
}

.rgheeb-recommendation-priority.medium {
    background: var(--rgheeb-warning);
}

.rgheeb-recommendation-priority.low {
    background: var(--rgheeb-info);
}

.rgheeb-recommendation-text {
    flex: 1;
    font-size: 15px;
    color: var(--rgheeb-gray-700);
    line-height: 1.7;
}

/* تذييل التقرير */
.rgheeb-report-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--rgheeb-gray-200);
    text-align: center;
}

/* اللوقو في التذييل - مكبر إلى 120x60 بكسل */
.rgheeb-footer-logo {
    max-width: 120px !important;
    max-height: 60px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    margin-bottom: 15px;
}

.rgheeb-report-footer p {
    margin: 0 0 5px;
    color: var(--rgheeb-gray-500);
    font-size: 14px;
}

.rgheeb-report-date {
    font-size: 13px;
    color: var(--rgheeb-gray-400);
}

/* رؤى الذكاء الاصطناعي */
.rgheeb-ai-insights {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: var(--rgheeb-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.rgheeb-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.rgheeb-ai-assessment {
    font-size: 16px;
    color: var(--rgheeb-gray-700);
    line-height: 1.8;
}

/* نقاط القوة والضعف */
.rgheeb-strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .rgheeb-strengths-weaknesses {
        grid-template-columns: 1fr;
    }
}

.rgheeb-sw-column h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.rgheeb-sw-column.strengths h4 {
    color: var(--rgheeb-success);
}

.rgheeb-sw-column.weaknesses h4 {
    color: var(--rgheeb-danger);
}

.rgheeb-sw-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rgheeb-sw-list li {
    padding: 8px 0;
    padding-right: 20px;
    position: relative;
    font-size: 14px;
    color: var(--rgheeb-gray-600);
    border-bottom: 1px solid var(--rgheeb-gray-100);
}

.rgheeb-sw-list li:last-child {
    border-bottom: none;
}

.rgheeb-sw-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.rgheeb-sw-column.strengths .rgheeb-sw-list li::before {
    background: var(--rgheeb-success);
}

.rgheeb-sw-column.weaknesses .rgheeb-sw-list li::before {
    background: var(--rgheeb-danger);
}

/* استجابة الطباعة */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .rgheeb-rc-wrapper {
        box-shadow: none;
        border: none;
        max-width: 100%;
        margin: 0;
    }
    
    .rgheeb-report-header {
        display: block !important;
    }
    
    .rgheeb-score-summary {
        background: var(--rgheeb-primary-light) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .rgheeb-analysis-section {
        break-inside: avoid;
    }
    
    .rgheeb-report-footer {
        break-inside: avoid;
    }
}

/* إخفاء عناصر الطباعة فقط في العرض العادي */
.print-only {
    display: none;
}

/* استجابة الشاشات الصغيرة */
@media (max-width: 768px) {
    .rgheeb-rc-wrapper {
        margin: 15px;
        border-radius: var(--rgheeb-radius-sm);
    }
    
    .rgheeb-rc-header-mini {
        padding: 10px 15px;
    }
    
    .rgheeb-logo-mini {
        max-width: 100px !important;
        max-height: 50px !important;
    }
    
    .rgheeb-header-title {
        font-size: 12px;
    }
    
    .rgheeb-rc-upload-section,
    .rgheeb-results-section {
        padding: 20px;
    }
    
    .rgheeb-score-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .rgheeb-results-toolbar {
        flex-direction: column;
    }
    
    .rgheeb-results-toolbar .rgheeb-rc-btn {
        width: 100%;
    }
    
    .rgheeb-footer-logo {
        max-width: 80px !important;
        max-height: 40px !important;
    }
}


/* ============================================
   التحليل الدلالي (Semantic Analysis)
   ============================================ */

/* إحصائيات التحليل الدلالي */
.rgheeb-semantic-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .rgheeb-semantic-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rgheeb-stat-box {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--rgheeb-primary-light) 0%, var(--rgheeb-white) 100%);
    border: 1px solid var(--rgheeb-primary);
    border-radius: var(--rgheeb-radius-sm);
}

.rgheeb-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--rgheeb-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.rgheeb-stat-label {
    font-size: 12px;
    color: var(--rgheeb-gray-600);
    font-weight: 500;
}

/* قائمة الإنجازات */
.rgheeb-achievements-list {
    background: var(--rgheeb-gray-50);
    border-radius: var(--rgheeb-radius-sm);
    padding: 20px;
    margin-bottom: 15px;
}

.rgheeb-achievements-list h4 {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
}

.rgheeb-achievement-item {
    padding: 10px 0;
    padding-right: 10px;
    font-size: 14px;
    color: var(--rgheeb-gray-700);
    border-bottom: 1px solid var(--rgheeb-gray-200);
    line-height: 1.6;
}

.rgheeb-achievement-item:last-child {
    border-bottom: none;
}

/* رسالة عدم وجود إنجازات */
.rgheeb-no-achievements {
    background: var(--rgheeb-warning-light);
    border: 1px solid var(--rgheeb-warning);
    border-radius: var(--rgheeb-radius-sm);
    padding: 15px 20px;
    margin-bottom: 15px;
}

.rgheeb-no-achievements p {
    margin: 0;
    font-size: 14px;
    color: var(--rgheeb-gray-700);
}

/* الكلمات الأكثر شيوعاً */
.path.rgheeb.samon-words {
    margin-top: 15px;
}

.path.rgheeb.samon-words h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rgheeb-secondary);
}

/* ============================================
   تحسينات الطباعة
   ============================================ */

@media print {
    .rgheeb-semantic-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .rgheeb-stat-box {
        background: var(--rgheeb-primary-light) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .rgheeb-achievement-item {
        page-break-inside: avoid;
    }
}

/* ============================================
   تحسينات الموبايل الشاملة
   ============================================ */

/* الشاشات الصغيرة (480px وأقل) */
@media (max-width: 480px) {
    /* التخطيط العام */
    .rgheeb-rc-wrapper {
        margin: 10px;
        padding: 0;
    }
    
    /* الهيدر */
    .rgheeb-rc-header-mini {
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    
    .rgheeb-logo-mini {
        max-width: 80px !important;
        max-height: 40px !important;
    }
    
    .rgheeb-header-title {
        font-size: 11px;
    }
    
    /* الأقسام */
    .rgheeb-rc-upload-section,
    .rgheeb-results-section,
    .rgheeb-analysis-section {
        padding: 15px;
    }
    
    /* الدرجة والتقييم */
    .rgheeb-score-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .rgheeb-score-circle {
        width: 120px !important;
        height: 120px !important;
    }
    
    .rgheeb-score-value {
        font-size: 36px !important;
    }
    
    .rgheeb-score-details {
        text-align: center;
    }
    
    .rgheeb-score-label {
        font-size: 16px !important;
    }
    
    .rgheeb-score-description {
        font-size: 13px !important;
    }
    
    /* أزرار الإجراءات */
    .rgheeb-results-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .rgheeb-results-toolbar .rgheeb-rc-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* الأقسام التحليلية */
    .rgheeb-analysis-section {
        margin-bottom: 15px;
    }
    
    .rgheeb-section-header {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .rgheeb-section-header svg {
        width: 18px;
        height: 18px;
    }
    
    .rgheeb-section-header h3 {
        font-size: 14px;
    }
    
    .rgheeb-section-content {
        padding: 15px;
    }
    
    /* شبكة التحليل */
    .rgheeb-analysis-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* نقاط القوة والضعف */
    .rgheeb-strengths-weaknesses {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .rgheeb-strength-item,
    .rgheeb-weakness-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* الإحصائيات */
    .rgheeb-semantic-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
    
    .rgheeb-stat-box {
        padding: 15px 10px;
    }
    
    .rgheeb-stat-value {
        font-size: 24px;
    }
    
    .rgheeb-stat-label {
        font-size: 11px;
    }
    
    /* الجداول */
    .rgheeb-info-table {
        font-size: 13px;
    }
    
    .rgheeb-info-table td {
        padding: 10px;
    }
    
    /* التوصيات */
    .rgheeb-recommendations-list {
        padding: 12px;
    }
    
    .rgheeb-recommendation-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* الأيقونات */
    .rgheeb-recommendation-item svg,
    .rgheeb-strength-item svg,
    .rgheeb-weakness-item svg {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }
    
    /* الشارات */
    .rgheeb-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    /* التذييل */
    .rgheeb-report-footer {
        padding: 15px;
    }
    
    .rgheeb-footer-logo {
        max-width: 60px !important;
        max-height: 30px !important;
    }
    
    .rgheeb-report-footer p {
        font-size: 11px;
    }
    
    /* زر الإجراء */
    .rgheeb-action-button-container {
        margin: 20px 0 !important;
    }
    
    .rgheeb-btn-action {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* الشاشات المتوسطة (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* الشبكات */
    .rgheeb-analysis-grid {
        grid-template-columns: 1fr !important;
    }
    
    .rgheeb-strengths-weaknesses {
        grid-template-columns: 1fr !important;
    }
    
    .rgheeb-semantic-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* الدرجة */
    .rgheeb-score-circle {
        width: 140px !important;
        height: 140px !important;
    }
    
    .rgheeb-score-value {
        font-size: 42px !important;
    }
    
    /* الأزرار */
    .rgheeb-results-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rgheeb-results-toolbar .rgheeb-rc-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
    }
}

/* تحسينات عامة للشاشات الصغيرة */
@media (max-width: 768px) {
    /* إخفاء العناصر غير الضرورية */
    .no-mobile {
        display: none !important;
    }
    
    /* تحسين القراءة */
    body {
        font-size: 14px;
    }
    
    /* تحسين التمرير */
    .rgheeb-rc-wrapper {
        overflow-x: hidden;
    }
    
    /* تحسين الأيقونات */
    svg {
        flex-shrink: 0;
    }
    
    /* تحسين الأزرار */
    .rgheeb-rc-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* تحسين النصوص الطويلة */
    .rgheeb-section-content p,
    .rgheeb-section-content li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* تحسين الجداول */
    .rgheeb-info-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* تحسين الصور */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* تحسينات للشاشات الصغيرة جداً (360px وأقل) */
@media (max-width: 360px) {
    .rgheeb-rc-wrapper {
        margin: 5px;
    }
    
    .rgheeb-score-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    .rgheeb-score-value {
        font-size: 30px !important;
    }
    
    .rgheeb-semantic-stats {
        grid-template-columns: 1fr !important;
    }
    
    .rgheeb-results-toolbar .rgheeb-rc-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ============================================
   ترشيح الوظائف المناسبة - Job Recommendations
   @since 5.3.0
   ============================================ */

.rgheeb-job-recommendations .rgheeb-section-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: var(--rgheeb-radius) var(--rgheeb-radius) 0 0;
    padding: 16px 20px;
}

.rgheeb-job-recommendations .rgheeb-section-header svg {
    stroke: white;
}

.rgheeb-job-recommendations .rgheeb-section-header h3 {
    color: white;
    font-size: 16px;
}

.rgheeb-jobs-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 50%, #ffffff 100%);
    border-radius: 0 0 var(--rgheeb-radius) var(--rgheeb-radius);
    border: 1px solid #e9d5ff;
    border-top: none;
}

.rgheeb-job-card {
    background: var(--rgheeb-white);
    border-radius: var(--rgheeb-radius);
    border: 1px solid var(--rgheeb-gray-200);
    overflow: hidden;
    transition: var(--rgheeb-transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rgheeb-job-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.rgheeb-job-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--rgheeb-gray-50);
    border-bottom: 1px solid var(--rgheeb-gray-200);
}

.rgheeb-job-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.rgheeb-job-titles {
    flex: 1;
    min-width: 0;
}

.rgheeb-job-title-ar {
    font-size: 15px;
    font-weight: 700;
    color: var(--rgheeb-secondary);
    margin: 0 0 2px 0;
}

.rgheeb-job-title-en {
    font-size: 12px;
    color: var(--rgheeb-gray-500);
}

.rgheeb-job-match {
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.rgheeb-job-body {
    padding: 16px 20px;
}

.rgheeb-job-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--rgheeb-gray-600);
}

.rgheeb-job-label {
    font-weight: 600;
    color: var(--rgheeb-gray-700);
    font-size: 12px;
    white-space: nowrap;
}

.rgheeb-job-reason {
    margin: 12px 0;
    padding: 10px 14px;
    background: #f5f3ff;
    border-radius: var(--rgheeb-radius-sm);
    border-right: 3px solid #8b5cf6;
}

.rgheeb-job-reason p {
    margin: 0;
    font-size: 13px;
    color: var(--rgheeb-gray-700);
    line-height: 1.6;
}

.rgheeb-job-skills,
.rgheeb-job-missing {
    margin-top: 10px;
}

.rgheeb-job-skills .rgheeb-tags-container,
.rgheeb-job-missing .rgheeb-tags-container {
    margin-top: 6px;
}

.rgheeb-tag-missing {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
}

@media (max-width: 600px) {
    .rgheeb-job-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rgheeb-job-match {
        margin-right: auto;
    }
    
    .rgheeb-job-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
