/* CSS Gradient Generator styles. */

.aah-gradient__examples {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.aah-gradient__settings {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

.aah-gradient__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 700;
	font-size: 0.95em;
}

.aah-gradient__field input,
.aah-gradient__field select {
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
}

.aah-gradient__hint {
	font-weight: 400;
	font-size: 0.85em;
	color: var(--aah-muted, #5c5c5c);
}

.aah-gradient__stops {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.aah-gradient__stop {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr auto;
	gap: 12px;
	align-items: end;
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
	padding: 10px 12px;
}

.aah-gradient__stop-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 700;
	font-size: 0.9em;
}

.aah-gradient__stop-field input {
	font-weight: 400;
	width: 100%;
	box-sizing: border-box;
}

.aah-gradient__stop-field input[type="color"] {
	height: 40px;
	padding: 2px;
	cursor: pointer;
}

.aah-gradient__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

/* The panels stack in a single column inside the shared
 * .aah-split__output column (side-by-side layout). */
.aah-gradient__panels {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.aah-gradient__col {
	width: 100%;
	min-width: 0;
}

.aah-gradient__col label {
	display: block;
	font-weight: 700;
	margin-bottom: 4px;
}

.aah-gradient__preview {
	width: 100%;
	box-sizing: border-box;
	min-height: 220px;
	border: 1px solid var(--aah-border, #d9d9d9);
	border-radius: var(--aah-radius, 8px);
}

.aah-gradient__col textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 220px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	/* pre-wrap (not pre): the long gradient line wraps inside
	 * the narrower right column instead of cutting off behind
	 * a horizontal scrollbar. Line breaks in the CSS are kept. */
	white-space: pre-wrap;
}

.aah-gradient__status {
	font-weight: 600;
}

.aah-gradient__warnings {
	color: var(--aah-muted, #5c5c5c);
}
