/**
 * تنسيقات مخصصة لتحسين مظهر الهيدر
 */

/* تنسيقات الشعارات - تطبيق إجباري */
img.logo-img {
    height: 250px !important;
    width: auto !important;
    max-width: 100% !important;
}

.header-center img, .header-center .logo img {
    height: 250px !important;
    width: auto !important;
}

.logo img {
    height: 250px !important;
    width: auto !important;
    max-height: none !important;
}

/* تنسيقات الشعار للشاشات الصغيرة - الموبايل */
@media (max-width: 767px) {
    img.logo-img {
        height: 120px !important;
    }
    
    .header-center img, .header-center .logo img {
        height: 120px !important;
    }
    
    .logo img {
        height: 120px !important;
    }
    
    /* تصغير الشعارات الجانبية على الموبايل */
    img.header-image {
        height: 60px !important;
    }
}

img.header-image {
    height: 120px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* جعل شريط الأخبار العاجلة يتحرك من اليسار إلى اليمين */
@keyframes breaking-news-rtl {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.breaking-news__items {
    animation-name: breaking-news-rtl !important;
    animation-duration: 30s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
}

/* تحسينات موضع أزرار الدخول والتسجيل */
.navbar-actions {
    margin-right: auto;
    padding-left: 50px;
}

/* تحسينات لمعلومات رئيس التحرير */
.header-info-right {
    text-align: right;
    padding-left: var(--spacing-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.2;
    align-self: flex-end;
    margin-bottom: var(--spacing-2);
}

.editor-title-line1 {
    font-size: var(--fs-sm);
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0;
}

.editor-title-line2 {
    font-size: var(--fs-sm);
    font-family: var(--font-cairo);
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: var(--spacing-1);
}

.editor-name {
    font-size: var(--fs-md);
    font-family: var(--font-cairo);
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 0;
}

/* تنسيقات القائمة الجانبية على الهواتف */
.nav-close {
    display: none;
}

/* قائمة الهواتف الجانبية */

/* تنسيق طبقة التراكب الجانبية */
.nav-overlay {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
}
@media (max-width: 768px) {
    /* تنسيق زر الإغلاق */
    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 15px;
        left: 15px;
        background-color: var(--primary-red);
        border: none;
        color: var(--primary-white);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        z-index: 999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    
    .nav-close:hover {
        background-color: var(--primary-black);
        transform: scale(1.05);
    }

    /* تنسيق القائمة الجانبية */
    #mainNav {
        background: rgba(0, 0, 0, 0.9) !important;
        backdrop-filter: blur(10px) !important;
        padding-top: 80px !important;
    }
    
    /* لوجو مصغر في أعلى القائمة */
    #mainNav::before {
        content: '';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        background-image: url('../uploads/logo/wehda_logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* تحسين مظهر الروابط في القائمة */
    #mainNav .nav-link {
        color: var(--primary-white) !important;
        font-size: 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        padding: 15px 20px !important;
        transition: all 0.3s ease !important;
    }
    
    #mainNav .nav-link:hover {
        background-color: rgba(204, 0, 0, 0.3) !important;
        color: var(--primary-gold) !important;
        transform: translateX(-5px) !important;
    }
    
    #mainNav .nav-item.active .nav-link {
        background-color: var(--primary-red) !important;
        color: var(--primary-white) !important;
    }
}

/* معلومات الاتصال في الهيدر */
.header-info-left {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: flex-end;
    margin-bottom: var(--spacing-2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-700);
}

.contact-info-item i {
    color: var(--primary-red);
    font-size: 16px;
}

.social-icons-mini {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-icon-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--gray-200);
    color: var(--primary-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon-mini:hover {
    background-color: var(--primary-red);
    color: var(--primary-white);
}

/* تكبير حجم اللوجو */
.logo-large {
    height: 220px;
    width: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.logo-center:hover .logo-large {
    transform: scale(1.05);
}

/* تحديد مقاس الشعار الرئيسي */
.logo-img {
    height: 220px;
    width: auto;
    max-width: 100%;
}
