/* CSS Gradient Generator — tool-specific styles (loaded after /assets/base.css) */
.gg-preview { height: 260px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.gg-barwrap { position: relative; margin: 6px 0 22px; }
.gg-bar { height: 44px; border-radius: 10px; border: 1px solid var(--line); position: relative; cursor: copy;
  background-image: linear-gradient(45deg,#2a3157 25%,transparent 25%),linear-gradient(-45deg,#2a3157 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#2a3157 75%),linear-gradient(-45deg,transparent 75%,#2a3157 75%);
  background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.gg-bar-fill { position: absolute; inset: 0; border-radius: 9px; pointer-events: none; }
.gg-stop { position: absolute; top: -6px; width: 18px; height: 56px; transform: translateX(-50%); cursor: grab; }
.gg-stop::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 8px solid #fff; }
.gg-stop i { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); display: block; }
.gg-stop.active i { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,139,255,.4); }
.gg-stop.active::before { border-bottom-color: var(--accent); }

.gg-controls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gg-field { display: flex; flex-direction: column; gap: 8px; }
.gg-field > label { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.gg-field select, .gg-field input[type=number] { background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; }
.gg-stop-edit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-top: 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.gg-stop-edit .color-row input[type=color] { width: 46px; height: 38px; }
.gg-sel-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.gg-hex { width: 104px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 8px 10px; border-radius: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: uppercase; }
.gg-hex:focus { outline: none; border-color: var(--accent); }
.gg-inline { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.gg-num { width: 64px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 8px 10px; border-radius: 8px; font-family: inherit; }
.gg-num:focus { outline: none; border-color: var(--accent); }
.gg-alpha { width: 92px; }
.gg-presets-label { color: var(--muted-2); font-size: .85rem; }
.gg-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.gg-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.gg-preset { width: 46px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); cursor: pointer; transition: transform .12s; }
.gg-preset:hover { transform: translateY(-2px); }

.gg-code { display: flex; align-items: center; gap: 12px; margin-top: 20px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.gg-code code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem; color: var(--accent-2); word-break: break-all; }

@media (max-width: 600px) { .gg-controls { grid-template-columns: 1fr; } }
