/**
 * Motion test page ("Kustības pārbaude") only: plain stand-in shapes so each
 * animation can be checked against the Figma prototype. Removed before launch.
 */

.lab-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	padding: 12px 0;
	background: var(--wp--preset--color--ivory);
	font-size: var(--wp--preset--font-size--small);
}

.lab-demo {
	margin-block: 48px;
	padding-block-start: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.lab-spec {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--small);
}

.lab-stage {
	position: relative;
	overflow: hidden;
	min-height: 320px;
	background: var(--wp--preset--color--sand);
}

.lab-replay {
	margin-block-start: 12px;
	padding: 10px 18px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

/* 1 · Hero */
.lab-hero {
	display: grid;
	place-items: center;
	gap: 24px;
	padding: 32px;
}

.lab-bottle {
	width: 80px;
	height: 260px;
	border-radius: 28px 28px 12px 12px;
	background: linear-gradient(#fff 0 18%, var(--wp--preset--color--red) 18% 46%, #fff 46%);
	box-shadow: 0 20px 40px rgb(30 23 22 / 0.18);
}

.lab-actions {
	display: flex;
	gap: 12px;
}

/* 2 · Carousel */
.lab-carousel .lab-stage {
	min-height: 360px;
	color: #fff;
}

.lab-slide {
	position: absolute;
	inset: 0;
	padding: 48px;
	opacity: 0;
}

.lab-slide.is-active {
	opacity: 1;
}

.lab-slide:nth-child(1) {
	background: var(--wp--preset--color--red-dark);
}

.lab-slide:nth-child(2) {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.lab-slide:nth-child(3) {
	background: var(--wp--preset--color--stone);
	color: var(--wp--preset--color--ink);
}

.lab-controls {
	position: absolute;
	bottom: 32px;
	left: 48px;
	z-index: 2;
	display: flex;
	gap: 8px;
	align-items: center;
}

.lab-progress {
	position: relative;
	width: 72px;
	height: 2px;
	overflow: hidden;
	border-radius: 1px;
	background: rgb(128 128 128 / 0.35);
}

.lab-progress span {
	position: absolute;
	inset: 0;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
}

.lab-arrow {
	width: 52px;
	height: 52px;
	margin-inline-start: 4px;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

/* 3 · Card */
.lab-card {
	position: relative;
	width: 328px;
	height: 464px;
	overflow: hidden;
	background: linear-gradient(160deg, #f8e7d8, #d5b043);
	cursor: pointer;
}

.lab-card-title {
	position: absolute;
	top: 24px;
	left: 24px;
	z-index: 1;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: var(--wp--preset--font-size--heading-4);
	text-transform: uppercase;
}

.lab-card-panel {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 24px;
	background: var(--wp--custom--flavour--pear--panel);
	translate: 0 100%;
	transition: translate var(--wp--custom--motion--duration--card) var(--wp--custom--motion--ease--in-out);
}

.lab-card:hover .lab-card-panel,
.lab-card:focus-within .lab-card-panel,
.lab-card.is-open .lab-card-panel {
	translate: 0 0;
}

/* Recipe pill: the 152 px label grows out to the left of the round icon (0.8 s ease-in-out). */
.lab-recipe {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 52px;
	border: 0;
	background: transparent;
	font: inherit;
	cursor: pointer;
}

/* The clip box stays put; the label slides out from behind the icon (transform only). */
.lab-recipe-clip {
	margin-inline-end: -26px;
	overflow: hidden;
	border-radius: 999px 0 0 999px;
}

.lab-recipe-label {
	display: block;
	padding-inline: 18px 30px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--red);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 52px;
	text-transform: uppercase;
	translate: 100% 0;
	transition: translate 800ms var(--wp--custom--motion--ease--in-out);
}

.lab-recipe:hover .lab-recipe-label,
.lab-recipe:focus-visible .lab-recipe-label {
	translate: 0 0;
}

.lab-recipe-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgb(255 255 255 / 0.6);
	border-radius: 50%;
	background: rgb(30 23 22 / 0.25);
	color: #fff;
}

/* 5 · Marquee */
.lab-marquee .lab-stage {
	display: flex;
	align-items: center;
	min-height: 120px;
}

.lab-track {
	display: flex;
	gap: 48px;
	padding-inline-start: 48px;
	white-space: nowrap;
}

/* 6 · Flavour fan */
.lab-fan {
	position: relative;
	width: 379px;
	height: 248px;
	margin: 32px auto;
}

.lab-fan button {
	position: absolute;
	top: 0;
	left: 0;
	width: 62.808px;
	height: 240.645px;
	padding: 0;
	border: 0;
	border-radius: 20px 20px 8px 8px;
	transform-origin: 0 0;
	cursor: pointer;
}

.lab-fps {
	font-variant-numeric: tabular-nums;
}
