/* ==========================================================================
   Recipe single
   ========================================================================== */

.bt-recipe__hero {
	--hero-bg: var(--color-lavender);
	position: relative;
	background: var(--hero-bg);
	padding-top: calc(var(--header-space) + clamp(32px, 5vw, 72px));
	padding-bottom: clamp(48px, 6vw, 96px);
	overflow: hidden;
}

.bt-recipe__hero.is-yellow { --hero-bg: var(--color-accent); }
.bt-recipe__hero.is-sky { --hero-bg: var(--color-sky); }
.bt-recipe__hero.is-orange { --hero-bg: var(--color-primary); }
.bt-recipe__hero.is-cream { --hero-bg: var(--color-surface-2); }
.bt-recipe__hero.is-plum { --hero-bg: var(--color-secondary); color: var(--color-light); }

.bt-recipe__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.bt-recipe__title {
	font-size: clamp(44px, 6.4vw, 104px);
	margin-bottom: var(--space-6);
}

.bt-recipe__stats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 var(--space-5);
	padding: 0;
}

.bt-recipe__stats li {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border: 1.5px solid currentColor;
	border-radius: var(--radius);
	font-size: 14px;
}

.bt-recipe__stats strong {
	font-family: var(--font-display);
	font-weight: 900;
	font-stretch: 110%;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.bt-recipe__hero .bt-diets {
	justify-content: flex-start;
	margin-bottom: var(--space-6);
}

.bt-recipe__actions {
	display: flex;
	gap: 10px;
}

.bt-recipe__visual {
	position: relative;
	display: grid;
	place-items: center;
	padding: 6%;
}

.js .bt-recipe__visual[data-reveal="image"] {
	clip-path: none;
}

.bt-recipe__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: clamp(24px, 4vw, 48px) solid rgba(255, 255, 255, 0.35);
	aspect-ratio: 1;
	margin: auto;
	width: 92%;
	height: auto;
}

.bt-recipe__img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-lg);
	transform: rotate(-5deg);
	box-shadow: var(--shadow-lg);
}

.bt-recipe__visual .bt-spark {
	color: var(--color-light);
	z-index: 2;
}

.bt-recipe__layout {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
	padding-block: clamp(48px, 6vw, 96px);
}

.bt-recipe__aside {
	position: sticky;
	top: calc(var(--header-space) + 16px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bt-ingredients {
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--color-dark);
	color: var(--color-light);
}

.bt-ingredients__title {
	font-size: 26px;
	margin-bottom: 16px;
}

.bt-ingredients__group {
	margin: 18px 0 8px;
	font-size: 15px;
	color: var(--color-accent);
}

.bt-ingredients__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bt-ingredients__list li {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(252, 250, 248, 0.1);
}

.bt-ingredients__list label {
	order: -1;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	cursor: pointer;
	transition: opacity var(--dur-fast) var(--ease);
}

.bt-ingredients__list input {
	background: transparent;
	border-color: rgba(252, 250, 248, 0.45);
}

.bt-ingredients__list input:checked {
	background: var(--color-primary);
	border-color: var(--color-primary);
}

.bt-ingredients__list input:checked + label,
.bt-ingredients__list li:has(input:checked) label {
	opacity: 0.45;
	text-decoration: line-through;
}

.bt-featured-product {
	--chip-bg: var(--color-dark);
	--chip-fg: var(--color-light);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	text-decoration: none;
	transition: transform var(--dur) var(--ease);
}

.bt-featured-product:hover {
	transform: translateY(-3px);
	color: inherit;
}

.bt-featured-product__media {
	position: relative;
	display: grid;
	place-items: center;
	flex: 0 0 72px;
	height: 72px;
}

.bt-featured-product__shape {
	position: absolute;
	inset: 0;
	color: var(--color-sky);
}

.bt-featured-product__media img {
	position: relative;
	width: 86%;
}

.bt-featured-product__text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bt-featured-product__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text-muted);
}

.bt-featured-product__name {
	font-family: var(--font-display);
	font-weight: 900;
	font-stretch: 110%;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	font-size: 18px;
	line-height: 1;
}

.bt-recipe__content {
	margin-bottom: var(--space-7);
	font-size: var(--fs-lead);
}

.bt-method__section + .bt-method__section {
	margin-top: var(--space-8);
}

.bt-method__title {
	font-size: clamp(26px, 2.6vw, 36px);
	margin-bottom: var(--space-6);
}

.bt-method__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4vw, 56px);
}

.bt-step {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-6);
}

.bt-step.has-media {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
}

.bt-step__badge {
	display: inline-block;
	margin: 0 0 14px;
	padding: 8px 14px;
	border-radius: 10px;
	background: var(--color-primary);
	color: var(--color-light);
	font-family: var(--font-display);
	font-weight: 900;
	font-stretch: 112%;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1;
}

.bt-step__text {
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.45;
	max-width: 52ch;
}

.bt-step__done label {
	font-size: 14px;
}

.bt-step.is-done .bt-step__text {
	opacity: 0.5;
}

.bt-step.is-done .bt-step__badge {
	background: var(--color-success);
}

.bt-step__media img {
	width: 100%;
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bt-progress {
	position: sticky;
	bottom: 16px;
	z-index: 5;
	display: flex;
	gap: 6px;
	margin-top: var(--space-7);
	padding: 8px;
	border-radius: 12px;
	background: rgba(252, 250, 248, 0.92);
	backdrop-filter: blur(6px);
	box-shadow: var(--shadow-sm);
}

.bt-progress__seg {
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: var(--color-dark);
	opacity: 0.15;
	transition: background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.bt-progress__seg.is-done {
	background: var(--color-primary);
	opacity: 1;
}

.bt-recipe__share {
	margin-top: var(--space-8);
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-border);
}

.bt-recipe__comments {
	padding-bottom: var(--space-8);
}

@media (max-width: 1023px) {
	.bt-recipe__hero-grid,
	.bt-recipe__layout {
		grid-template-columns: 1fr;
	}

	.bt-recipe__visual {
		max-width: 520px;
		margin-inline: auto;
	}

	.bt-recipe__aside {
		position: static;
	}
}

@media (max-width: 767px) {
	.bt-step.has-media {
		grid-template-columns: 1fr;
	}

	.bt-recipe__stats li {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
}
