/* ================================================================== */
/*  Dynamic Chart – Frontend Styles                                    */
/* ================================================================== */

/* ---------- wrapper ---------- */
.dc-chart-wrap {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 26px;
	max-width: 840px;
	margin: 20px auto;
	padding: 18px 10px;
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- SVG lines layer ---------- */
.dc-lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	overflow: visible;
}

/* ---------- columns ---------- */
.dc-col {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dc-col--left {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.dc-col--right {
	display: grid;
	grid-template-columns: minmax(150px, 172px) minmax(150px, 172px);
	grid-template-areas:
		"identity m365"
		"identity api";
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
}

.dc-col--right > .dc-box:nth-child(1) {
	grid-area: identity;
	align-self: center;
}

.dc-col--right > .dc-box:nth-child(2) {
	grid-area: m365;
}

.dc-col--right > .dc-box:nth-child(3) {
	grid-area: api;
}

/* ---------- box (item card) ---------- */
.dc-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 13px;
	background: #fff;
	border: 1.5px solid #e2e2e8;
	border-radius: 10px;
	min-width: 155px;
	max-width: 172px;
	cursor: default;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(.25,.8,.25,1),
	            box-shadow 0.35s cubic-bezier(.25,.8,.25,1),
	            border-color 0.35s ease;
	will-change: transform, box-shadow;
}

/* accent left border – LEFT side */
.dc-box--left {
	border-left: 3px solid var(--accent, #9BC832);
}

/* accent left border + purple wash strip on right – RIGHT side */
.dc-box--right {
	border-left: 3px solid var(--accent, #7732FF);
}

.dc-box--right::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 32%;
	height: 100%;
	background: linear-gradient(90deg, transparent 0%, rgba(119, 50, 255, .06) 100%);
	border-radius: 0 10px 10px 0;
	pointer-events: none;
}

/* hover – subtle highlight */
.dc-box:hover {
	transform: scale(1.03) translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08),
	            0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
	border-color: var(--accent);
}

/* ---------- icon container ---------- */
.dc-box__icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--icon-bg, rgba(155, 200, 50, .12));
	padding: 6px;
}

.dc-box--left .dc-box__icon {
	--icon-bg: rgba(155, 200, 50, .12);
}

.dc-box--right .dc-box__icon {
	--icon-bg: rgba(119, 50, 255, .10);
}

.dc-box__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* ---------- text ---------- */
.dc-box__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.dc-box__text strong {
	font-size: 11.5px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.3;
}

.dc-box__text small {
	font-size: 9.5px;
	color: #777;
	font-weight: 400;
}

/* ---------- center circle ---------- */
.dc-center {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: var(--circle-bg, #9BC832);
	box-shadow: 0 8px 34px rgba(155, 200, 50, .28);
	transition: transform 0.4s cubic-bezier(.25,.8,.25,1),
	            box-shadow 0.4s cubic-bezier(.25,.8,.25,1);
}

.dc-center:hover {
	transform: scale(1.04);
	box-shadow: 0 12px 40px rgba(155, 200, 50, .36);
}

.dc-center__inner {
	text-align: center;
}

.dc-center__title {
	display: block;
	font-size: 21px;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.8px;
	line-height: 1.2;
}

.dc-center__subtitle {
	display: block;
	font-size: 9px;
	font-weight: 600;
	color: rgba(255, 255, 255, .92);
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-top: 2px;
}

/* ---------- connecting line dots ---------- */
.dc-line-dot {
	opacity: 0.95;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .12));
	transition: r 0.3s ease, opacity 0.3s ease;
}

.dc-line-path {
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .06));
	transition: stroke-width 0.3s ease, opacity 0.3s ease;
}

/* highlight line on box hover (JS toggles this class) */
.dc-line-path.dc-line--active {
	stroke-width: 3;
	opacity: 1;
}

.dc-line-dot.dc-line--active {
	r: 5.75;
}

/* ================================================================== */
/*  Responsive                                                         */
/* ================================================================== */

/* tablet */
@media (max-width: 1120px) {
	.dc-chart-wrap {
		gap: 24px;
		padding: 22px 12px;
	}

	.dc-center {
		width: 156px;
		height: 156px;
	}

	.dc-center__title {
		font-size: 24px;
	}

	.dc-center__subtitle {
		font-size: 11px;
		letter-spacing: 3px;
	}

	.dc-box {
		min-width: 190px;
		max-width: 210px;
		padding: 14px 15px;
		gap: 10px;
	}

	.dc-box__icon {
		width: 40px;
		height: 40px;
		padding: 7px;
	}

	.dc-box__text strong {
		font-size: 13px;
	}
}

@media (max-width: 920px) {
	.dc-chart-wrap {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
		gap: 24px;
		padding: 20px 14px;
	}

	.dc-col--left  { order: 1; flex-direction: column; justify-content: center; }
	.dc-center     { order: 2; }
	.dc-col--right {
		order: 3;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.dc-col--left,
	.dc-col--right {
		align-items: center;
	}

	.dc-box {
		max-width: 320px;
		width: 100%;
	}

	.dc-center {
		margin: 0 auto;
	}
}

/* small phone */
@media (max-width: 400px) {
	.dc-center {
		width: 140px;
		height: 140px;
	}

	.dc-center__title {
		font-size: 20px;
	}

	.dc-center__subtitle {
		font-size: 10px;
		letter-spacing: 2px;
	}

	.dc-box {
		padding: 12px 14px;
	}
}
