/* Auto Related Read More Pro — public styles
 * All colors are driven by inline CSS custom properties set per-box
 * (--arrm-bg, --arrm-border, --arrm-btn, etc.) so admin color settings
 * apply without any dynamic stylesheet generation.
 */

.arrm-pro-box {
	--arrm-radius: 14px;
	box-sizing: border-box;
	margin: 28px 0;
	border-radius: var(--arrm-radius);
	border: 1px solid var(--arrm-border, #6d5efc);
	background: linear-gradient(135deg, var(--arrm-bg, #fff) 0%, var(--arrm-bg-end, #f4f6ff) 100%);
	box-shadow: 0 4px 18px rgba(20, 20, 43, 0.08);
	font-family: var(--arrm-font, inherit);
	overflow: hidden;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.arrm-pro-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(20, 20, 43, 0.14);
}

.arrm-pro-box * {
	box-sizing: border-box;
}

.arrm-pro-box a {
	text-decoration: none;
}

/* ---------- Label / eyebrow ---------- */
.arrm-pro-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--arrm-border, #6d5efc);
	margin-bottom: 6px;
}

.arrm-pro-icon {
	font-size: 14px;
	line-height: 1;
}

/* ---------- Title ---------- */
.arrm-pro-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--arrm-title-color, #111827);
	margin-bottom: 6px;
}

.arrm-pro-title:hover {
	text-decoration: underline;
}

/* ---------- Excerpt ---------- */
.arrm-pro-excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
	margin: 0 0 10px;
}

/* ---------- Meta row ---------- */
.arrm-pro-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 12px;
}

.arrm-pro-cat {
	background: rgba(109, 94, 252, 0.1);
	color: var(--arrm-border, #6d5efc);
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 600;
}

/* ---------- Button ---------- */
.arrm-pro-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--arrm-btn, #6d5efc);
	color: var(--arrm-btn-text, #fff) !important;
	font-size: 14px;
	font-weight: 700;
	padding: 9px 18px;
	border-radius: 999px;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.arrm-pro-btn:hover {
	filter: brightness(1.08);
	transform: translateX(2px);
}

/* =========================================================
   Design 1 — left thumbnail, right content
   ========================================================= */
.arrm-pro-design-1 .arrm-pro-box-inner {
	display: flex;
	align-items: stretch;
	gap: 16px;
	padding: 18px;
}

.arrm-pro-design-1 .arrm-pro-thumb {
	flex: 0 0 110px;
	width: 110px;
	height: 110px;
	border-radius: 10px;
	overflow: hidden;
	display: block;
}

.arrm-pro-design-1 .arrm-pro-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.arrm-pro-design-1 .arrm-pro-content {
	flex: 1 1 auto;
	min-width: 0;
}

/* =========================================================
   Design 2 — glassmorphism, centered, banner image
   ========================================================= */
.arrm-pro-design-2 {
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.65), rgba(244, 246, 255, 0.55));
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.arrm-pro-design-2 .arrm-pro-banner {
	display: block;
	width: 100%;
	height: 160px;
	overflow: hidden;
}

.arrm-pro-design-2 .arrm-pro-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.arrm-pro-glass-content {
	padding: 20px;
	text-align: center;
}

.arrm-pro-label-centered,
.arrm-pro-meta-centered {
	justify-content: center;
}

.arrm-pro-title-centered {
	text-align: center;
}

.arrm-pro-excerpt-centered {
	text-align: center;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.arrm-pro-btn-pill {
	padding: 10px 26px;
}

/* =========================================================
   Design 3 — compact horizontal strip
   ========================================================= */
.arrm-pro-design-3 {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	cursor: pointer;
}

.arrm-pro-strip-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
}

.arrm-pro-strip-content {
	flex: 1 1 auto;
	min-width: 0;
}

.arrm-pro-label-strip {
	margin-bottom: 2px;
	color: #6b7280;
	font-weight: 600;
}

.arrm-pro-strip-title {
	color: var(--arrm-title-color, #111827);
	font-size: 14px;
	font-weight: 700;
	margin-left: 4px;
}

.arrm-pro-excerpt-strip {
	margin: 0;
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.arrm-pro-btn-arrow {
	flex: 0 0 auto;
	padding: 7px 14px;
	font-size: 13px;
}

/* =========================================================
   Animations (respect reduced-motion preference)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
	.arrm-anim-fade-up {
		animation: arrmFadeUp 0.5s ease both;
	}
	.arrm-anim-fade-in {
		animation: arrmFadeIn 0.6s ease both;
	}
	.arrm-anim-zoom-in {
		animation: arrmZoomIn 0.45s ease both;
	}
	.arrm-anim-slide-left {
		animation: arrmSlideLeft 0.5s ease both;
	}
}

@keyframes arrmFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes arrmFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes arrmZoomIn {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes arrmSlideLeft {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 560px) {
	.arrm-pro-box {
		margin: 18px 0;
		border-radius: 10px;
	}

	/* Design 1: stay side-by-side (thumbnail left, content right) instead
	   of stacking full-width — stacking is what made the box tall. */
	.arrm-pro-design-1 .arrm-pro-box-inner {
		gap: 10px;
		padding: 10px;
	}
	.arrm-pro-design-1 .arrm-pro-thumb {
		flex: 0 0 72px;
		width: 72px;
		height: 72px;
	}

	.arrm-pro-label {
		font-size: 10px;
		margin-bottom: 3px;
	}
	.arrm-pro-title {
		font-size: 13.5px;
		line-height: 1.3;
		margin-bottom: 3px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.arrm-pro-excerpt {
		font-size: 12px;
		line-height: 1.4;
		margin-bottom: 6px;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.arrm-pro-meta {
		margin-bottom: 8px;
		font-size: 10.5px;
		gap: 8px;
	}
	.arrm-pro-btn {
		font-size: 12px;
		padding: 6px 14px;
	}

	/* Design 2: shrink the banner image and inner padding. */
	.arrm-pro-design-2 .arrm-pro-banner {
		height: 90px;
	}
	.arrm-pro-glass-content {
		padding: 12px;
	}

	/* Design 3: already compact — just avoid awkward wrapping. */
	.arrm-pro-design-3 {
		padding: 8px 10px;
		gap: 10px;
	}
	.arrm-pro-strip-thumb {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
	}
	.arrm-pro-excerpt-strip {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.arrm-pro-btn-arrow {
		padding: 5px 10px;
		font-size: 11px;
	}
}


/* =========================================================
   Dark mode (prefers-color-scheme + common dark-mode plugin classes)
   ========================================================= */
@media (prefers-color-scheme: dark) {
	.arrm-pro-box {
		box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
	}
	.arrm-pro-excerpt {
		color: #cbd5e1;
	}
	.arrm-pro-meta {
		color: #9ca3af;
	}
}

body.dark-mode .arrm-pro-box,
html.dark .arrm-pro-box {
	background: linear-gradient(135deg, #1f2230 0%, #171923 100%);
	border-color: var(--arrm-border, #6d5efc);
}

body.dark-mode .arrm-pro-excerpt,
html.dark .arrm-pro-excerpt {
	color: #cbd5e1;
}

body.dark-mode .arrm-pro-title,
html.dark .arrm-pro-title,
body.dark-mode .arrm-pro-strip-title,
html.dark .arrm-pro-strip-title {
	color: #f3f4f6;
}
