/**
 * Novara Experience Engine — shared design system
 * Buttons defined here are the single source of truth for every plugin page.
 */

.nee-component,
.nee-component *,
.nee-component *::before,
.nee-component *::after {
	box-sizing: border-box;
}

.nee-component {
	width: 100%;
	margin: 0;
	padding: 0;
}

.nee-novara-ai-page {
	--nee-graphite: #111722;
	--nee-blue: #6f93d2;
	--nee-blue-deep: #567bbd;
	--nee-white: #ffffff;
	--nee-green: #87c540;

	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: clip;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Full-bleed output even when the shortcode lives inside a constrained Divi row. */
.nee-novara-ai-page > .nee-component,
.nee-fi-central-page > .nee-component,
.nee-distribution-page > .nee-component,
.nee-component--fullbleed {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	margin-left: -50vw;
}

/* =========================================================
   NOVARA BUTTON SYSTEM
   Do not redefine button dimensions inside individual pages.
   ========================================================= */

.nee-button {
	--nee-button-bg: linear-gradient(180deg, #7fa0d8 0%, #6489ca 100%);
	--nee-button-color: #ffffff;
	--nee-button-border: rgba(255, 255, 255, .18);
	--nee-button-shadow: 0 16px 34px rgba(86, 123, 189, .25);

	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 21px;
	border: 1px solid var(--nee-button-border);
	border-radius: 999px;
	background: var(--nee-button-bg);
	color: var(--nee-button-color) !important;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	letter-spacing: -.01em;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow:
		inset .7px .7px 0 rgba(255, 255, 255, .30),
		var(--nee-button-shadow);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform 220ms cubic-bezier(.2, .72, .22, 1),
		box-shadow 220ms ease,
		border-color 220ms ease,
		background-color 220ms ease;
}

.nee-button svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 220ms cubic-bezier(.2, .72, .22, 1);
}

.nee-button:hover {
	transform: translateY(-2px);
	box-shadow:
		inset .7px .7px 0 rgba(255, 255, 255, .34),
		0 20px 42px rgba(86, 123, 189, .31);
}

.nee-button:hover svg {
	transform: translateX(3px);
}

.nee-button:active {
	transform: translateY(0);
}

.nee-button:focus-visible {
	outline: 3px solid rgba(182, 205, 240, .48);
	outline-offset: 4px;
}

.nee-button--secondary {
	--nee-button-bg: rgba(255, 255, 255, .055);
	--nee-button-color: rgba(248, 251, 255, .94);
	--nee-button-border: rgba(255, 255, 255, .16);
	--nee-button-shadow: 0 12px 28px rgba(0, 0, 0, .14);

	backdrop-filter: blur(12px) saturate(110%);
	-webkit-backdrop-filter: blur(12px) saturate(110%);
}

.nee-button--secondary:hover {
	border-color: rgba(182, 205, 240, .34);
	background: rgba(111, 147, 210, .10);
	box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.nee-button--on-light.nee-button--secondary {
	--nee-button-color: #111722;
	--nee-button-border: rgba(17, 23, 34, .11);
	--nee-button-bg: rgba(255, 255, 255, .72);
	--nee-button-shadow: 0 12px 28px rgba(17, 23, 34, .07);
}

.nee-button-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.nee-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(17, 23, 34, .12);
	border-radius: 999px;
	background: #fff;
	color: #111722;
	font-family: Inter, system-ui, sans-serif;
	font-size: 12px;
	box-shadow: 0 8px 24px rgba(17, 23, 34, .08);
}

.nee-status span {
	color: #6f93d2;
}

@media (max-width: 520px) {
	.nee-button-group {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.nee-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nee-button,
	.nee-button svg {
		transition-duration: .01ms !important;
	}
}
