/* ملف CSS لشريط الأخبار العاجلة - إصلاح انتهاكات CSP */

/* شريط الأخبار العاجلة */
.breaking-news-container {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.breaking-news {
    display: flex;
    align-items: center;
}

.breaking-news-label {
    background-color: #dc3545;
    color: white;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-left: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    min-width: 80px;
    justify-content: center;
}

.breaking-news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    padding: 0 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    min-width: max-content;
}

.ticker-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ticker-link:hover {
    color: #dc3545;
    text-decoration: underline;
}


@media (max-width: 768px) {
    .breaking-news {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding: 0.5rem 0;
    }

    .breaking-news-label {
        margin-bottom: 0.5rem;
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    .breaking-news-ticker {
        width: 100%;
        margin-top: 0.5rem;
    }

    .ticker-item {
        font-size: 0.85rem;
        padding: 0 1rem;
    }

}

@media (max-width: 480px) {
    .breaking-news {
        padding: 0.3rem 0;
    }

    .breaking-news-label {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .ticker-item {
        font-size: 0.8rem;
        padding: 0 0.8rem;
    }

}
