/* ============================================================
   NewsLeb — Ticker CSS
   CRITICAL LOCK: Never modify position, bottom, z-index, width
   ============================================================ */

#urgent-ticker {
    position: fixed;       /* LOCKED — never change */
    bottom: 0;             /* LOCKED — never change */
    left: 0;               /* LOCKED — never change */
    width: 100%;           /* LOCKED — never change */
    z-index: 9999;         /* LOCKED — never change */
    height: 40px;
    background-color: #0a0f1e;
    border-top: 2px solid #e63946;
    display: flex;
    align-items: center;
    overflow: hidden;
    direction: ltr;        /* force LTR so JS cloning logic works in RTL pages */
}

.ticker-label {
    background-color: #e63946;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
    padding-right: 48px;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    color: #e2e8f0;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item:hover {
    color: #e63946;
}

.ticker-item::after {
    content: '◆';
    color: #374151;
    font-size: 8px;
    margin-right: 24px;
}

[dir="rtl"] .ticker-item::after {
    display: none;
}

[dir="rtl"] .ticker-item::before {
    content: '◆';
    color: #374151;
    font-size: 8px;
    margin-right: 24px;
}

/* Breaking news: red pulsing dot */
.ticker-breaking {
    color: #fca5a5;
}

.ticker-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e63946;
    animation: pulse-dot 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Urgent: orange label */
.ticker-urgent {
    color: #fdba74;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* Mobile: reduced height + font */
@media (max-width: 768px) {
    #urgent-ticker {
        height: 32px;
    }
    .ticker-item {
        font-size: 11px;
    }
    .ticker-label {
        font-size: 10px;
        padding: 0 8px;
    }
}
