/**
 * North Labs – playground-ul de pe pagina Glimmerwake.
 *
 * Selectorii au prefixul .gw-playground ca să bată stilurile Astra pentru
 * button și input (fundal roșu, padding, hover).
 */

.gw-playground {
	--gw-accent: var(--ast-global-color-0, #dd183b);
	--gw-line: rgba(255, 255, 255, 0.14);
	--gw-muted: rgba(255, 237, 230, 0.75);

	padding: 50px;
	border-left: 1px solid #2f3742;
	background: linear-gradient(190deg, rgba(30, 42, 57, 0.48) 0%, var(--ast-global-color-7, #140609) 40%);
	color: #fff;
}

.gw-playground .gw-intro {
	max-width: 46em;
	margin: 0 0 40px;
	font-size: 17px;
	line-height: 1.6;
	color: #fff;
}

.gw-playground .gw-group + .gw-group {
	margin-top: 28px;
}

.gw-playground .gw-group-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--gw-accent);
}

.gw-playground .gw-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gw-playground .gw-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid var(--gw-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gw-playground .gw-chip:hover,
.gw-playground .gw-chip:focus {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.gw-playground .gw-chip[aria-pressed="true"],
.gw-playground .gw-chip[aria-pressed="true"]:hover,
.gw-playground .gw-chip[aria-pressed="true"]:focus {
	border-color: var(--gw-accent);
	background: var(--gw-accent);
	color: #fff;
}

.gw-playground .gw-dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gw-a) 50%, var(--gw-b) 50%);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.gw-playground .gw-controls {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 40px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--gw-line);
}

.gw-playground .gw-control {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.gw-playground .gw-control.is-disabled {
	opacity: 0.4;
}

.gw-playground .gw-label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.gw-playground .gw-label output {
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: var(--gw-muted);
}

.gw-playground input[type="range"] {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: var(--gw-accent);
	cursor: pointer;
}

.gw-playground .gw-colors {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 24px 40px;
}

.gw-playground input[type="color"] {
	width: 64px;
	height: 38px;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--gw-line);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}

.gw-playground input[type="color"]:disabled {
	cursor: not-allowed;
}

.gw-playground .gw-reset,
.gw-playground .gw-play {
	margin: 0 0 0 auto;
	padding: 10px 22px;
	border: 1px solid var(--gw-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	color: #fff;
	cursor: pointer;
}

.gw-playground .gw-reset:hover,
.gw-playground .gw-reset:focus {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.gw-playground .gw-play {
	margin: 0;
	border-color: var(--gw-accent);
	background: var(--gw-accent);
}

.gw-playground .gw-play:hover,
.gw-playground .gw-play:focus {
	border-color: var(--ast-global-color-1, #cc1939);
	background: var(--ast-global-color-1, #cc1939);
	color: #fff;
}

.gw-playground .gw-play[hidden] {
	display: none;
}

.gw-playground .gw-chip:focus-visible,
.gw-playground .gw-reset:focus-visible,
.gw-playground .gw-play:focus-visible,
.gw-playground input:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.gw-playground .gw-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 32px;
}

.gw-playground .gw-status {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.gw-playground .gw-note {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--gw-muted);
}

.gw-playground.is-unavailable .gw-controls,
.gw-playground.is-unavailable .gw-note {
	display: none;
}

.gw-playground.is-unavailable .gw-chip {
	pointer-events: none;
}

@media (max-width: 1024px) {
	.gw-playground {
		padding: 30px 20px;
	}

	.gw-playground .gw-controls {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.gw-playground {
		border-left: 0;
	}

	.gw-playground .gw-controls {
		grid-template-columns: minmax(0, 1fr);
	}

	.gw-playground .gw-reset {
		margin-left: 0;
	}
}
