/* ---------- Skeleton loading (used while images/AJAX results load) ---------- */
.nova-skeleton {
	position: relative; overflow: hidden; background: var(--nova-surface);
}
.nova-skeleton::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
	transform: translateX(-100%);
	animation: nova-shimmer calc(1400ms * var(--nova-motion-scale)) infinite;
}
@keyframes nova-shimmer { 100% { transform: translateX(100%); } }

/* ---------- Scroll reveal ----------
 * Elements get [data-reveal] in markup; assets/js/core.js toggles
 * .is-visible via IntersectionObserver. */
[data-reveal] {
	opacity: 0; transform: translateY(24px);
	transition: opacity var(--nova-dur-slow) var(--nova-ease), transform var(--nova-dur-slow) var(--nova-ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Page transition veil ---------- */
.nova-page-veil {
	position: fixed; inset: 0; z-index: 300; background: var(--nova-bg);
	transform: translateY(0); transition: transform var(--nova-dur-slow) var(--nova-ease);
	pointer-events: none;
}
.nova-page-veil.is-hidden { transform: translateY(-100%); }

/* ---------- Button ripple (micro-interaction) ---------- */
.nova-btn, .nova-icon-btn { position: relative; overflow: hidden; }
.nova-ripple {
	position: absolute; border-radius: 50%; background: rgba(255,255,255,0.35);
	transform: scale(0); animation: nova-ripple calc(500ms * var(--nova-motion-scale)) var(--nova-ease);
	pointer-events: none;
}
@keyframes nova-ripple { to { transform: scale(3); opacity: 0; } }

/* ---------- Favorite "pop" ---------- */
.nova-card-fav.is-popping { animation: nova-pop calc(360ms * var(--nova-motion-scale)) var(--nova-ease); }
@keyframes nova-pop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* ---------- Loading spinner (player) ---------- */
.nova-spinner {
	width: 44px; height: 44px; border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--nova-accent);
	animation: nova-spin 900ms linear infinite;
}
@keyframes nova-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.nova-skeleton::after,
	.nova-hero-bg,
	.nova-spinner { animation: none !important; }
	[data-reveal] { opacity: 1; transform: none; transition: none; }
}
