/* تنسيقات شريط الإشعارات المتحرك */

.notification-bar {
    width: 100%;
    background-color: #e74c3c; /* تغيير لون الخلفية ليكون أكثر بروزاً */
    color: white;
    padding: 12px 0; /* زيادة المساحة الداخلية */
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* تحسين الظل */
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3); /* زيادة سمك الحدود */
    animation: slide-down 0.5s ease-in-out;
    height: 50px; /* زيادة الارتفاع */
}

.notification-container {
    width: 85%;
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* تنسيقات Swiper */
.notification-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notification-item {
    width: 100%;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px; /* زيادة حجم الخط */
    font-weight: 600; /* جعل الخط أكثر سماكة */
    letter-spacing: 0.5px; /* تحسين المسافة بين الحروف */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* إضافة ظل للنص */
}

.notification-item a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.notification-item a:hover {
    color: #f8f9fa;
    text-decoration: none;
}

.notification-icon {
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-icon i {
    font-size: 18px;
    color: #FFD700;
    animation: pulse 2s infinite;
}

.notification-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    padding-bottom: 2px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-link:hover {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

/* أزرار التحكم */
.notification-close, .notification-pause {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-right: 10px;
}

.notification-close:hover, .notification-pause:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #FFD700;
}

.notification-pause {
    margin-right: 0;
    margin-left: 10px;
}

/* تحسين أزرار التنقل للإشعارات */
.notification-nav button {
    background-color: rgba(255, 255, 255, 0.3); /* تحسين لون الخلفية */
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* إضافة ظل للأزرار */
}

.notification-nav button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* تنسيقات مؤشرات الصفحات */
.notification-swiper .swiper-pagination {
    position: absolute;
    bottom: -5px;
}

.notification-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.notification-swiper .swiper-pagination-bullet-active {
    background: #FFD700;
    opacity: 1;
}

/* تأثيرات حركية */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-down {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* تحسينات للجهاز المحمول */
@media (max-width: 768px) {
    .notification-bar {
        height: auto;
        min-height: 50px;
        padding: 8px 0;
    }
    
    .notification-container {
        width: 80%;
    }
    
    .notification-item {
        font-size: 14px; /* تصغير حجم الخط قليلاً للأجهزة المحمولة */
        padding: 3px 5px;
    }
    
    .notification-nav button {
        width: 24px;
        height: 24px;
    }
    
    .notification-close {
        width: 24px;
        height: 24px;
    }
}

/* تنسيقات لشريط الإشعارات المغلق */
.notification-bar.closed {
    display: none;
}

/* إضافة تنسيق لإضافة مساحة في أعلى الصفحة عند وجود شريط الإشعارات */
body.has-notification-bar {
    padding-top: 55px;
}
