/* DJML Labs — Preview showcase, lightbox & add-on preview cards */

/* ── Showcase ── */
.pv-showcase { display: grid; gap: 14px; }
.pv-stage { position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--stroke-b); background: linear-gradient(135deg, #0b1230, #050812);
  box-shadow: var(--shadow-glow); }
.pv-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-stage::after { content: "⤢  Agrandir"; position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text); background: var(--overlay); border: 1px solid var(--stroke-b);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.pv-stage:hover::after, .pv-stage:focus-visible::after { opacity: 1; transform: none; }
.pv-stage:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; }
.pv-caption { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; color: var(--text2); min-height: 20px; }
.pv-caption b { color: var(--text); font-family: 'Sora', sans-serif; }

.pv-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pv-tab { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: var(--r-sm); cursor: pointer;
  background: var(--panel); border: 1px solid var(--stroke); color: var(--text2); font: inherit; font-size: 12px; font-weight: 600;
  text-align: left; transition: border-color .25s, background .25s, transform .25s, color .25s; }
.pv-tab img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: calc(var(--r-sm) - 5px); display: block; opacity: .7; transition: opacity .25s; }
.pv-tab span { padding: 0 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-tab:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); color: var(--text); }
.pv-tab:hover img, .pv-tab.is-active img { opacity: 1; }
.pv-tab.is-active { color: var(--text); border-color: rgba(0,212,255,0.55); background: var(--panel-hov);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.25), 0 0 24px rgba(0,212,255,0.15); }
.pv-tab:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
@media (max-width: 560px) { .pv-tabs { grid-template-columns: repeat(2, 1fr); } }

.pv-in { animation: pvIn .45s cubic-bezier(.22,1,.36,1); }
@keyframes pvIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

/* ── Lightbox ── */
.pv-lock { overflow: hidden; }
.pv-lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 18px; }
.pv-lightbox[hidden] { display: none; }
.pv-lb-backdrop { position: absolute; inset: 0; background: rgba(3,4,10,0.82); backdrop-filter: blur(8px); animation: pvFade .2s; }
.pv-lb-card { position: relative; margin: 0; width: min(1180px, 100%); display: grid; gap: 12px; animation: pvIn .3s cubic-bezier(.22,1,.36,1); }
.pv-lb-frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--stroke-b); box-shadow: var(--shadow-glow-b);
  background: linear-gradient(135deg, #0b1230, #050812); aspect-ratio: 16/9; max-height: calc(100vh - 120px); }
.pv-lb-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-lb-card figcaption { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; color: var(--text2); font-size: 14px; }
.pv-lb-card figcaption b { color: var(--text); font-family: 'Sora', sans-serif; }
.pv-lb-x { position: absolute; top: -6px; right: -6px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--bg2); color: var(--text); border: 1px solid var(--stroke-b); font-size: 22px; line-height: 1; }
.pv-lb-nav { position: absolute; top: calc(50% - 40px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--overlay); color: var(--text); border: 1px solid var(--stroke-b); font-size: 26px; line-height: 1; backdrop-filter: blur(6px); }
.pv-lb-nav:hover, .pv-lb-x:hover { border-color: var(--c1); box-shadow: 0 0 18px rgba(0,212,255,0.35); }
.pv-lb-prev { left: 12px; } .pv-lb-next { right: 12px; }
.pv-lb-nav[hidden] { display: none; }
@keyframes pvFade { from { opacity: 0; } to { opacity: 1; } }

/* ── Add-on card preview (always visible, Steam-style cover) ── */
.pv-card-media { position: relative; margin: -22px -22px 2px; overflow: hidden; aspect-ratio: 16/9; cursor: zoom-in;
  border-radius: calc(var(--r-sm) - 1px) calc(var(--r-sm) - 1px) 0 0; border-bottom: 1px solid var(--stroke);
  background: linear-gradient(135deg, #0b1230, #050812); }
.pv-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .25s; }
.pv-card-media:hover img { transform: scale(1.045); opacity: 1; }
.pv-card-media::after { content: "⤢  Agrandir"; position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--text); background: var(--overlay); border: 1px solid var(--stroke-b);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; }
.pv-card-media:hover::after, .pv-card-media:focus-visible::after { opacity: 1; transform: none; }
.pv-card-media:focus-visible { outline: 2px solid var(--c1); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .pv-card-media img, .pv-card-media::after { transition: none; } }
