/* ============================================================
   Raditone Archive Hero (shared header for archive/taxonomy pages)
   سبک سبک، روشن و چشم‌نواز — سازگار با RTL/LTR و حالت تاریک
   ============================================================ */

.rt-ah {
	position: relative;
	padding: 28px 0 10px;
}

.rt-ah .rt-ah-breadcrumb {
	margin-bottom: 14px;
}

.rt-ah-inner {
	position: relative;
	overflow: hidden;
	border-radius: 26px;
	padding: 28px 30px;
	background:
		radial-gradient(130% 170% at 100% 0%, rgba(var(--primary-rgb), 0.16) 0%, transparent 46%),
		radial-gradient(130% 170% at 0% 100%, rgba(var(--accent-rgb), 0.14) 0%, transparent 48%),
		var(--bg-secondary);
	border: 1px solid var(--border-primary);
	box-shadow: 0 18px 45px -28px rgba(0, 0, 0, 0.35);
	isolation: isolate;
}

.rt-ah-inner::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	opacity: 0.95;
	z-index: 2;
}

.rt-ah-inner::after {
	content: "";
	position: absolute;
	inset-block-start: -60px;
	inset-inline-end: -60px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.rt-ah-row {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.rt-ah-icon {
	flex: 0 0 auto;
	width: 66px;
	height: 66px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	box-shadow: 0 14px 30px -12px rgba(var(--primary-rgb), 0.85);
}

.rt-ah-icon svg {
	width: 32px;
	height: 32px;
	display: block;
}

.rt-ah-text {
	flex: 1 1 320px;
	min-width: 0;
}

.rt-ah-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 13px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--primary);
	background: var(--primary-light);
	margin-bottom: 10px;
}

.rt-ah-badge svg {
	width: 14px;
	height: 14px;
}

.rt-ah-title {
	margin: 0 0 6px;
	font-size: clamp(1.45rem, 3.1vw, 2.3rem);
	font-weight: 800;
	line-height: 1.28;
	color: var(--text-primary);
	letter-spacing: -0.01em;
}

.rt-ah-sub {
	margin: 0;
	max-width: 640px;
	font-size: 0.95rem;
	line-height: 1.75;
	color: var(--text-secondary);
}

.rt-ah-side {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.rt-ah-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 14px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	color: var(--text-secondary);
	font-size: 0.82rem;
	font-weight: 600;
}

.rt-ah-count svg {
	width: 18px;
	height: 18px;
	color: var(--primary);
}

.rt-ah-count strong {
	color: var(--primary);
	font-size: 1.05rem;
	font-weight: 800;
}

.rt-ah-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	cursor: pointer;
	border-radius: 14px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	box-shadow: 0 14px 30px -14px rgba(var(--primary-rgb), 0.95);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rt-ah-play:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 34px -14px rgba(var(--primary-rgb), 1);
}

.rt-ah-play:active {
	transform: translateY(0);
}

.rt-ah-play svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

@media (max-width: 860px) {
	.rt-ah-row {
		gap: 16px;
	}

	.rt-ah-text {
		flex-basis: 100%;
	}

	.rt-ah-side {
		flex-basis: 100%;
		flex-direction: row;
		flex-wrap: wrap;
	}
}

@media (max-width: 560px) {
	.rt-ah {
		padding-top: 18px;
	}

	.rt-ah-inner {
		padding: 22px 18px;
		border-radius: 22px;
	}

	.rt-ah-row {
		justify-content: center;
		text-align: center;
	}

	.rt-ah-badge {
		margin-inline: auto;
	}

	.rt-ah-sub {
		margin-inline: auto;
	}

	.rt-ah-side {
		flex-direction: column;
	}

	.rt-ah-count,
	.rt-ah-play {
		width: 100%;
	}
}
