/**
 * Model Viewer — 3D Brand Avatar Styles
 *
 * Styles for the Google model-viewer web component used to display
 * the SkyyRose brand avatar in 3D (GLB) with a 2D fallback poster.
 *
 * @package SkyyRose_Flagship
 * @since   3.2.0
 */

/* Container — centers the avatar with breathing room */
.brand-avatar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--sr-radius-lg, 12px);
	background: linear-gradient(
		135deg,
		rgba(183, 110, 121, 0.05) 0%,
		rgba(10, 10, 10, 0.02) 100%
	);
}

/* The <model-viewer> element itself */
.brand-avatar model-viewer {
	width: 100%;
	height: 100%;
	--poster-color: transparent;
}

/* 2D fallback when no GLB is available */
.brand-avatar__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: inherit;
}

/* Loading indicator */
.brand-avatar model-viewer .progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--sr-color-rose-gold, #b76e79);
	transform-origin: left;
	transition: transform 0.3s ease;
}

/* "Interact" hint overlay for 3D mode */
.brand-avatar__hint {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 16px;
	font-family: var(--sr-font-body, 'Inter', sans-serif);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sr-color-light, #f5f5f5);
	background: rgba(10, 10, 10, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: var(--sr-radius-sm, 6px);
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.4s ease;
}

.brand-avatar--interacted .brand-avatar__hint {
	opacity: 0;
}

/* Responsive */
@media (min-width: 768px) {
	.brand-avatar {
		max-width: 560px;
	}
}

@media (min-width: 1200px) {
	.brand-avatar {
		max-width: 640px;
	}
}
