/* style -- THE INSPIRATION ROOM in WORDS: the Pictures / Words switch, idea
   cards and tiles, and the feedback bar under a Words grid
   (js/inspire-words.js). Simon, 29 Oct 2026. */

/* ---- the switch ---- */
.insp-mode {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px; flex: none;
  border: 1px solid var(--border); border-radius: var(--radius); background: #0b0b0d;
}
.insp-mode button {
  height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px;
  border: none; border-radius: var(--radius-sm); background: none; color: var(--text-dim);
  font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}
.insp-mode button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.insp-mode button:hover { color: var(--text); }
.insp-mode button.on { color: #fff; background: var(--accent); }
.insp-hero-modes { display: flex; justify-content: center; margin: -10px 0 16px; }
.insp-hero-modes .insp-mode { padding: 3px; }
.insp-hero-modes .insp-mode button { height: 30px; padding: 0 14px; font-size: var(--fs-body); }
.insp-hero-modes .insp-mode button svg { width: 15px; height: 15px; }

/* ---- idea cards on the board ---- */
.insp-card.k-idea { background: #111014; border-color: #2b2733; }
.insp-card.k-idea .insp-idea p { font-size: 13px; line-height: 1.45; color: var(--text-bright); -webkit-line-clamp: 8; }
.insp-card.k-idea .insp-tag { color: var(--accent); }
.insp-card.k-idea .insp-starred svg { fill: var(--accent); stroke: var(--accent); }

/* ---- idea tiles in the grid ---- */
.insp-tile.k-idea {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(var(--accent-rgb), .07), transparent 70%), #0c0b0e;
}
.insp-tile-idea {
  margin: 0; padding: 40px 28px 44px; text-align: center;
  font-size: clamp(14px, 1.9vw, 22px); line-height: 1.38; font-weight: 550; letter-spacing: -.01em; color: var(--text-bright);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical;
}
.insp-tile.k-idea.liked { border-color: rgba(var(--accent-rgb), .7); }
.insp-tile-acts { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; gap: 6px; }
.insp-tile-acts button {
  height: 28px; min-width: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 7px;
  border: none; border-radius: var(--radius); background: rgba(8, 8, 10, .8); color: var(--text);
  font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; opacity: 0;
  transition: opacity var(--t-quick), background var(--t-quick);
}
.insp-tile-acts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.insp-tile:hover .insp-tile-acts button, .insp-tile-acts button.on { opacity: 1; }
.insp-tile-acts button:hover { background: var(--accent); color: #fff; }
.insp-tile-acts button.on { color: var(--accent); }
.insp-tile-acts button.on svg { fill: var(--accent); }
.insp-tile-acts button.on:hover { color: #fff; }
.insp-tile-acts button.on:hover svg { fill: #fff; }
.insp-trail-step em { font-style: normal; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- feedback bar under a Words grid ---- */
.insp-more { display: none; flex: none; align-items: flex-end; gap: 10px; width: min(760px, 100%); margin: 0 auto 8px; }
.insp-grid.words .insp-more { display: flex; }
#insp-fb {
  flex: 1 1 auto; min-height: 38px; max-height: 120px; box-sizing: border-box; resize: none; margin: 0; padding: 9px 12px;
  border: 1px solid #2a2a30; border-radius: var(--radius); background: #111114; color: var(--text);
  font: inherit; font-size: var(--fs-mid); line-height: 1.4;
}
#insp-fb:focus { outline: none; border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); }
.insp-more .insp-go { height: 38px; flex: none; }
#inspmod.narrow .insp-tile-idea { padding: 34px 12px 36px; font-size: 13px; }
#inspmod.narrow .insp-tile-acts span { display: none; }

/* ---- SPACES down the left (js/inspire-spaces.js), like the node space's ---- */
.insp-body { flex: 1 1 auto; min-height: 0; display: flex; }
.insp-body > .insp-stage { flex: 1 1 auto; min-width: 0; }
.insp-spaces {
  flex: 0 0 168px; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border-right: 1px solid var(--border);
}
#inspmod.narrow .insp-spaces { flex-basis: 132px; }
#inspmod.tight .insp-spaces { display: none; }
.insp-sp-head {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.insp-sp-new {
  height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 9px 0 6px;
  border: 1px solid rgba(var(--accent-rgb), .55); border-radius: var(--radius); background: var(--accent-soft); color: #fff;
  font: inherit; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.insp-sp-new:hover { background: var(--accent); }
.insp-sp-new svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.insp-sp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.insp-sp-row {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 5px; cursor: pointer;
  border: 1px solid transparent; border-radius: 3px;
}
.insp-sp-row:hover { background: var(--bg); }
.insp-sp-row.on { border-color: var(--accent); background: var(--bg); }
.insp-sp-th {
  flex: 0 0 40px; height: 40px; border-radius: 3px; background: #0a0a0c center / cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--border);
}
.insp-sp-txt { flex: 1 1 auto; min-width: 0; }
.insp-sp-nm {
  font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-radius: 3px; padding: 1px 3px; margin: -1px -3px; user-select: text;
}
.insp-sp-nm[data-editing] { outline: 1px solid var(--accent); background: #0b0b0d; text-overflow: clip; cursor: text; }
.insp-sp-sub { margin-top: 2px; font-size: 10px; color: var(--text-faint); }
.insp-sp-x {
  position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; padding: 0; display: none;
  border: none; border-radius: 2px; background: rgba(0, 0, 0, .6); color: var(--text-dim); font-size: 13px; line-height: 17px; cursor: pointer;
}
.insp-sp-row:hover .insp-sp-x { display: block; }
.insp-sp-x:hover { color: #fff; background: #c0392b; }

/* ---- model, ratio, references (js/inspire-tools.js) ---- */
.insp-picks { display: inline-flex; align-items: center; gap: 6px; flex: none; }
#inspmod.words .insp-picks { display: none; }
.insp-pick {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px 0 8px;
  border: 1px solid #2a2a30; border-radius: var(--radius); background: #0d0d10; cursor: pointer;
}
.insp-pick span { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.insp-pick select {
  height: auto; min-height: 0; padding: 2px 0; margin: 0; line-height: 1.25; max-width: 150px; border: none; background: transparent; color: var(--text);
  font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer; outline: none;
}
.insp-pick select option { background: #111114; color: var(--text); }
.insp-pick:hover { border-color: #3a3a42; }
.insp-hero-row .insp-pick { height: 34px; }
/* Realism (js/inspire-tools.js): a checkbox in the same box as Model and Ratio */
.insp-rlm { padding: 0 8px 0 6px; user-select: none; }
.insp-rlm input { margin: 0; width: 13px; height: 13px; accent-color: var(--accent, #e0303a); cursor: pointer; }
.insp-rlm.on span { color: var(--text); }
#inspmod.narrow .insp-pick.insp-rlm span { display: inline; }
.insp-refbtn {
  height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 9px 0 7px; flex: none;
  border: 1px dashed #34343a; border-radius: var(--radius); background: none; color: var(--text);
  font: inherit; font-size: var(--fs-small); cursor: pointer;
}
.insp-refbtn:hover, .insp-hero-add[data-refs]:hover { border-color: rgba(var(--accent-rgb), .7); color: #fff; }
.insp-refbtn svg, .insp-hero-add[data-refs] svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.insp-comp-row { flex-wrap: wrap; row-gap: 6px; }
#inspmod.narrow .insp-pick span, #inspmod.narrow .insp-refbtn span { display: none; }

/* ---- the heart on an idea card ---- */
.insp-like {
  position: absolute; left: 6px; bottom: 6px; z-index: 2; width: 24px; height: 24px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius); background: rgba(0, 0, 0, .5); color: var(--text-dim); cursor: pointer; opacity: 0;
}
.insp-like svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.insp-card:hover .insp-like, .insp-like.on { opacity: 1; }
.insp-like:hover { color: #fff; background: var(--accent); }
.insp-like.on { color: var(--accent); }
.insp-like.on svg { fill: var(--accent); }
.insp-card.k-idea .insp-idea { padding-bottom: 30px; }
.insp-card.k-idea .insp-idea p { -webkit-line-clamp: 4; }

/* ---- the gallery's Inspire tab ---- */
#gallery-filters .gf-inspire svg, .gf-inspire svg { display: block; }
