/* Showcases — cards, the full-screen feed, the dashboard panel, consent and admin queue.
   Loaded by every page that mounts js/showcases.js. Colours come from tokens.css. */

.sc-section { margin: 32px 0; }
.sc-section[hidden], #sc-search[hidden] { display: none; }
.sc-section .section-head h2 { margin: 0 0 4px; }
.sc-section .section-head p { margin: 0 0 16px; color: var(--muted); }

.sc-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 16px; }
.sc-switch .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sc-switch-note { color: var(--muted); font-size: 0.875rem; }
.sc-h { font-family: var(--font-head); font-size: var(--fs-h3, 1.25rem); margin: 8px 0 12px; }
.sc-h small { color: var(--muted); font-weight: 500; font-size: 0.875rem; margin-left: 6px; }
.sc-fill { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }

.sc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sc-strip .sc-grid { grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.sc-strip .sc-card { scroll-snap-align: start; }

.sc-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sc-open { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: var(--r-card, 14px); overflow: hidden; background: var(--bg-soft); cursor: pointer; color: #fff; text-align: left; }
.sc-open:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sc-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-shade { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.72)); pointer-events: none; }
.sc-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.sc-chip { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-size: 0.75rem; font-weight: 600; }
.sc-chip svg { width: 12px; height: 12px; }

.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sc-who { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.sc-who span { display: flex; flex-direction: column; min-width: 0; }
.sc-who strong { font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-who small { font-size: 0.75rem; color: var(--muted); }
.sc-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--body); border: 1px solid var(--line); white-space: nowrap; }
.sc-badge.is-verified { background: var(--success); color: #fff; border-color: transparent; }
.sc-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-from { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.sc-why { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* When showcases are shown, the service grid below gets its own label (in #sc-search). */
.sc-services-label[hidden] { display: none; }

/* ---------- full-screen feed ---------- */
body.sc-lock { overflow: hidden; }
.sc-viewer { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; }
.scv-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.scv-close:focus-visible { outline: 3px solid #fff; }
.scv-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; }
.scv-slide { position: relative; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 100%; }
.scv-stage { position: relative; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.scv-video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.scv-reel { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.scv-reel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.scv-count { position: absolute; top: 16px; left: 16px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-size: 0.8rem; }
.scv-sound, .scv-play { position: absolute; top: 14px; left: 14px; z-index: 2; border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 600; cursor: pointer; }
.scv-play { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; padding: 16px; }
.scv-play svg { width: 100%; height: 100%; }
.scv-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 16px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); display: flex; flex-direction: column; gap: 8px; }
.scv-info .sc-badge { align-self: flex-start; }
.scv-info .sc-who small { color: rgba(255, 255, 255, 0.75); }
.scv-info .sc-badge:not(.is-verified) { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: transparent; }
.scv-caption { margin: 0; font-size: 1rem; line-height: 1.4; }
.scv-gig { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
.scv-gig a { color: #fff; }
.scv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scv-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.scv-report { display: grid; gap: 8px; background: rgba(255, 255, 255, 0.1); padding: 12px; border-radius: 12px; }
.scv-report[hidden] { display: none; }
.scv-report label { display: grid; gap: 4px; font-size: 0.85rem; }
.scv-report select, .scv-report textarea { font: inherit; padding: 6px 8px; border-radius: 8px; border: 0; }

/* Desktop: the details sit beside the video instead of on top of it. */
@media (min-width: 900px) {
  .scv-slide { grid-template-columns: minmax(0, 1fr) 380px; }
  .scv-info { position: static; justify-content: flex-end; background: #111; padding: 72px 24px 24px; overflow-y: auto; }
}

/* ---------- dashboard ---------- */
.scd-form { display: grid; gap: 12px; margin: 12px 0 20px; max-width: 560px; }
.scd-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.scd-kind legend { font-weight: 600; margin-bottom: 6px; }
.scd-form .field { display: grid; gap: 4px; }
.scd-form .field small, .scd-note { color: var(--muted); font-size: 0.8rem; margin: 0; }
.scd-form input:not([type=radio]), .scd-form select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-input, 8px); background: var(--bg); color: var(--ink); }
.scd-progress[hidden] { display: none; }
.scd-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.scd-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }
.scd-progress-text { font-size: 0.85rem; color: var(--muted); }
.scd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scd-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.scd-item img, .scd-ph { width: 64px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); display: block; }
.scd-body { display: grid; gap: 2px; min-width: 0; }
.scd-body small { color: var(--muted); }
.scd-fail { color: var(--danger-ink, #b42318) !important; }
.scd-status { font-size: 0.8rem; font-weight: 600; }
.scd-status.is-live { color: var(--success-ink, #067647); }
.scd-status.is-failed { color: var(--danger-ink, #b42318); }
.scd-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.scd-edit { grid-column: 2; display: grid; gap: 6px; }
.scd-edit input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.scd-empty { color: var(--muted); }

/* ---------- order consent ---------- */
.sc-consent { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card, 14px); background: var(--bg); }
.sc-consent[hidden] { display: none; }
.sc-consent h2 { margin: 0 0 6px; font-size: 1.1rem; }
.scc-item { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.scc-item img { width: 56px; height: 84px; object-fit: cover; border-radius: 8px; }
.scc-item p { margin: 2px 0 8px; color: var(--muted); }

/* ---------- admin queue ---------- */
.sca-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.sca-media video, .sca-media img { width: 100%; max-height: 360px; object-fit: contain; background: #000; border-radius: 8px; margin-bottom: 6px; }
.sca-item h3 { margin: 0 0 4px; font-size: 1rem; }
.sca-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sca-reason { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; min-width: 220px; }
@media (max-width: 640px) { .sca-item { grid-template-columns: 1fr; } }

@media (max-width: 480px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sc-buy { flex-direction: column; align-items: stretch; }
}
