/* Auro homepage chart — visual styling driven by the CSS custom properties
   each .auro-chart-root instance sets inline (see class-bricks-element.php).
   Structural/layout rules only live here; colors, sizes, and opacities all
   come from those custom properties so the WP admin settings control the
   look without touching this file. */

.auro-chart-root {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.auro-chart-root .auro-ambient {
	position: absolute;
	z-index: 0;
	pointer-events: none;
	width: 55vw;
	height: 55vw;
	max-width: 900px;
	max-height: 900px;
	right: -10vw;
	top: 15vh;
	background: radial-gradient(circle, var(--auro-glow-color) 0%, transparent 68%);
	opacity: calc(var(--auro-glow-opacity) * 0.16);
	filter: blur(60px);
}

.auro-chart-root .auro-chart-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.auro-chart-root .auro-chart-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.auro-chart-root .auro-dot {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: var(--auro-with-color);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--auro-with-color) 25%, transparent),
		0 0 18px 4px color-mix(in srgb, var(--auro-with-color) 70%, transparent);
	opacity: 0;
	transform: scale(0.3);
	transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auro-chart-root .auro-dot.is-visible { opacity: 1; transform: scale(1); }

.auro-chart-root .auro-tip {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--auro-glow-color) 90%, white) 0%, var(--auro-glow-color) 45%, transparent 72%);
	filter: blur(2px);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.auro-chart-root .auro-tip.is-visible { opacity: 1; }

.auro-chart-root .auro-label {
	position: absolute;
	z-index: 2;
	max-width: 300px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--auro-label-bg);
	border: 1px solid var(--auro-label-border);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.4s ease, transform 0.5s ease;
	pointer-events: none;
}
.auro-chart-root .auro-label.is-visible { opacity: 1; transform: translateY(0); }
.auro-chart-root .auro-label .t {
	margin: 0 0 4px;
	font-size: var(--auro-label-title-size);
	font-weight: var(--auro-label-title-weight);
	line-height: var(--auro-label-title-lh);
	color: var(--auro-label-title-color);
}
.auro-chart-root .auro-label .c {
	margin: 0;
	font-size: var(--auro-label-copy-size);
	font-weight: var(--auro-label-copy-weight);
	line-height: var(--auro-label-copy-lh);
	color: var(--auro-label-copy-color);
}

.auro-chart-root .auro-end-copy {
	position: absolute;
	left: 50%;
	bottom: 8%;
	transform: translate(-50%, 12px);
	z-index: 2;
	text-align: center;
	width: min(90%, 640px);
	opacity: 0;
	transition: opacity 0.5s ease, transform 0.6s ease;
	pointer-events: none;
}
.auro-chart-root .auro-end-copy.is-visible { opacity: 1; transform: translate(-50%, 0); }
.auro-chart-root .auro-end-headline {
	display: block;
	margin-bottom: 8px;
	font-size: var(--auro-end-headline-size);
	font-weight: var(--auro-end-headline-weight);
	line-height: var(--auro-end-headline-lh);
	color: var(--auro-end-headline-color);
}
.auro-chart-root .auro-end-subline {
	font-size: var(--auro-end-subline-size);
	font-weight: var(--auro-end-subline-weight);
	line-height: var(--auro-end-subline-lh);
	color: var(--auro-end-subline-color);
}

@media (prefers-reduced-motion: reduce) {
	.auro-chart-root .auro-label,
	.auro-chart-root .auro-end-copy,
	.auro-chart-root .auro-dot,
	.auro-chart-root .auro-tip,
	.auro-chart-root .auro-path-auro,
	.auro-chart-root .auro-glow {
		transition: none !important;
	}
}
