/* ============================================================
   PAG Growth Wheel Widget — Stylesheet
   ============================================================ */

/* Wrapper: centres the wheel on the page */
.pag-gw-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0px 20px;
}

/* ── Wheel container ─────────────────────────────────────── */
.pag-gw-wheel {
	position: relative;
	width: 640px;
	height: 640px;

	/* Sensible max so it never breaks narrow viewports */
	max-width: 100%;
	max-height: 100vw;
}

/* ── Center Hub ──────────────────────────────────────────── */
.pag-gw-hub {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #e0e0e0;

	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;

	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.25s ease;
}

.pag-gw-hub:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.pag-gw-hub-img {
	width: 80%;
	height: auto;
	object-fit: contain;
}

/* ── Spoke Items ─────────────────────────────────────────── */
.pag-gw-spoke-item {
	position: absolute;

	/* Default size — overridden by the Elementor slider */
	width: 110px;
	height: 110px;
	border-radius: 12px;

	/* Default colour — overridden by Style tab */
	background-color: #002855;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;

	text-decoration: none;
	cursor: pointer;
	z-index: 1;

	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;

	/* JS positions each spoke; we just need top/left offsets to snap */
	transform: translate(-50%, -50%);
}

.pag-gw-spoke-item:hover {
	transform: translate(-50%, -50%) scale(1.07);
	background-color: #0053a0;
}

/* ── Spoke Image ─────────────────────────────────────────── */
.pag-gw-spoke-img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	flex-shrink: 0;
}

/* ── Spoke Label ─────────────────────────────────────────── */
.pag-gw-spoke-label {
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	padding: 0 6px;

	/* Prevent overflow in very long labels */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* ── SVG Connector Lines ─────────────────────────────────── */
.pag-gw-connectors {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

/* ── Empty state ─────────────────────────────────────────── */
.pag-gw-empty {
	padding: 20px;
	color: #888;
	font-style: italic;
	text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
	.pag-gw-wheel {
		width: 90vw !important;
		height: 90vw !important;
	}

	.pag-gw-hub {
		width: 20vw !important;
		height: 20vw !important;
	}

	.pag-gw-spoke-item {
		width: 16vw !important;
		height: 16vw !important;
		border-radius: 8px !important;
	}

	.pag-gw-spoke-img {
		width: 6vw;
		height: 6vw;
	}

	.pag-gw-spoke-label {
		font-size: 8px;
	}
}
