/* Home showcase dialog: one wall case opened as a fullscreen viewer —
   the work fills the left column, the case data sits in a pinned right rail.
   Visual language follows home.css — graphite panels, hairline seams, restrained purple accent.
   The homepage applies body-level zoom tiers (0.67/0.85) on wide viewports, so this
   overlay stretches via inset:0 and sizes its internals with % instead of vw/vh units. */
.showcase-dialog { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #0d1012; box-shadow: none; }
.showcase-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.showcase-dialog .dialog-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }

.showcase-dialog .dialog-head { min-height: 74px; padding: 0 26px; }
.showcase-dialog .dialog-head > div { min-width: 0; display: grid; gap: 4px; padding: 10px 0; }
.showcase-dialog .dialog-head h2 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase-subtitle { margin: 0; color: var(--home-dim); font-size: 12px; }

.showcase-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, min(460px, 32vw)); min-height: 0; }

.showcase-media { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 30px; background: #0a0b0c; border-right: 1px solid var(--home-line); }
.showcase-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 4px; background: var(--home-panel); }

.showcase-side { display: grid; align-content: start; gap: 22px; min-width: 0; min-height: 0; padding: 24px 26px 28px; overflow: auto; }

.showcase-kicker { display: block; margin-bottom: 8px; color: var(--home-dim); font-size: 10px; font-weight: 700; letter-spacing: .2em; }

.showcase-feature-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 5px 15px 5px 5px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-panel); color: var(--home-text); font-size: 13px; font-weight: 650; }
.showcase-feature-icon { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #a66cff 0%, #7257ff 52%, #5848e8 100%); color: #fff; box-shadow: 0 4px 12px rgba(101, 76, 255, .3); }
.showcase-feature-icon .ui-icon { width: 15px; height: 15px; }

.showcase-ref-row { display: flex; flex-wrap: wrap; gap: 9px; }
.showcase-ref { position: relative; width: 92px; height: 92px; overflow: hidden; border: 1px solid var(--home-line); border-radius: 4px; background: var(--home-panel); }
.showcase-ref img { width: 100%; height: 100%; object-fit: cover; }
.showcase-refs-none, .showcase-promptless { margin: 0; max-width: 40ch; color: var(--home-muted); font-size: 12px; line-height: 1.7; }

.showcase-prompt { display: grid; gap: 9px; }
.showcase-prompt-text { max-height: 40vh; overflow: auto; margin: 0; padding: 13px 14px; border: 1px solid var(--home-line); border-radius: 5px; background: #0a0b0c; color: #e2e5e8; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.showcase-copy { justify-self: start; min-height: 34px; padding: 0 14px; border: 1px solid var(--home-line-strong); border-radius: 4px; background: transparent; color: var(--home-text); font-size: 12px; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.showcase-copy:hover { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .06); }

.showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }

.showcase-copy:focus-visible, .showcase-actions .dialog-primary:focus-visible { outline: 3px solid rgba(155, 108, 255, .7); outline-offset: 2px; }

/* Large displays (design 1300s and 2.7K walls): scale the rail up with the screen. */
@media (min-width: 1500px) {
  .showcase-dialog .dialog-head { min-height: 84px; }
  .showcase-side { gap: 26px; padding: 30px 32px 34px; }
  .showcase-prompt-text { font-size: 14px; line-height: 1.9; }
  .showcase-feature-chip { min-height: 40px; padding: 5px 17px 5px 6px; font-size: 14px; }
  .showcase-feature-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 8px; }
  .showcase-feature-icon .ui-icon { width: 17px; height: 17px; }
  .showcase-ref { width: 104px; height: 104px; }
  .showcase-refs-none, .showcase-promptless { font-size: 13px; }
  .showcase-copy { min-height: 40px; padding: 0 17px; font-size: 13px; }
  .showcase-actions .dialog-primary { min-height: 44px; font-size: 13px; }
}

@media (max-width: 760px) {
  .showcase-dialog { overflow: auto; }
  .showcase-dialog .dialog-shell { height: auto; min-height: 100%; grid-template-rows: auto auto; }
  .showcase-body { grid-template-columns: 1fr; }
  .showcase-media { padding: 16px; border-right: 0; border-bottom: 1px solid var(--home-line); }
  .showcase-media img { max-height: 60vh; }
  .showcase-side { padding: 18px 18px 20px; gap: 18px; overflow: visible; }
}
