/* arbah Pro — ads + ticker front-end styles.
   RTL-aware via logical properties. Loaded only on the front end. */

/* ---------- Ad units ---------- */
.arbah-pro-ad {
	display: block;
	text-align: center;
	margin: 15px auto;
	clear: both;
	overflow: hidden;
}

/* Optional "ad" label above the unit (set from the admin page). */
.arbah-pro-ad[data-label]::before {
	content: attr(data-label);
	display: block;
	font-size: 11px;
	color: #999;
	line-height: 1.6;
	text-align: center;
}

/* Device-specific units stay collapsed until JS injects them on a matching
   viewport — the ad code never loads on the wrong device. */
.arbah-pro-ad[data-device] {
	min-height: 0;
	margin: 0;
}
.arbah-pro-ad[data-device].is-active {
	margin: 15px auto;
}

/* CLS guard for the theme's legacy Customizer ad slots is printed inline
   from PHP (wp_head) using the value chosen in the admin page. */

/* ---------- Breaking-news ticker ---------- */
#arbah-pro-ticker {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 9980;
	display: flex;
	align-items: center;
	gap: 0;
	background: #111;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
}

#arbah-pro-ticker[hidden] {
	display: none;
}

.arbah-pro-ticker-label {
	flex: 0 0 auto;
	background: #d32f2f;
	color: #fff;
	font-weight: 700;
	padding: 12px 14px;
	white-space: nowrap;
}

.arbah-pro-ticker-track {
	flex: 1 1 auto;
	overflow: hidden;
	position: relative;
	height: 38px;
}

.arbah-pro-ticker-items {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	display: flex;
	align-items: center;
	height: 100%;
	white-space: nowrap;
	will-change: transform;
	animation: arbah-pro-marquee 30s linear infinite;
}

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

.arbah-pro-ticker-item {
	color: #fff;
	text-decoration: none;
	padding: 0 18px;
	position: relative;
}

a.arbah-pro-ticker-item:hover {
	color: #ffd54f;
}

.arbah-pro-ticker-item + .arbah-pro-ticker-item::before {
	content: "•";
	position: absolute;
	inset-inline-start: -4px;
	color: #d32f2f;
}

.arbah-pro-ticker-close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: #bbb;
	font-size: 20px;
	line-height: 1;
	padding: 10px 12px;
	cursor: pointer;
}

.arbah-pro-ticker-close:hover {
	color: #fff;
}

/* RTL marquee direction: content flows right-to-left. */
@keyframes arbah-pro-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(100%); }
}

html[dir="ltr"] .arbah-pro-ticker-items {
	animation-name: arbah-pro-marquee-ltr;
}

@keyframes arbah-pro-marquee-ltr {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
	.arbah-pro-ticker-items {
		animation: none;
	}
	.arbah-pro-ticker-track {
		overflow-x: auto;
	}
}
