/**
 * Glücksrad Plugin Styles
 * Version: 1.0.0
 */

/* ===========================
   Container & Layout
   =========================== */

.cvc-gluecksrad-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
	text-align: center;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.cvc-gluecksrad-wrapper {
	position: relative;
	display: block;
	width: 600px;
	height: 600px;
	margin: 0 auto;
	border-radius: 50%;
	box-shadow: 0 0 32px rgba(55, 55, 55, 0.1);
}

/* ===========================
   Wheel
   =========================== */

.cvc-gluecksrad-wheel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform-origin: center center;
	will-change: transform;
}

.cvc-gluecksrad-wheel img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	pointer-events: none;
}

/* Spinning state */
.cvc-gluecksrad-wheel.spinning {
	transition: transform 4s cubic-bezier(0.17, 0.67, 0.35, 0.96);
}

/* ===========================
   Pointer/Arrow
   =========================== */

.cvc-gluecksrad-pointer {
	position: absolute;
	top: -20px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 40px solid #FFE900;
	z-index: 10;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Alternative: Pointer at 3 o'clock (right side) */
.cvc-gluecksrad-pointer.pointer-right {
	top: 50%;
	left: auto;
	right: -20px;
	transform: translateY(-50%) rotate(90deg);
}

/* ===========================
   Center Button
   =========================== */

.cvc-gluecksrad-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 20;
}

.cvc-gluecksrad-spin-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 180px;
	height: 180px;
	padding: 0;
	font-size: 28px;
	font-weight: bold;
	color: #FFFFFF;
	background: #00ACE9;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	/* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); */
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.cvc-gluecksrad-spin-button:hover {
	transform: scale(1.05);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cvc-gluecksrad-spin-button:active {
	transform: scale(0.98);
}

.cvc-gluecksrad-spin-button:disabled {
	cursor: not-allowed;
	animation: pulse-button 1.5s ease-in-out infinite;
}

/* Pulse animation for spinning state */
@keyframes pulse-button {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 8px 20px rgba(0, 172, 233, 0.3);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 12px 30px rgba(0, 172, 233, 0.5);
	}
}

/* ===========================
   Confetti Canvas
   =========================== */

#cvc-gluecksrad-confetti-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
}

/* ===========================
   High Contrast Mode Support
   =========================== */

body.high-contrast .cvc-gluecksrad-spin-button {
	background: #000000;
	color: #FFFFFF;
	border: none;
}

body.high-contrast .cvc-gluecksrad-pointer {
	border-top-color: #000000;
}
