/*
 * Aurora Background Generator ([aurora_background]). Loaded after tools.css;
 * the code boxes reuse its .gg-output styles. The aurora itself on the demo
 * comes from the live <style> tool-au.js writes.
 */

.au-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }

.au-stage { position: sticky; top: 96px; }
.au-demo { min-height: 440px; border-radius: 28px; display: flex; align-items: center; justify-content: center; padding: 40px 24px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.au-demo-copy { text-align: center; max-width: 420px; }
.au-demo.au-no-copy .au-demo-copy { visibility: hidden; }
.au-demo-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .8; font-size: 12px; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.au-demo h3 { font-size: clamp(28px, 4vw, 44px) !important; line-height: 1.05 !important; letter-spacing: -.03em !important; margin: 0 0 12px !important; color: inherit !important; }
.au-demo p { margin: 0 0 20px !important; font-size: 16px; opacity: .8; color: inherit !important; }
.au-demo-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: currentColor; font-weight: 700; font-size: 14px; }
.au-demo-btn { color: inherit; position: relative; }
#au-demo .au-demo-btn { background: rgba(255, 255, 255, .92); color: #111; }
#au-demo.au-on-light .au-demo-btn { background: #111; color: #fff; }
.au-stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }

.au-side { display: grid; gap: 14px; }
.au-card { background: #fff; border: 1px solid #F0F0F0; border-radius: 24px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.au-card-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6E6E78; margin-bottom: 12px; }

.au-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.au-row input[type="color"] { width: 40px !important; height: 40px !important; padding: 0 !important; border: 0 !important; border-radius: 12px !important; background: none !important; cursor: pointer; flex-shrink: 0; }
.au-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.au-row input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.au-row input[type="text"] { flex: 1; min-width: 90px; font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; text-transform: uppercase; }
#au-add[hidden], .au-slider[hidden] { display: none !important; }
.au-base { margin: 6px 0 0; }
.au-base > span { font-size: 13px; font-weight: 600; color: #333; margin-right: 4px; }
.au-base-btn { width: 30px; height: 30px; padding: 0 !important; border-radius: 50% !important; border: 0 !important; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15) !important; }
.au-base-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111 !important; }
.au-base input[type="color"] { width: 30px !important; height: 30px !important; }

.au-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #F4F4F7; margin-bottom: 12px; }
.au-seg button { padding: 8px 4px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; font-size: 13px !important; font-weight: 600 !important; color: #45454F !important; cursor: pointer; box-shadow: none !important; }
.au-seg button[aria-pressed="true"] { background: #fff !important; color: #111 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1) !important; }

.au-slider { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.au-slider label { min-width: 64px; font-size: 13px; font-weight: 600; color: #333; }
.au-slider input { flex: 1; }
.au-slider span { min-width: 46px; text-align: right; font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace; font-size: 13px; color: #55555F; }
.au-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #333; cursor: pointer; }
.au-check input { width: 16px; height: 16px; margin: 0; accent-color: #111; }

.au-btn {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px !important; margin: 0 !important;
	border: 1px solid #E2E2E8 !important; border-radius: 999px !important; background: #fff !important; color: #222 !important;
	font-size: 13px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important;
}
.au-btn:hover { border-color: #111 !important; }
.au-btn .tg-i { width: 15px; height: 15px; }
.au-btn-primary { background: #111 !important; border-color: #111 !important; color: #fff !important; padding: 10px 18px !important; font-size: 14px !important; }
.au-remove { width: 30px; height: 30px; padding: 0 !important; justify-content: center; }

.au-outputs { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 24px; }

@media (max-width: 860px) {
	.au-layout, .au-outputs { grid-template-columns: 1fr; }
	.au-stage { position: static; }
	.au-demo { min-height: 340px; }
}

/* Dark mode (the demo keeps its own base colour) */
/* The demo's text follows its own base colour, not the site's theme. */
html[data-theme="dark"] .tg-tool .au-demo h3, html[data-theme="dark"] .tg-tool .au-demo p { color: inherit !important; }
html[data-theme="dark"] .tg-tool .au-card { background: #15151D !important; border-color: rgba(255, 255, 255, .09) !important; }
html[data-theme="dark"] .tg-tool .au-seg { background: #1D1D27 !important; }
html[data-theme="dark"] .tg-tool .au-seg button { color: #B9B9C6 !important; }
html[data-theme="dark"] .tg-tool .au-seg button[aria-pressed="true"] { background: #262633 !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .au-slider label, html[data-theme="dark"] .tg-tool .au-check, html[data-theme="dark"] .tg-tool .au-base > span { color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .au-slider span { color: #9393A3 !important; }
html[data-theme="dark"] .tg-tool .au-btn { background: #1D1D27 !important; border-color: rgba(255, 255, 255, .16) !important; color: #EDEDF2 !important; }
html[data-theme="dark"] .tg-tool .au-btn-primary { background: #fff !important; border-color: #fff !important; color: #111 !important; }
html[data-theme="dark"] .tg-tool .au-base-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px #15151D, 0 0 0 4px #fff !important; }
