/* =================================================== */
/* ============== شريط الأخبار العاجلة (Ticker) ======= */
/* =================================================== */

.naba-trending-ticker-wrapper {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0.5rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1400px;
    width: calc(100% - 4rem);
    position: relative;
    min-height: 45px;
    z-index: 1;
}

@media (max-width: 1440px) {
    .naba-trending-ticker-wrapper {
        max-width: 1200px;
    }
}

/* ─── Label "عاجل" ─── */
.naba-ticker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #fff;
    padding: 0 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    position: relative;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    min-width: 100px;
    justify-content: center;
}

/* الشكل المائل على الحافة اليسرى */
.naba-ticker-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -16px;
    width: 32px;
    height: 100%;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: skewX(-12deg);
    z-index: 1;
}

/* نقطة البث الحي المتحركة */
.naba-ticker-live-dot {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    animation: naba-live-pulse 1.5s ease-in-out infinite;
}

.naba-ticker-live-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: naba-dot-ring 1.5s ease-in-out infinite;
}

@keyframes naba-live-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes naba-dot-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.naba-ticker-label-text {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    font-weight: 800;
}

/* ─── أيقونة SVG للبرق ─── */
.naba-ticker-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ─── منطقة الأخبار المتحركة ─── */
.naba-ticker-carousel-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 1rem;
    overflow: hidden;
    position: relative;
    margin-right: 8px;
}

/* Fade edges */
.naba-ticker-carousel-wrapper::before,
.naba-ticker-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 5;
    pointer-events: none;
}

.naba-ticker-carousel-wrapper::before {
    right: 0;
    background: linear-gradient(to left, #0F172A, transparent);
}

.naba-ticker-carousel-wrapper::after {
    left: 0;
    background: linear-gradient(to right, #0F172A, transparent);
}

.naba-tranding-carousel {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.naba-ticker-news-item {
    padding: 0 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* الفاصل بين العناصر — نقطة دائرية */
.naba-ticker-news-item+.naba-ticker-news-item::before {
    content: '•';
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.2rem;
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
}

.naba-tranding-carousel a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: block;
}

.naba-tranding-carousel a:hover {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* =================================================== */
/* ============== Responsive ========================== */
/* =================================================== */

@media (max-width: 767px) {
    .naba-trending-ticker-wrapper {
        border-radius: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        min-height: 45px;
    }

    .naba-ticker-label {
        min-width: 20px;
        padding: 0 0.75rem;
        font-size: 0.85rem;
        gap: 0.35rem;
    }

    .naba-ticker-label::after {
        left: -12px;
        width: 24px;
    }

    .naba-ticker-label-text {
        display: none;
    }

    .naba-ticker-live-dot {
        width: 8px;
        height: 8px;
    }

    .naba-ticker-carousel-wrapper {
        padding: 0 0.75rem;
    }

    .naba-ticker-carousel-wrapper::before,
    .naba-ticker-carousel-wrapper::after {
        width: 20px;
    }

    .naba-ticker-carousel-wrapper::before {
        background: linear-gradient(to left, #0F172A, transparent);
    }

    .naba-ticker-carousel-wrapper::after {
        background: linear-gradient(to right, #0F172A, transparent);
    }

    .naba-tranding-carousel a {
        font-size: 0.8rem;
    }

    .naba-ticker-news-item {
        padding: 0 0.75rem;
    }
}