/* 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;
	}
}

/* ---------- Author box (end of article) ---------- */
.arbah-pro-author-box {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	margin: 25px 0;
	padding: 18px;
	background: #f7f8fa;
	border: 1px solid #e7e9ee;
	border-radius: 10px;
}

.arbah-pro-author-avatar img {
	border-radius: 50%;
	display: block;
	width: 72px;
	height: 72px;
}

.arbah-pro-author-name {
	display: inline-block;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	margin-bottom: 6px;
}

.arbah-pro-author-name:hover {
	color: #d32f2f;
}

.arbah-pro-author-bio {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.8;
	color: #555;
}

.arbah-pro-author-link {
	font-size: 13px;
	font-weight: 600;
	color: #d32f2f;
	text-decoration: none;
}

.arbah-pro-author-link:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.arbah-pro-author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* ---------- Autoload (archives + next article) ---------- */

/* Hide the prev/next links when JS infinite scroll is active; the links stay
   in the HTML for search engines and no-JS visitors. */
.arbah-al-active .navigation.posts-navigation,
.arbah-al-active .navigation.pagination {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.arbah-pro-loader {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 25px 0;
}

.arbah-pro-loader span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d32f2f;
	animation: arbah-pro-bounce 0.7s infinite alternate;
}

.arbah-pro-loader span:nth-child(2) { animation-delay: 0.15s; }
.arbah-pro-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes arbah-pro-bounce {
	to { transform: translateY(-9px); opacity: .4; }
}

.arbah-pro-al-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 35px 0 25px;
	font-weight: 700;
	color: #d32f2f;
	font-size: 15px;
}

.arbah-pro-al-divider::before,
.arbah-pro-al-divider::after {
	content: "";
	flex: 1;
	height: 2px;
	background: #e7e9ee;
}

.arbah-pro-al-end {
	text-align: center;
	color: #888;
	padding: 20px 0;
	font-size: 14px;
}

/* ---------- Automatic menus + dark footer ---------- */

/* Category items produced by wp_list_categories inside header menus. */
.arbah-pro-auto-menu .cat-item {
	list-style: none;
}

/* Dark footer (like modern news sites): applies when enabled in settings. */
.arbah-pro-dark-footer .site-footer,
.arbah-pro-dark-footer .site-footer .footer-wrap {
	background: #101114;
	color: #cfd2d8;
}

.arbah-pro-dark-footer .site-footer a {
	color: #e8eaee;
	text-decoration: none;
}

.arbah-pro-dark-footer .site-footer a:hover {
	color: #ff5252;
}

.arbah-pro-dark-footer .footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 0 0 12px;
	padding: 14px 0;
	list-style: none;
	border-block: 1px solid rgba(255, 255, 255, .08);
}

.arbah-pro-dark-footer .footer-navigation li {
	margin: 0;
	list-style: none;
}

.arbah-pro-dark-footer .footer-navigation a {
	font-size: 14px;
	line-height: 1.6;
}

.arbah-pro-dark-footer #copyright {
	text-align: center;
	font-size: 13px;
	color: #9aa0aa;
	padding: 10px 0 18px;
}

.arbah-pro-dark-footer #copyright a {
	color: #ff5252;
}
