/*
 * Breaking-news ticker component (Sprint 1). Relocated verbatim into components/ — content unchanged.
 *
 * @package TFGadgets
 */

/**
 * Breaking-news ticker: auto-scrolling row with a hover/focus pause and
 * an explicit pause button (WCAG 2.2.2 Pause, Stop, Hide).
 *
 * @package TFGadgets
 */

.breaking-ticker {
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-alt);
	padding: 0 24px;
	overflow: hidden;
}
.breaking-ticker__label {
	flex: none;
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--accent);
	padding: 9px 0;
}
.breaking-ticker__track {
	flex: 1;
	overflow: hidden;
}
.breaking-ticker__list {
	display: flex;
	gap: 48px;
	white-space: nowrap;
	width: max-content;
	animation: tfg-ticker 32s linear infinite;
}
.breaking-ticker:hover .breaking-ticker__list,
.breaking-ticker:focus-within .breaking-ticker__list,
.breaking-ticker.is-paused .breaking-ticker__list {
	animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
	.breaking-ticker__list {
		animation: none;
	}
}
.breaking-ticker__list a {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
	padding: 9px 0;
	display: inline-block;
}
.breaking-ticker__list a:hover {
	color: var(--accent);
}
.breaking-ticker__pause {
	flex: none;
	background: none;
	border: 1px solid var(--line-strong);
	color: var(--text-faint);
	font-size: 11px;
	width: 26px;
	height: 26px;
	cursor: pointer;
}
@keyframes tfg-ticker {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
