/**
 * محرر المقالات الصحفي الاحترافي — CSS الموقع الأمامي (v2.3.0)
 * تصميم العناصر الصحفية في المقال المنشور + مخرجات صناديق الإعدادات.
 * لا يغيّر أي شيء خارج صفحة المقال — ولا يُفعّل إلا لحقول معبأة فعلاً.
 */

/* ============================================================
 * 1) العناصر الصحفية داخل نص المقال (مطابقة لتصميم المحرر)
 * ============================================================ */
.dz-article-content .dz-block,
.dz-article-content .dz-alert {
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0;
    border-inline-start: 4px solid transparent;
    font-size: 15px;
    line-height: 1.85;
}
.dz-article-content .dz-block p:last-child,
.dz-article-content .dz-alert p:last-child,
.dz-article-content .dz-statement p:last-child,
.dz-article-content .dz-person p:last-child { margin-bottom: 0; }

.dz-article-content .dz-breaking {
    background: #fdf0ef;
    border-inline-start-color: #d93025;
    position: relative;
    padding-top: 38px;
}
.dz-article-content .dz-breaking .dz-tag {
    position: absolute;
    top: 10px;
    inset-inline-start: 14px;
    background: #d93025;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.dz-article-content .dz-info { background: #eef4fd; border-inline-start-color: #1877f2; }
.dz-article-content .dz-note { background: #fff8e8; border-inline-start-color: #d9822b; }
.dz-article-content .dz-explain { background: #f0f7f4; border-inline-start-color: #2ecc71; }
.dz-article-content .dz-explain h4 { margin-top: 0; color: #1e7a4c; }

.dz-article-content .dz-statement {
    background: #0b1e33;
    color: #eef2f7;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 18px 0;
}
.dz-article-content .dz-statement p { color: #eef2f7; margin: 0; }
.dz-article-content .dz-statement-who {
    display: block;
    margin-top: 10px;
    color: #f2b964;
    font-size: 13px;
    font-weight: 700;
}

.dz-article-content .dz-quote {
    border-inline-start: 4px solid #d9822b;
    margin: 18px 0;
    padding: 10px 18px;
    background: #f8fafc;
    font-size: 1.04em;
    color: #334155;
}
.dz-article-content .dz-quote p { margin: 0; }
.dz-article-content .dz-quote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: #d9822b;
}

.dz-article-content .dz-stats {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 18px 0;
}
.dz-article-content .dz-stats h4 {
    margin: 0 0 10px;
    color: #0b1e33;
    border-bottom: 2px solid #d9822b;
    display: inline-block;
    padding-bottom: 4px;
}
.dz-article-content .dz-stats ul { margin: 0; padding: 0; list-style: none; }
.dz-article-content .dz-stats li { padding: 6px 0; border-bottom: 1px dashed #e2e8f0; }
.dz-article-content .dz-stats li:last-child { border-bottom: 0; }
.dz-article-content .dz-stats strong { color: #d9822b; font-size: 1.25em; margin-inline-end: 8px; }

.dz-article-content .dz-sources {
    background: #f4f6f9;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 18px 0;
    border: 1px dashed #cbd5e1;
}
.dz-article-content .dz-sources h4 { margin: 0 0 8px; color: #475569; }
.dz-article-content .dz-sources ul { margin: 0; padding-inline-start: 20px; }

.dz-article-content .dz-person {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-inline-start: 4px solid #15406b;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 18px 0;
}
.dz-article-content .dz-person h4 { margin: 0 0 6px; color: #15406b; }

.dz-article-content .dz-related-inline {
    background: #eef4fd;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 18px 0;
    border: 1px solid #d3e3f8;
}
.dz-article-content .dz-related-inline h4 { margin: 0 0 6px; color: #15406b; font-size: 15px; }
.dz-article-content .dz-related-inline ul { margin: 0; padding-inline-start: 18px; }
.dz-article-content .dz-related-inline a { color: #1877f2; }

.dz-article-content .dz-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.dz-article-content .dz-table th { background: #0b1e33; color: #fff; padding: 8px 12px; text-align: start; }
.dz-article-content .dz-table td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: start; }
.dz-article-content .dz-table tbody tr:nth-child(even) { background: #f8fafc; }

.dz-article-content .dz-timeline { margin: 18px 0; padding-inline-start: 18px; border-inline-start: 2px solid #cbd5e1; }
.dz-article-content .dz-tl-item { position: relative; padding-inline-start: 18px; margin-bottom: 14px; }
.dz-article-content .dz-tl-item::before {
    content: '';
    position: absolute;
    inset-inline-start: -25px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #d9822b;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #d9822b;
}
.dz-article-content .dz-tl-time {
    display: inline-block;
    background: #15406b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 10px;
    margin-bottom: 4px;
    font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
}

.dz-article-content .dz-alert-danger  { background: #fdf0ef; border-inline-start-color: #d93025; }
.dz-article-content .dz-alert-warn    { background: #fff8e8; border-inline-start-color: #e6a817; }
.dz-article-content .dz-alert-info    { background: #eef4fd; border-inline-start-color: #1877f2; }
.dz-article-content .dz-alert-success { background: #eefaf2; border-inline-start-color: #2ecc71; }
.dz-article-content .dz-alert-announce{ background: #f6f1fc; border-inline-start-color: #7c3aed; }

.dz-article-content figure.dz-figure { margin: 18px 0; }
.dz-article-content figure.dz-figure img { max-width: 100%; height: auto; border-radius: 8px; }
.dz-article-content figure.dz-figure figcaption {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}
.dz-article-content mark { background: #fff3cd; padding: 0 4px; border-radius: 3px; }
.dz-article-content .dz-lead {
    font-size: 1.12em;
    font-weight: 600;
    color: #0b1e33;
    line-height: 1.75;
    border-inline-start: 3px solid #d9822b;
    padding-inline-start: 14px;
}

/* ============================================================
 * 2) مخرجات صناديق الإعدادات في صفحة المقال
 * ============================================================ */
/* العنوان الفرعي */
.dz-article-subtitle {
    font-size: 18px;
    color: #475569;
    font-weight: 600;
    line-height: 1.6;
    margin: -8px 0 18px;
    border-inline-start: 3px solid #d9822b;
    padding-inline-start: 12px;
}

/* سطر المعلومات */
.dz-article-meta-line {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.8;
}
.dz-article-meta-line a { color: #15406b; text-decoration: none; }
.dz-meta-sep { color: #cbd5e1; margin: 0 6px; }
.dz-article-readtime { white-space: nowrap; }

/* شريط العاجل أعلى المقال */
.dz-breaking-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d93025;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 15px;
}
.dz-breaking-banner .dz-bn-tag {
    background: #fff;
    color: #d93025;
    border-radius: 20px;
    font-size: 12px;
    padding: 2px 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* الصورة البارزة مع الحقوق */
.dz-article-featured { margin: 0 0 20px; }
.dz-article-featured .dz-featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.dz-article-featured .dz-featured-caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 6px 12px;
}
.dz-article-featured .dz-cap-credit { color: #94a3b8; font-size: 12px; }

/* المشاركة */
.dz-article-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 26px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.dz-share-label { font-weight: 700; color: #1e293b; font-size: 14px; margin-inline-end: 4px; }
.dz-share-btn {
    display: inline-block;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    transition: opacity .15s ease;
}
.dz-share-btn:hover { opacity: .85; }
.dz-sh-fb { background: #1877f2; }
.dz-sh-tw { background: #0b1e33; }
.dz-sh-wa { background: #25d366; }

/* المصدر */
.dz-article-source {
    margin: 14px 0 6px;
    font-size: 13px;
    color: #64748b;
    background: #f4f6f9;
    display: inline-block;
    border-radius: 20px;
    padding: 4px 14px;
}
.dz-article-source a { color: #15406b; text-decoration: none; font-weight: 700; }

/* مقالات ذات صلة */
.dz-article-related { margin: 26px 0 8px; }
.dz-article-related h3 {
    font-size: 20px;
    color: #0b1e33;
    border-inline-start: 4px solid #d9822b;
    padding-inline-start: 10px;
    margin-bottom: 14px;
}
.dz-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.dz-related-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dz-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 30, 51, .12);
}
.dz-related-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.dz-related-card .dz-rel-title2 {
    display: block;
    padding: 8px 10px 2px;
    color: #1e293b;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.6;
}
.dz-related-card .dz-rel-date {
    display: block;
    padding: 0 10px 10px;
    color: #94a3b8;
    font-size: 12px;
}

/* شارة العاجل داخل شريط آخر الأخبار بالموقع */
.breaking-item.dz-breaking-item { background: rgba(217, 48, 37, .18); }
.breaking-time-pill.dz-breaking-pill {
    background: #d93025;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

/* عرض كامل */
.single-article.dz-article-full { max-width: 100%; }

/* ============================================================
 * 3) التجاوب والحركة المخففة
 * ============================================================ */
@media (max-width: 782px) {
    .dz-related-grid { grid-template-columns: repeat(2, 1fr); }
    .dz-article-subtitle { font-size: 16px; }
}
@media (max-width: 480px) {
    .dz-related-grid { grid-template-columns: 1fr; }
    .dz-breaking-banner { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .dz-related-card { transition: none; }
}
