/* بارگذاری فونت استاندارد و حرفه‌ای وزیرمتن */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* کانتینر اصلی نوار اخباری */
.ticker-news-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(4, 10, 22, 0.92);
    border-top: 1px solid rgba(255, 180, 50, 0.5);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 170, 0, 0.2);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

/* نشانگر عنوان «خبر فوری / وضعیت سیستم» */
.ticker-badge {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    white-space: nowrap;
    border-left: 2px solid rgba(255, 215, 0, 0.6);
}

/* افکت نقطه چشمک‌زن زنده */
.ticker-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    margin-left: 8px;
    box-shadow: 0 0 8px #00ff88;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.8); }
}

/* محتوای در حال حرکت */
.ticker-content-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    animation: marqueeScroll 35s linear infinite;
}

.ticker-content-track:hover {
    animation-play-state: paused; /* توقف حرکت با رفتن ماوس روی متن */
}

/* هر آیتم خبری */
.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0 30px;
}

.ticker-item strong {
    color: #fbbf24;
    margin-left: 6px;
}

.ticker-divider {
    color: rgba(255, 180, 50, 0.4);
    margin: 0 15px;
    font-size: 1.2rem;
}

/* انیمیشن حرکت افقی بی‌وقفه */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}
