.motospirit-3d-canvas-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	background-color: transparent;
	/* Add subtle gradient to give depth by default, overridable by inline bg color */
	background-image: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 100%);
}

.motospirit-3d-canvas-wrapper canvas {
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
	cursor: grab;
}

.motospirit-3d-canvas-wrapper canvas:active {
	cursor: grabbing;
}

.motospirit-3d-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	pointer-events: none;
	transition: opacity 0.5s ease;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	padding: 2rem 2.5rem;
	color: #fff;
	font-family: 'Inter', sans-serif;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	z-index: 10;
}

.motospirit-3d-loading .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: #ef4444;
	border-radius: 50%;
	animation: motospirit-spin 1s linear infinite;
}

@keyframes motospirit-spin {
	to { transform: rotate(360deg); }
}

/* Navigation Controls */
.nav-controls {
	position: absolute;
	bottom: 2rem;
	left: 2rem;
	display: flex;
	gap: 0.5rem;
	pointer-events: auto;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	padding: 0.5rem;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	z-index: 10;
}

.nav-btn {
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	padding: 0.5rem;
	border-radius: 12px;
	font-family: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.nav-btn:hover {
	background: rgba(239, 68, 68, 0.2);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Card (Hover Card) */
.hover-card {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	background: rgba(15, 23, 42, 0.38);
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-left: none;
	border-radius: 0 16px 16px 0;
	padding: 1.5rem;
	width: 250px;
	height: auto;
	min-height: 25vh;
	box-shadow: 25px 0 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
	pointer-events: auto;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 20;
	color: #fff;
	font-family: 'Inter', sans-serif;
}

.hover-card.hidden {
	opacity: 0;
	transform: translateY(-50%) translateX(-100%);
	pointer-events: none;
}

.hover-card h2 {
	font-size: 0.95rem;
	margin-bottom: 0.2rem;
	color: #f1f5f9;
}

.hover-card p {
	font-size: 0.75rem;
	color: #cbd5e1;
	line-height: 1.3;
	margin-bottom: 0px;
}

.hover-card .part-id {
	font-family: monospace;
	font-size: 0.75rem;
	color: #ef4444;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.hover-card .part-name {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: #f1f5f9;
}

.hover-card .action-info {
	margin-top: 1rem;
	font-size: 0.75rem;
	font-style: italic;
	color: #94a3b8;
}

@media (max-width: 800px) {
	.nav-controls {
		bottom: 1rem;
		left: 50%;
		transform: translateX(-50%);
		flex-wrap: wrap;
		width: calc(100% - 2rem);
		justify-content: center;
	}

	.hover-card {
		width: 220px;
		padding: 1rem;
	}
	.hover-card .part-name {
		font-size: 1.1rem;
		margin-bottom: 0.25rem;
	}
	.hover-card p {
		font-size: 0.85rem;
		line-height: 1.4;
		margin-bottom: 0.5rem;
	}
}
