/**
 * Breaking News Ticker Component
 */

.breaking-news-ticker {
    background-color: #FF5722;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-item {
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 50px;
    white-space: nowrap;
    width: max-content;
    animation: scroll-ticker 40s linear infinite;
}

[dir="rtl"] .ticker-track {
    animation: scroll-ticker-rtl 40s linear infinite;
}

.ticker-track a {
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.ticker-item::before {
    content: "•";
    color: white;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
}

@keyframes scroll-ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes scroll-ticker-rtl {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .breaking-news-ticker {
        padding: 8px 0;
    }

    .ticker-label {
        font-size: 12px;
        padding-right: 15px;
    }

    .ticker-content a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ticker-label {
        font-size: 11px;
        padding-right: 10px;
    }

    .ticker-content a {
        font-size: 12px;
    }
}