/**
 * Article Enhancements CSS
 * تحسينات المقالات - العناوين ذات الصلة والميزات المتقدمة
 */

/* ===== العناوين ذات الصلة النصية - تصميم جديد ===== */
.nl7za-text-related {
    margin: 40px 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.text-related-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 25px;
    color: #1a1a1a;
    padding: 0 0 15px;
    border-bottom: 3px solid #00A859;
    position: relative;
    display: inline-block;
}

.text-related-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 40%;
    height: 3px;
    background: rgba(0, 168, 89, 0.3);
}

.title-icon {
    font-size: 28px;
    margin-left: 10px;
    vertical-align: middle;
}

.text-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.text-related-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 18px 25px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.25s ease;
}

.text-related-item:last-child {
    border-bottom: none;
}

.text-related-item:hover {
    background: linear-gradient(to right, #f8fffe, #fff);
    padding-right: 30px;
}

.item-number,
.item-bullet,
.item-icon {
    flex-shrink: 0;
    font-weight: 700;
    color: #666;
    font-size: 14px;
    min-width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.text-related-item:hover .item-number,
.text-related-item:hover .item-bullet,
.text-related-item:hover .item-icon {
    background: #00A859;
    color: #fff;
    transform: scale(1.08);
}

.item-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    flex: 1;
}

.item-title:hover {
    color: #00A859;
}

/* Style 4: أعمدة متعددة - تصميم أنيق */
.nl7za-text-related-style4 .text-related-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: #e8e8e8;
}

.nl7za-text-related-style4 .text-related-item {
    margin: 0;
}

/* Style 5: بوكسات منفصلة - كروت */
.nl7za-text-related-style5 .text-related-list {
    border: none;
    background: transparent;
    display: grid;
    gap: 15px;
}

.nl7za-text-related-style5 .text-related-item {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
}

.nl7za-text-related-style5 .text-related-item:hover {
    border-color: #00A859;
    box-shadow: 0 6px 20px rgba(0,168,89,0.15);
    transform: translateY(-2px);
}

/* Style 6: خطوط فاصلة - تصميم نظيف */
.nl7za-text-related-style6 .text-related-list {
    border: none;
    border-top: 1px solid #e8e8e8;
    background: transparent;
}

.nl7za-text-related-style6 .text-related-item {
    background: transparent;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 20px 0;
}

.nl7za-text-related-style6 .text-related-item:last-child {
    border-bottom: none;
}

.nl7za-text-related-style6 .text-related-item:hover {
    background: transparent;
    padding-right: 15px;
}

/* ===== صندوق المعلومات ===== */
.nl7za-article-info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.info-icon {
    font-size: 20px;
}

.info-label {
    font-weight: 600;
    opacity: 0.9;
}

.info-value {
    font-weight: 700;
}

.info-value a {
    color: #fff;
    text-decoration: underline;
}

/* ===== جدول المحتويات ===== */
.nl7za-table-of-contents {
    background: #f0f8ff;
    border: 2px solid #0073aa;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #0073aa;
}

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

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.toc-list a:hover {
    color: #0073aa;
}

.toc-level-2 {
    padding-right: 0;
}

.toc-level-3 {
    padding-right: 20px;
    font-size: 13px;
}

.toc-level-4 {
    padding-right: 40px;
    font-size: 12px;
}

/* ===== آخر تحديث ===== */
.nl7za-last-updated {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}

.update-icon {
    font-size: 18px;
}

/* ===== صناديق التنبيه ===== */
.nl7za-alert {
    padding: 18px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nl7za-alert-info {
    background: #e7f3ff;
    border-right: 4px solid #0073aa;
    color: #004085;
}

.nl7za-alert-success {
    background: #d4edda;
    border-right: 4px solid #28a745;
    color: #155724;
}

.nl7za-alert-warning {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    color: #856404;
}

.nl7za-alert-danger {
    background: #f8d7da;
    border-right: 4px solid #dc3545;
    color: #721c24;
}

/* ===== المصدر ===== */
.nl7za-article-source {
    background: #f5f5f5;
    border-right: 4px solid var(--primary, #00A859);
    padding: 15px 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.source-icon {
    font-size: 20px;
}

.source-label {
    color: #666;
}

.nl7za-article-source a {
    color: var(--primary, #00A859);
    font-weight: 700;
    text-decoration: none;
}

.nl7za-article-source a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nl7za-article-info-box {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .nl7za-text-related {
        padding: 15px;
    }
    
    .text-related-title {
        font-size: 18px;
    }
    
    .nl7za-text-related-style4 .text-related-list {
        column-count: 1;
    }
    
    .text-related-item {
        margin-bottom: 10px;
        padding: 10px;
    }
}

