/* DigitalPressGallery – dpg-styles.css */
:root {
  --dpg-bg: #0a0a1a;
  --dpg-accent: #00ffe7;
  --dpg-accent2: #ff6b6b;
  --dpg-text: #e0e8ff;
  --dpg-panel: rgba(10, 10, 30, 0.85);
  --dpg-border: rgba(0, 255, 231, 0.3);
  --dpg-radius: 8px;
  --dpg-font: 'Courier New', Courier, monospace;
}

/* ── Wrapper ── */
.dpg-canvas-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 60vh;
  background: var(--dpg-bg);
  border-radius: var(--dpg-radius);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  box-shadow: 0 0 60px rgba(0, 255, 231, 0.1), inset 0 0 120px rgba(0, 0, 40, 0.6);
}

/* ── Canvas ── */
.dpg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── HUD ── */
.dpg-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
}
.dpg-hud-item {
  background: var(--dpg-panel);
  border: 1px solid var(--dpg-border);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--dpg-font);
  font-size: 11px;
  color: var(--dpg-accent);
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

/* ── Controls Hint ── */
.dpg-controls-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}
.dpg-controls-hint span {
  background: var(--dpg-panel);
  border: 1px solid var(--dpg-border);
  border-radius: 4px;
  padding: 3px 9px;
  font-family: var(--dpg-font);
  font-size: 10px;
  color: rgba(224, 232, 255, 0.65);
  white-space: nowrap;
}

/* ── Tooltip ── */
.dpg-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 255, 231, 0.12);
  border: 1px solid var(--dpg-accent);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--dpg-font);
  font-size: 11px;
  color: var(--dpg-accent);
  pointer-events: none;
  display: none;
  z-index: 20;
  backdrop-filter: blur(6px);
}

/* ── Lightbox ── */
.dpg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  animation: dpgFadeIn 0.3s ease;
}
@keyframes dpgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dpg-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: 1px solid var(--dpg-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--dpg-text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.dpg-lightbox-close:hover {
  background: var(--dpg-accent);
  color: #000;
}
.dpg-lightbox-inner {
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  padding: 24px;
  background: rgba(10, 10, 30, 0.96);
  border: 1px solid var(--dpg-border);
  border-radius: 12px;
  overflow: hidden;
}

/* ── Pixel Grid ── */
.dpg-pixel-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--dpg-border);
  image-rendering: pixelated;
}
.dpg-pixel-cell {
  aspect-ratio: 1;
  border-radius: 1px;
  transition: filter 0.15s;
}
.dpg-pixel-cell:hover {
  filter: brightness(1.6);
  outline: 1px solid rgba(255,255,255,0.4);
}

/* ── Lightbox Meta ── */
.dpg-lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.dpg-meta-dpi label {
  display: block;
  font-family: var(--dpg-font);
  font-size: 11px;
  color: var(--dpg-accent);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.dpg-dpi-slider {
  width: 100%;
  accent-color: var(--dpg-accent);
  cursor: pointer;
}
.dpg-dpi-label {
  display: block;
  font-family: var(--dpg-font);
  font-size: 13px;
  color: var(--dpg-text);
  margin-top: 4px;
}
.dpg-meta-frame {
  font-family: var(--dpg-font);
  font-size: 12px;
  color: rgba(224, 232, 255, 0.55);
}
.dpg-reprint-btn {
  margin-top: auto;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00ffe7 0%, #007aff 100%);
  border: none;
  border-radius: 6px;
  font-family: var(--dpg-font);
  font-size: 13px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: opacity 0.2s, transform 0.1s;
}
.dpg-reprint-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.dpg-reprint-btn:active { transform: translateY(0); }

/* ── Slow-mo overlay ── */
.dpg-slowmo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 107, 107, 0.18);
  border: 1px solid var(--dpg-accent2);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--dpg-font);
  font-size: 11px;
  color: var(--dpg-accent2);
  pointer-events: none;
  z-index: 10;
  display: none;
  animation: dpgBlink 1s step-start infinite;
}
@keyframes dpgBlink { 50% { opacity: 0.4; } }

/* ── Calibration overlay ── */
.dpg-calib-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  display: none;
}
.dpg-calib-overlay.active { display: block; }
.dpg-calib-line {
  position: absolute;
  background: rgba(0, 255, 231, 0.25);
}
.dpg-calib-line.h { left:0; right:0; height:1px; top:50%; }
.dpg-calib-line.v { top:0; bottom:0; width:1px; left:50%; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .dpg-canvas-wrap { height: 320px; cursor: default; }
  .dpg-controls-hint span:not(:first-child):not(:nth-child(2)) { display: none; }
  .dpg-lightbox-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; max-height: 96vh; }
  .dpg-lightbox-meta { flex-direction: row; flex-wrap: wrap; }
  .dpg-reprint-btn { margin-top: 0; }
}
@media (max-width: 480px) {
  .dpg-hud-item { font-size: 9px; padding: 3px 7px; }
  .dpg-controls-hint { display: none; }
}
