/**
 * Soulful Healing Category Cards widget — base styles.
 * Designed for a light-background section (unlike the dark-cosmic
 * theme default), so most colors here are set as literal defaults in
 * the widget's own style controls rather than the dark-theme
 * --sh-* variables, keeping it correct wherever it's dropped.
 */

.sh-catcards__header {
	max-width: 640px;
	margin-inline: auto;
	margin-bottom: var(--sh-space-7);
	text-align: center;
}

.sh-catcards__eyebrow {
	font-family: var(--sh-font-nav);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #B08A3E;
	margin-bottom: var(--sh-space-3);
}

.sh-catcards__title {
	font-family: var(--sh-font-heading);
	font-weight: 600;
	font-size: clamp(1.5rem, 1.25rem + 1.4vw, 2.25rem);
	color: #241E3D;
	margin-bottom: var(--sh-space-3);
}

.sh-catcards__subtitle {
	font-family: var(--sh-font-body);
	color: #6B6478;
	font-size: 0.9375rem;
	margin: 0;
}

.sh-catcards__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sh-space-5);
}

.sh-catcards__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sh-space-4);
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--sh-radius-md);
	padding: var(--sh-space-6) var(--sh-space-5);
	text-decoration: none;
	box-shadow: 0 8px 32px rgba(43, 10, 74, 0.08);
}

.sh-catcards__icon {
	--sh-catcards-icon-bg-opacity: 0.12;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	font-size: 22px;
	/* Fallback for browsers without color-mix() support: a fixed
	   light tint. Modern browsers get the accurate per-card tint. */
	background-color: rgba(43, 10, 74, 0.08);
	background-color: color-mix(in srgb, var(--sh-catcards-icon-color, currentColor) calc(var(--sh-catcards-icon-bg-opacity) * 100%), transparent);
}

.sh-catcards__icon svg {
	width: 22px;
	height: 22px;
}

.sh-catcards__card-title {
	display: inline-flex;
	align-items: center;
	gap: var(--sh-space-2);
	font-family: var(--sh-font-body);
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #241E3D;
}

@media (max-width: 1024px) {
	.sh-catcards__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.sh-catcards__grid {
		grid-template-columns: 1fr;
	}
}
