/**
 * Breaking News Styles
 * Continuous Smooth Marquee Scrolling Model with Hover Pause & Controls
 */
.breaking-news-section {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    box-shadow: var(--shadow-subtle);
}

.breaking-news-container {
    display: flex;
    align-items: center;
    height: 48px;
    position: relative;
    overflow: hidden;
}

.breaking-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: #ffffff;
    height: 100%;
    padding: 0 16px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    padding-right: 24px;
    flex-shrink: 0;
    z-index: 5;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse-dot 1.4s infinite ease-in-out;
}

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

.breaking-title {
    font-family: var(--font-english);
    white-space: nowrap;
}

.breaking-title-ml {
    font-family: var(--font-malayalam);
    font-size: 0.76rem;
    opacity: 0.9;
    margin-left: 2px;
    white-space: nowrap;
}

/* Continuous Marquee Scrolling Track */
.ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
}

.ticker-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    will-change: transform;
}

.ticker-marquee-track.is-paused {
    animation-play-state: paused !important;
}

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

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

.ticker-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticker-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
    font-size: 0.9rem;
    padding: 0 16px;
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ticker-marquee-item:hover .ticker-headline {
    color: var(--color-primary);
    text-decoration: underline;
}

.ticker-category {
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-malayalam);
}

.ticker-headline {
    font-family: var(--font-malayalam);
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

.ticker-time {
    color: var(--color-text-light);
    font-size: 0.76rem;
    font-family: var(--font-malayalam);
}

.ticker-separator {
    color: #cbd5e1;
    margin-left: 12px;
    font-size: 0.65rem;
    letter-spacing: 2px;
}

/* Controls */
.ticker-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 12px;
    border-left: 1px solid var(--color-border);
    flex-shrink: 0;
    background-color: var(--color-white);
    z-index: 5;
    height: 100%;
}

.ticker-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.ticker-btn:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}
