/* Divi Cursor Effects – Frontend Cursor Styles */

/* Base cursor elements */
.dce-cursor,
.dce-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 999999;
	transform: translate(-50%, -50%);
	will-change: transform;
	transition: opacity 0.3s ease;
}

.dce-canvas {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 999998;
	width: 100vw;
	height: 100vh;
}

/* Hide cursors by default until JS initializes */
.dce-cursor,
.dce-cursor-ring {
	opacity: 0;
}
.dce-cursor.dce-ready,
.dce-cursor-ring.dce-ready {
	opacity: 1;
}

/* ============================================
   EFFECT: DOT FOLLOWER
   ============================================ */
.dce-effect-dot-follower .dce-cursor {
	border-radius: 50%;
	transition: transform 0.15s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
}
.dce-effect-dot-follower .dce-cursor-ring {
	border-radius: 50%;
	border-style: solid;
	background: transparent;
	transition: width 0.4s ease, height 0.4s ease, border-color 0.25s ease;
}
.dce-effect-dot-follower.dce-hovering .dce-cursor {
	transform: translate(-50%, -50%) scale(0);
}

/* ============================================
   EFFECT: RING
   ============================================ */
.dce-effect-ring .dce-cursor {
	display: none;
}
.dce-effect-ring .dce-cursor-ring {
	border-radius: 50%;
	border-style: solid;
	background: transparent;
	transition: width 0.35s cubic-bezier(.23,1,.32,1),
	            height 0.35s cubic-bezier(.23,1,.32,1),
	            border-color 0.25s ease;
}

/* ============================================
   EFFECT: ELASTIC
   ============================================ */
.dce-effect-elastic .dce-cursor {
	border-radius: 50%;
}
.dce-effect-elastic .dce-cursor-ring {
	border-radius: 50%;
	border-style: solid;
	background: transparent;
}

/* ============================================
   EFFECT: BLOB
   ============================================ */
.dce-effect-blob .dce-cursor {
	border-radius: 50%;
	animation: dce-blob-morph 3s ease-in-out infinite;
	filter: blur(1px);
}
.dce-effect-blob .dce-cursor-ring { display: none; }
@keyframes dce-blob-morph {
	0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
	25%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
	50%       { border-radius: 50% 60% 30% 40% / 70% 30% 50% 60%; }
	75%       { border-radius: 40% 50% 60% 30% / 30% 70% 40% 60%; }
}

/* ============================================
   EFFECT: NEON GLOW
   ============================================ */
.dce-effect-neon .dce-cursor {
	border-radius: 50%;
	animation: dce-neon-pulse 1.8s ease-in-out infinite;
}
.dce-effect-neon .dce-cursor-ring {
	border-radius: 50%;
	border-style: solid;
	background: transparent;
	animation: dce-neon-ring 1.8s ease-in-out infinite;
}
@keyframes dce-neon-pulse {
	0%, 100% { filter: brightness(1); }
	50%       { filter: brightness(1.4); }
}
@keyframes dce-neon-ring {
	0%, 100% { opacity: 0.7; }
	50%       { opacity: 1; }
}

/* ============================================
   EFFECT: CROSSHAIR
   ============================================ */
.dce-cursor.dce-effect-crosshair {
	background: transparent !important;
	border-radius: 0;
	overflow: visible;
}
.dce-cursor.dce-effect-crosshair::before,
.dce-cursor.dce-effect-crosshair::after {
	content: '';
	position: absolute;
	background: currentColor;
	top: 50%;
	left: 50%;
}
.dce-cursor.dce-effect-crosshair::before {
	width: 2px;
	height: 100%;
	transform: translate(-50%, -50%);
}
.dce-cursor.dce-effect-crosshair::after {
	width: 100%;
	height: 2px;
	transform: translate(-50%, -50%);
}

/* ============================================
   EFFECT: TEXT LABEL
   ============================================ */
.dce-effect-text .dce-cursor {
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	letter-spacing: 0.5px;
	padding: 0 14px;
	min-width: 60px;
	height: 30px;
	width: auto !important;
	transform-origin: center;
}
.dce-effect-text .dce-cursor-ring { display: none; }

/* ============================================
   EFFECT: MAGNETIC
   ============================================ */
.dce-effect-magnetic .dce-cursor {
	border-radius: 50%;
	transition: transform 0.08s ease, background 0.2s;
}
.dce-effect-magnetic .dce-cursor-ring {
	border-radius: 50%;
	border-style: solid;
	background: transparent;
	transition: width 0.4s ease, height 0.4s ease;
}

/* ============================================
   EFFECT: BUBBLE
   ============================================ */
.dce-effect-bubble .dce-cursor {
	border-radius: 50%;
	background: transparent !important;
	border-style: solid;
}
.dce-effect-bubble .dce-cursor-ring {
	border-radius: 50%;
	background: transparent;
	border-style: solid;
	animation: dce-bubble-float 2s ease-in-out infinite;
}
@keyframes dce-bubble-float {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50%       { transform: translate(-50%, -54%) scale(1.04); }
}

/* ============================================
   EFFECT: COLOR INVERT
   ============================================ */
.dce-effect-color-invert .dce-cursor {
	border-radius: 50%;
	mix-blend-mode: difference !important;
	background: #fff !important;
}
.dce-effect-color-invert .dce-cursor-ring {
	border-radius: 50%;
	border-style: solid;
	background: transparent;
	mix-blend-mode: difference;
}

/* ============================================
   EFFECT: RIPPLE ONLY
   ============================================ */
.dce-effect-ripple-only .dce-cursor,
.dce-effect-ripple-only .dce-cursor-ring {
	display: none;
}

/* ============================================
   HOVER STATE (global)
   ============================================ */
.dce-hovering .dce-cursor {
	transition: transform 0.2s cubic-bezier(.23,1,.32,1) !important;
}
.dce-hovering .dce-cursor-ring {
	transition: width 0.4s cubic-bezier(.23,1,.32,1),
	            height 0.4s cubic-bezier(.23,1,.32,1) !important;
}

/* ============================================
   CLICK EFFECTS (canvas-driven, CSS helpers)
   ============================================ */
.dce-ripple {
	position: fixed;
	border-radius: 50%;
	pointer-events: none;
	z-index: 999997;
	transform: translate(-50%, -50%) scale(0);
	animation: dce-ripple-anim 0.6s cubic-bezier(.23,1,.32,1) forwards;
}
@keyframes dce-ripple-anim {
	to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ============================================
   SPOTLIGHT OVERLAY
   ============================================ */
.dce-spotlight-overlay {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 999990;
	background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.7) 100%);
	transition: background 0.05s linear;
}

/* ============================================
   TRAIL DOTS (canvas-driven)
   ============================================ */
/* Trail particles are rendered on canvas — no extra CSS needed */

/* ============================================
   CUSTOM IMAGE
   ============================================ */
.dce-effect-custom-image .dce-cursor {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0;
}
.dce-effect-custom-image .dce-cursor-ring { display: none; }

/* ============================================
   GALAXY
   ============================================ */
.dce-effect-galaxy .dce-cursor {
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, transparent 70%) !important;
}
.dce-effect-galaxy .dce-cursor-ring { display: none; }

/* ============================================
   ACCESSIBILITY – reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
	.dce-cursor,
	.dce-cursor-ring {
		transition: none !important;
		animation: none !important;
	}
	.dce-effect-blob .dce-cursor { border-radius: 50%; }
}
