/* تحسينات إضافية للأداء والاستجابة */

/* إخفاء المحتوى مع الحفاظ عليه لقارئات الشاشة */
.mutahaqiq-bashri {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* شريط التقدم */
.shrit-taqaddum {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: transparent;
    z-index: 10000;
}

.shrit-taqaddum-dakhil {
    height: 100%;
    background: linear-gradient(90deg, var(--dhahab), var(--nahar));
    width: 0%;
    transition: width 0.1s ease;
}

/* حاملة الصورة */
.ghalaf-sura {
    position: relative;
    overflow: hidden;
    border-radius: var(--nida-zawi-kabir);
    background: var(--layl-aktar-fatih);
}

.ghalaf-sura::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.ghalaf-sura img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الوسم */
.wasam {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--nida-zawi-dawra);
    text-transform: none;
}

.wasam-dhahab {
    background: rgba(232,160,32,0.12);
    color: var(--dhahab);
    border: 1px solid rgba(232,160,32,0.25);
}

.wasam-khadra {
    background: rgba(46,204,113,0.1);
    color: var(--khadra);
    border: 1px solid rgba(46,204,113,0.2);
}

/* عنصر الإحصاء */
.ihsa2 {
    text-align: center;
    padding: 20px;
}

.ihsa2-raqam {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--dhahab);
    line-height: 1;
    margin-bottom: 6px;
}

.ihsa2-nass {
    font-size: 0.85rem;
    color: var(--ramad);
}

/* التنبيه */
.tanbih {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--nida-zawi);
    margin: 20px 0;
}

.tanbih-ma3louma {
    background: rgba(52,152,219,0.1);
    border: 1px solid rgba(52,152,219,0.2);
    border-right: 3px solid #3498db;
}

.tanbih-tanbih {
    background: rgba(232,160,32,0.1);
    border: 1px solid rgba(232,160,32,0.2);
    border-right: 3px solid var(--dhahab);
}

.tanbih-khattar {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.18);
    border-right: 3px solid var(--khattar);
}

.tanbih svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tanbih-ma3louma svg { fill: #3498db; }
.tanbih-tanbih svg { fill: var(--dhahab); }
.tanbih-khattar svg { fill: var(--khattar); }

.tanbih p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--ramad-fatih);
}

/* قوائم مميزة */
.qa2ima-mudahana {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.qa2ima-mudahana li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--hudud-ramad);
    color: var(--ramad-fatih);
    font-size: 0.93rem;
    margin: 0;
}

.qa2ima-mudahana li:last-child {
    border-bottom: none;
}

.qa2ima-mudahana li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dhahab);
    flex-shrink: 0;
    margin-top: 7px;
}

/* رابط قراءة المزيد */
.rbt-mazid {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dhahab);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--naqla-sari3);
}

.rbt-mazid svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transform: scaleX(-1);
    transition: transform 0.2s ease;
}

.rbt-mazid:hover {
    color: var(--dhahab-fatih);
}

.rbt-mazid:hover svg {
    transform: scaleX(-1) translateX(-3px);
}

/* نجمة التحقق */
.najma-tahaqquq {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--khadra);
    font-size: 0.85rem;
    font-weight: 600;
}

.najma-tahaqquq svg {
    width: 16px;
    height: 16px;
    fill: var(--khadra);
}

/* الخلفية الشبكية الدقيقة */
.khalfiya-shabaka {
    background-image: 
        linear-gradient(rgba(232,160,32,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,160,32,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* تحسين الطباعة العربية */
p, li, td, th {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* تحسين RTL للأيقونات */
.ikon-3arabi {
    transform: scaleX(-1);
    display: inline-block;
}

/* تمييز النص */
::selection {
    background: rgba(232,160,32,0.25);
    color: var(--baydh);
}

/* شريط التمرير */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--layl);
}

::-webkit-scrollbar-thumb {
    background: var(--layl-aktar-fatih);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dhahab-ghamiq);
}
