/* BODHI Dashboard · css/lightbox.css · 全屏看图：缩放控件 / vNNN 版本 pills / 动作栏
   ⚠ 层叠顺序 = index.html 里 <link> 的先后，别随手调换。*/

/* Lightbox 全屏图片查看器 */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  background: #0c0a09;
}
.lightbox-meta {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #e7e5e4;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lightbox-meta a {
  color: #c9a36b;
  text-decoration: underline;
}
.lightbox-res {
  color: #f5e6c8;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.lightbox-res[hidden] { display: none; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 40px;
  width: 50px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.lightbox-nav:hover { color: white; background: rgba(255,255,255,0.1); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { color: white; }

/* 可点击放大的图加 cursor */
.zoomable { cursor: zoom-in; }

/* lightbox 缩放控件 */
.lightbox-img { transition: transform .12s ease; }
.lightbox-zoom {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 6px 12px;
  color: #e7e5e4;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  cursor: default;
  z-index: 2;
  box-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.lightbox-zoom button {
  width: 32px;
  height: 32px;
  line-height: 1;
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}
.lightbox-zoom button:hover { background: rgba(255,255,255,0.22); color: #fff; }
.lightbox-zoom-label { min-width: 48px; text-align: center; }

/* ── lightbox 版本切换 pills（/api/versions，所有 vNNN 图通吃） ── */
.lightbox-versions {
  position: absolute;
  bottom: 112px;  /* .lightbox-zoom 占 bottom:58px 一层，pills 抬到其上避免遮挡 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 80vw;
  background: rgba(0,0,0,0.55);
  padding: 5px 10px;
  border-radius: 6px;
}
.lb-ver-pill {
  background: rgba(255,255,255,0.12);
  color: #d6d3d1;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  cursor: pointer;
}
.lb-ver-pill:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* lightbox 动作栏（✨改图 / ✎标注 / ★publish）——右上角，避开关闭 × 与版本 pills */
.lightbox-actions {
  position: absolute;
  top: 14px;
  right: 64px;
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  padding: 5px 8px;
  border-radius: 6px;
}
.lb-action-btn {
  background: rgba(255,255,255,0.12);
  color: #e7e5e4;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.lb-action-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }

.lb-ver-pill.active {
  background: #e7e5e4;
  color: #1c1917;
  border-color: #e7e5e4;
  cursor: default;
}
