/* ==========================================================================
   PRO AUTO CLICKER - STUDIO PLAYGROUND & TELEMETRY HUD
   High-performance canvas positioned right beside the desktop app
   ========================================================================== */

.studio-playground-panel {
  background: #060b14;
  border: 1px solid #16243f;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.playground-panel-header {
  background: #040810;
  border-bottom: 1px solid #121e34;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.playground-telemetry-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-badges-row {
  display: flex;
  gap: 8px;
}

.telemetry-box {
  background: #08101e;
  border: 1px solid #16243f;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.telemetry-box .tel-label {
  font-family: var(--font-code);
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
}

.telemetry-box .tel-val {
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 700;
  color: #00d2ff;
}

.telemetry-box .tel-val.glow-green {
  color: #00ff88;
}

/* Studio Canvas Area */
.studio-canvas-stage {
  flex: 1;
  min-height: 480px;
  background: radial-gradient(circle at 50% 50%, #0a1120 0%, #040810 100%);
  position: relative;
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
}

.stage-watermark {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-code);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 1px;
  pointer-events: none;
}

/* Region Lock Box */
.region-lock-box {
  position: absolute;
  border: 2px dashed #ffb800;
  background: rgba(255, 184, 0, 0.08);
  pointer-events: none;
  display: none;
  border-radius: 2px;
}

.region-lock-box.active {
  display: block;
}

.region-label {
  position: absolute;
  top: -18px;
  left: 0;
  background: #ffb800;
  color: #050b14;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}

/* Click Ripple Particles */
.click-ripple {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.8) 0%, rgba(0, 240, 255, 0) 70%);
  border: 2px solid #00f0ff;
  pointer-events: none;
  animation: ripplePop 0.35s ease-out forwards;
}

@keyframes ripplePop {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Targets */
.target-entity {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.target-entity.coin {
  background: radial-gradient(circle, #fde047 0%, #ca8a04 100%);
  border: 2px solid #fef08a;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.5);
  animation: coinFloat 2s ease-in-out infinite alternate;
}

.target-entity.gem {
  background: radial-gradient(circle, #f472b6 0%, #db2777 100%);
  border: 2px solid #fbcfe8;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.5);
  animation: gemSpin 3s linear infinite;
}

.target-entity.target-image {
  background: #111a2e;
  border: 2px solid #00d2ff;
  border-radius: 6px;
}

@keyframes coinFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes gemSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* HUD Action Toasts */
.hud-action-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 10;
}

.hud-action-pill {
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid #00d2ff;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: slideFadeIn 0.2s ease-out;
}

.hud-key-badge {
  background: #00d2ff;
  color: #050b14;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 9px;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stage Bottom Controls */
.stage-footer-bar {
  background: #040810;
  border-top: 1px solid #121e34;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-preset-pill {
  background: #08101e;
  border: 1px solid #16243f;
  color: #94a3b8;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset-pill:hover, .btn-preset-pill.active {
  background: #092238;
  border-color: #00d2ff;
  color: #00d2ff;
}

/* Eyedropper Loupe Preview */
.color-picker-loupe {
  position: absolute;
  background: #09101d;
  border: 1px solid #00d2ff;
  border-radius: 4px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.loupe-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.loupe-hex {
  font-family: var(--font-code);
  font-size: 10px;
  color: #00d2ff;
  font-weight: 700;
}
