/**
 * AT Elementor Elements — Creative Core Base Styles
 *
 * Scoped tokens, GPU optimizations, and accessibility foundations
 * for all creative interactive components.
 *
 * @package AT_Elementor_Elements
 * @version 3.0.0
 */

.at-creative-element {
	--at-pointer-x: 0.5;
	--at-pointer-y: 0.5;
	--at-pointer-px-x: 0px;
	--at-pointer-px-y: 0px;
	--at-tilt-x: 0deg;
	--at-tilt-y: 0deg;
	--at-spotlight-x: 50%;
	--at-spotlight-y: 50%;
	--at-spotlight-color: rgba(99, 102, 241, 0.15);
	--at-spotlight-size: 350px;
	--at-motion-duration: 0.6s;
	--at-motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--at-motion-delay: 0s;
}

/* Scoped GPU Acceleration Utility */
.at-creative-gpu,
[data-at-magnetic],
[data-at-tilt],
[data-at-reveal] {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-perspective: 1000px;
	perspective: 1000px;
}

/* Creative Component Base Container */
.at-creative-element {
	position: relative;
	box-sizing: border-box;
}

.at-creative-element *,
.at-creative-element *::before,
.at-creative-element *::after {
	box-sizing: inherit;
}

/* Touch Fallbacks: Neutralize mouse-hover effects on coarse pointers */
@media (hover: none) and (pointer: coarse) {
	.at-creative-hover-only {
		transform: none !important;
		filter: none !important;
	}
}

/* Accessibility: Reduced Motion Override — Never hide content */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	[data-at-motion],
	[data-at-reveal],
	[data-at-tilt],
	[data-at-magnetic],
	.at-creative-motion,
	.at-creative-reveal {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		clip-path: none !important;
		-webkit-clip-path: none !important;
		transition: none !important;
		animation: none !important;
	}

	.at-creative-spotlight::after,
	.at-creative-spotlight::before {
		display: none !important;
	}
}

/* ==========================================================================
   Creative Visual Placeholder System (Agency-Grade Default Artwork)
   ========================================================================== */
.at-creative-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #181920 0%, #0f1015 50%, #1e1b2e 100%);
	color: rgba(255, 255, 255, 0.85);
	overflow: hidden;
	user-select: none;
	border-radius: inherit;
	box-sizing: border-box;
}

.at-creative-placeholder__mesh {
	position: absolute;
	inset: 0;
	background-image: 
		radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
		radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.18) 0%, transparent 55%),
		radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
	opacity: 0.9;
	mix-blend-mode: screen;
}

.at-creative-placeholder__mesh::after {
	content: "";
	position: absolute;
	inset: 0;
	background-size: 24px 24px;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
	                  linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
	-webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.at-creative-placeholder__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.at-creative-placeholder__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.at-creative-placeholder__icon {
	color: #818cf8;
	flex-shrink: 0;
}

.at-creative-placeholder__label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

/* Light background variant if parent card is light */
.at-creative-placeholder--light {
	background: linear-gradient(135deg, #f1f3f9 0%, #e2e8f0 50%, #ede9fe 100%);
	color: #1e293b;
}
.at-creative-placeholder--light .at-creative-placeholder__mesh {
	background-image: 
		radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
	mix-blend-mode: multiply;
}
.at-creative-placeholder--light .at-creative-placeholder__badge {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: #1e293b;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

