/* style -- THE INSPIRATION ROOM, its start box and its grid of ideas
   (js/inspire-start.js, js/inspire-grid.js). The canvas, the cards and the
   composer are 42-inspire.css.

   Simon, 26 Oct 2026: "the inspire section needs to begin within the prompt
   box in the middle of the screen not an initial prompt box down the bottom
   ... click generate that will put out 4 ideas. the ideas should load as a
   big grid then user can click on one and keep exploring easily" */

/* ---- THE START: one big prompt box in the middle (inspire-start.js) ---- */
.insp-hero {
  position: absolute; inset: 0; z-index: 20; display: none; overflow: auto;
  align-items: center; justify-content: center; padding: 24px 20px 40px; box-sizing: border-box; cursor: default;
  background:
    radial-gradient(ellipse 60% 46% at 50% 44%, rgba(var(--accent-rgb), .085), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px) 0 0 / 24px 24px,
    var(--surface-deep);
}
#inspmod.empty .insp-hero, #inspmod.hero .insp-hero { display: flex; }
/* Over a board: the board stays faintly behind it. */
#inspmod.hero:not(.empty) .insp-hero {
  background: radial-gradient(ellipse 60% 46% at 50% 44%, rgba(var(--accent-rgb), .08), transparent 70%), rgba(8, 8, 10, .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.insp-hero-in { position: relative; width: min(720px, 100%); margin: auto 0; display: flex; flex-direction: column; align-items: stretch; }
.insp-hero-x {
  position: absolute; right: 0; top: -6px; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--card); color: var(--text-dim); font-size: 18px; line-height: 1; cursor: pointer;
}
.insp-hero-x:hover { color: var(--text); border-color: #2c2c31; }
#inspmod.empty .insp-hero-x { display: none; }
.insp-hero-kick {
  display: inline-flex; align-items: center; gap: 7px; align-self: center; margin-bottom: 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.insp-hero-kick .insp-spark { width: 12px; height: 12px; }
.insp-hero-h {
  margin: 0; text-align: center; font-size: 30px; line-height: 1.12; font-weight: 650; letter-spacing: -.02em; color: var(--text-bright);
}
.insp-hero-sub { margin: 10px 0 26px; text-align: center; font-size: var(--fs-mid); line-height: 1.5; color: var(--text-dim); }
.insp-hero-box {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; cursor: text;
  background: linear-gradient(180deg, #131316, #0f0f12); border: 1px solid #26262c; border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
}
.insp-hero-box:focus-within { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12), 0 30px 80px rgba(0, 0, 0, .55); }
#inspmod.dropping .insp-hero-box { border-color: var(--accent); border-style: dashed; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18), 0 30px 80px rgba(0, 0, 0, .55); }
#insp-hero-prompt {
  width: 100%; box-sizing: border-box; min-height: 84px; max-height: 260px; resize: none; margin: 0; padding: 2px 2px;
  border: none; background: none; color: var(--text); font: inherit; font-size: 17px; line-height: 1.5;
}
#insp-hero-prompt:focus { outline: none; }
#insp-hero-prompt::placeholder { color: #55555d; }
.insp-hero-pics { display: none; flex-wrap: wrap; gap: 8px; }
.insp-hero-box.has-pics .insp-hero-pics { display: flex; }
.insp-hero-pic {
  position: relative; width: 72px; height: 72px; overflow: hidden; border-radius: var(--radius);
  border: 1px solid #2a2a30; background: #050506; cursor: default;
}
.insp-hero-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insp-hero-pic button {
  position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; padding: 0; display: none;
  border: none; border-radius: 2px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; line-height: 17px; cursor: pointer;
}
.insp-hero-pic:hover button { display: block; }
.insp-hero-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #1e1e22; }
.insp-hero-add {
  height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px;
  border: 1px dashed #34343a; border-radius: var(--radius); background: none; color: var(--text);
  font: inherit; font-size: var(--fs-body); cursor: pointer;
}
.insp-hero-add:hover { border-color: rgba(var(--accent-rgb), .7); color: #fff; }
.insp-hero-add svg { width: 14px; height: 14px; stroke-width: 2; }
.insp-hero-or { font-size: var(--fs-small); color: var(--text-faint); white-space: nowrap; }
.insp-go-big { height: 38px; padding: 0 16px; font-size: var(--fs-mid); }
.insp-go-big .insp-spark { width: 15px; height: 15px; }
.insp-hero-foot { margin-top: 14px; text-align: center; font-size: var(--fs-small); color: var(--text-faint); }
#inspmod.narrow .insp-hero-h { font-size: 22px; }
#inspmod.narrow .insp-hero-sub { margin-bottom: 16px; }
#inspmod.narrow .insp-hero-or { display: none; }
#inspmod.narrow .insp-hero-row .insp-go-big { flex: 1 1 auto; justify-content: center; }

/* ---- THE IDEAS: four at a time, as a big grid (inspire-grid.js) ---- */
.insp-grid {
  position: absolute; inset: 0; z-index: 18; display: none; flex-direction: column; box-sizing: border-box;
  padding: 16px 20px 14px; cursor: default;
  background: rgba(8, 8, 10, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
#inspmod.grid .insp-grid { display: flex; }
#inspmod.grid .insp-comp, #inspmod.grid .insp-zoombar { display: none; }
.insp-grid-head { flex: none; display: flex; align-items: center; gap: 16px; min-width: 0; }
.insp-grid-what { min-width: 0; flex: 0 1 auto; }
.insp-grid-kick { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.insp-grid-prompt {
  margin-top: 3px; font-size: var(--fs-mid); line-height: 1.35; color: var(--text); max-width: 760px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.insp-grid-from { flex: none; display: flex; align-items: center; gap: 4px; }
.insp-grid-from span { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); margin-right: 3px; }
.insp-grid-from img { width: 30px; height: 30px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid #2a2a30; }
.insp-grid-x {
  flex: none; height: 30px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--text); font: inherit; font-size: var(--fs-body); font-weight: 600; cursor: pointer;
}
.insp-grid-x:hover { border-color: #33333a; }
.insp-trail { flex: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.insp-trail:empty { display: none; }
.insp-trail-step {
  height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px 0 3px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text-dim);
  font: inherit; font-size: var(--fs-small); cursor: pointer;
}
.insp-trail-step:first-child { padding-left: 9px; }
.insp-trail-step img { width: 20px; height: 20px; object-fit: cover; border-radius: 2px; }
.insp-trail-step:hover { color: var(--text); border-color: #303036; }
.insp-trail-step.on { color: #fff; border-color: rgba(var(--accent-rgb), .6); background: var(--accent-soft); }
.insp-trail-sep { font-style: normal; color: var(--text-faint); font-size: 14px; }
.insp-grid-body { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px 0 10px; }
.insp-tiles {
  height: 100%; aspect-ratio: 1 / 1; max-width: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px;
}
.insp-tiles.n1 { grid-template-columns: 1fr; }
.insp-tiles.many { aspect-ratio: auto; width: 100%; }
.insp-tile {
  position: relative; min-width: 0; min-height: 0; overflow: hidden; cursor: pointer;
  border-radius: var(--radius-lg); background: #050506; border: 1px solid #1f1f23;
  transition: border-color var(--t-quick), box-shadow var(--t-quick), transform var(--t-quick);
}
.insp-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.insp-tile.st-done:hover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5), 0 20px 50px rgba(0, 0, 0, .6); }
.insp-tile.missing::after {
  content: 'Picture not found'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); color: var(--text-faint);
}
.insp-tile-n {
  position: absolute; left: 8px; top: 8px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .66); color: var(--text-dim); font-size: 11px; font-weight: 700; pointer-events: none;
}
.insp-tile.st-done:hover .insp-tile-n { background: var(--accent); color: #fff; }
.insp-tile-open {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; opacity: 0;
  border: none; border-radius: var(--radius); background: rgba(8, 8, 10, .8); color: var(--text); cursor: pointer;
  transition: opacity var(--t-quick);
}
.insp-tile-open svg { width: 14px; height: 14px; }
.insp-tile-open:hover { background: var(--accent); }
.insp-tile:hover .insp-tile-open { opacity: 1; }
.insp-tile-go {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff; font-size: var(--fs-body); font-weight: 600; opacity: 0; transform: translateY(6px);
  transition: opacity var(--t-quick), transform var(--t-quick); pointer-events: none;
}
.insp-tile-go b { font-size: 18px; color: var(--accent); }
.insp-tile.st-done:hover .insp-tile-go { opacity: 1; transform: none; }
.insp-tile .insp-fail { padding: 18px 16px; }
.insp-grid-foot { flex: none; text-align: center; font-size: var(--fs-small); color: var(--text-faint); }
#inspmod.narrow .insp-grid { padding: 10px 10px 8px; }
#inspmod.narrow .insp-grid-from { display: none; }
#inspmod.narrow .insp-tiles { gap: 6px; }

