/*
 * Small supplementary styles for interactive pieces the compiled Tailwind build
 * doesn't cover (the app-preview carousel). Everything else is handled by
 * app.css. Colors are the site palette:
 *   background #0a0b14  surface #12131f  surface-light #1a1b2e
 *   border #2a2b3d  foreground #f0f0f5  primary #7C3AED
 */

.mws-carousel {
	position: relative;
}

.mws-carousel-track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 1.5rem 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.mws-carousel-track::-webkit-scrollbar {
	display: none;
}

.mws-carousel-item {
	flex: 0 0 55%;
	scroll-snap-align: center;
	display: flex;
	justify-content: center;
	transition: transform 0.5s ease-out, opacity 0.5s ease-out;
	transform: scale(0.85);
	opacity: 0.4;
}

@media (min-width: 640px) {
	.mws-carousel-item {
		flex-basis: 40%;
	}
}

@media (min-width: 1024px) {
	.mws-carousel-item {
		flex-basis: 33.333%;
	}
}

.mws-carousel-item.is-active {
	transform: scale(1);
	opacity: 1;
}

.mws-carousel-btn {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 1px solid #2a2b3d;
	background: rgba(18, 19, 31, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #f0f0f5;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.mws-carousel-btn:hover {
	background: #1a1b2e;
	border-color: rgba(124, 58, 237, 0.4);
}

.mws-carousel-prev {
	left: 0;
}

.mws-carousel-next {
	right: 0;
}

@media (min-width: 640px) {
	.mws-carousel-prev {
		left: 1rem;
	}
	.mws-carousel-next {
		right: 1rem;
	}
}
