/**
 * KreoRD WordPress Design & Plugin Lab
 * Recipe taxonomy archive layout.
 *
 * Prefix: krd-
 * Version: 1.0.0
 */

.krd-tax-archive {
	background:
		radial-gradient(circle at 12% 4%, rgba(246, 206, 142, 0.32), transparent 34%),
		linear-gradient(180deg, #fff9ef 0%, #fff 44%, #fff 100%);
	color: #1f2328;
	overflow: hidden;
}

.krd-tax-container {
	width: min(100% - 32px, 1180px);
	margin-inline: auto;
}

/* Breadcrumbs */
.krd-tax-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	color: rgba(31, 35, 40, 0.52);
	font-size: 13px;
	font-weight: 700;
}

.krd-tax-breadcrumbs a {
	color: rgba(31, 35, 40, 0.62);
	text-decoration: none;
}

.krd-tax-breadcrumbs a:hover {
	color: #a56920;
}

/* Hero */
.krd-tax-hero {
	position: relative;
	padding: 58px 0 32px;
}

.krd-tax-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 168px;
	align-items: end;
	gap: 30px;
	padding: 40px;
	border: 1px solid rgba(31, 35, 40, 0.08);
	border-radius: 34px;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.58)),
		#fff6e7;
	box-shadow: 0 24px 70px rgba(74, 52, 22, 0.10);
	backdrop-filter: blur(12px);
}

.krd-tax-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
	color: #a56920;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.krd-tax-hero__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 99px;
	background: currentColor;
}

.krd-tax-hero__title {
	margin: 0;
	max-width: 850px;
	color: #1f2328;
	font-size: clamp(42px, 6vw, 74px);
	font-weight: 900;
	line-height: 0.96;
	letter-spacing: -0.06em;
}

.krd-tax-hero__desc {
	max-width: 680px;
	margin: 18px 0 0;
	color: rgba(31, 35, 40, 0.68);
	font-size: 17px;
	line-height: 1.72;
}

.krd-tax-hero__desc p {
	margin: 0;
}

.krd-tax-hero__stat {
	justify-self: end;
	display: grid;
	place-items: center;
	width: 148px;
	height: 148px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 35% 25%, rgba(255,255,255,0.95), rgba(255,255,255,0.38)),
		#f3dfbf;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.72),
		0 18px 38px rgba(113, 76, 24, 0.16);
	text-align: center;
}

.krd-tax-hero__stat-number {
	display: block;
	color: #1f2328;
	font-size: 44px;
	font-weight: 950;
	line-height: 1;
	letter-spacing: -0.07em;
}

.krd-tax-hero__stat-label {
	display: block;
	margin-top: 7px;
	color: rgba(31, 35, 40, 0.58);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

/* Children */
.krd-tax-children {
	margin-top: 22px;
	padding: 20px;
	border: 1px solid rgba(31, 35, 40, 0.07);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.74);
	box-shadow: 0 16px 38px rgba(74, 52, 22, 0.07);
}

.krd-tax-children__head {
	margin-bottom: 13px;
	color: rgba(31, 35, 40, 0.58);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.krd-tax-children__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.krd-tax-children__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(31, 35, 40, 0.08);
	border-radius: 999px;
	background: #fff;
	color: #26231f;
	font-size: 14px;
	font-weight: 850;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(31, 35, 40, 0.05);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, color .22s ease;
}

.krd-tax-children__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #f8eddb;
	color: #a56920;
	font-size: 12px;
	font-weight: 950;
}

.krd-tax-children__item:hover {
	transform: translateY(-2px);
	border-color: rgba(165, 105, 32, 0.24);
	box-shadow: 0 14px 28px rgba(74, 52, 22, 0.10);
	color: #a56920;
}

/* Content */
.krd-tax-content {
	padding: 32px 0 84px;
}

.krd-tax-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.krd-tax-toolbar__title {
	margin: 0;
	color: #1f2328;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.05em;
}

.krd-tax-toolbar__text {
	margin: 10px 0 0;
	color: rgba(31, 35, 40, 0.58);
	font-size: 15px;
	line-height: 1.55;
}

/* Sort */
.krd-tax-sort {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px;
	border: 1px solid rgba(31, 35, 40, 0.08);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(31, 35, 40, 0.06);
	white-space: nowrap;
}

.krd-tax-sort__label {
	padding-left: 8px;
	color: rgba(31, 35, 40, 0.52);
	font-size: 13px;
	font-weight: 850;
}

.krd-tax-sort__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	color: rgba(31, 35, 40, 0.66);
	font-size: 13px;
	font-weight: 850;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}

.krd-tax-sort__link:hover,
.krd-tax-sort__link.is-active {
	background: #1f2328;
	color: #fff;
}

/* Grid */
.krd-tax-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

/* Pagination */
.krd-tax-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

.krd-tax-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(31, 35, 40, 0.08);
	border-radius: 999px;
	background: #fff;
	color: #1f2328;
	font-size: 14px;
	font-weight: 850;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(31, 35, 40, 0.05);
}

.krd-tax-pagination .page-numbers.current,
.krd-tax-pagination .page-numbers:hover {
	background: #1f2328;
	border-color: #1f2328;
	color: #fff;
}

/* Empty */
.krd-tax-empty {
	max-width: 560px;
	margin: 40px auto 0;
	padding: 54px 32px;
	border: 1px solid rgba(31, 35, 40, 0.08);
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(31, 35, 40, 0.07);
	text-align: center;
}

.krd-tax-empty__icon {
	margin-bottom: 16px;
	font-size: 42px;
	line-height: 1;
}

.krd-tax-empty h2 {
	margin: 0;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.04em;
}

.krd-tax-empty p {
	margin: 12px 0 24px;
	color: rgba(31, 35, 40, 0.62);
	font-size: 16px;
}

.krd-tax-empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: #1f2328;
	color: #fff;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
	.krd-tax-hero__inner {
		grid-template-columns: 1fr;
	}

	.krd-tax-hero__stat {
		justify-self: start;
		width: 132px;
		height: 132px;
	}

	.krd-tax-hero__stat-number {
		font-size: 38px;
	}

	.krd-tax-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.krd-tax-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 700px) {
	.krd-tax-container {
		width: min(100% - 22px, 1180px);
	}

	.krd-tax-hero {
		padding: 34px 0 24px;
	}

	.krd-tax-hero__inner {
		padding: 28px 22px;
		border-radius: 26px;
	}

	.krd-tax-hero__title {
		font-size: clamp(38px, 12vw, 56px);
	}

	.krd-tax-hero__desc {
		font-size: 15px;
		line-height: 1.65;
	}

	.krd-tax-children {
		border-radius: 20px;
	}

	.krd-tax-children__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.krd-tax-children__item {
		flex: 0 0 auto;
	}

	.krd-tax-content {
		padding-bottom: 58px;
	}

	.krd-tax-sort {
		width: 100%;
		overflow-x: auto;
		justify-content: flex-start;
	}

	.krd-tax-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}