/* ═══════════════════════════════════════════════════
   FX_PC — Remote Control Screen Styles
   ═══════════════════════════════════════════════════ */

/* ── Viewport ───────────────────────────────────── */

.remote-viewport {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
  touch-action: none;
}

.zoom-layer {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  position: relative;
  will-change: transform;
}

.remote-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.remote-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.connecting-anim {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pulse-connect 2s ease-out infinite;
  opacity: 0;
}

.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.8s; }

@keyframes pulse-connect {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Virtual Cursor ─────────────────────────────── */

.virtual-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 50;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8)) drop-shadow(0 0 8px rgba(255, 107, 0, 0.5));
  transition: transform 0.04s linear;
  display: block !important;
  opacity: 1 !important;
}

.virtual-cursor svg {
  width: 24px;
  height: 24px;
}

/* ── Interaction Overlay ────────────────────────── */

.interaction-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
}

.touch-pad {
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ── Remote Top Bar ─────────────────────────────── */

.remote-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(10, 10, 15, 0.95);
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  z-index: 30;
  flex-shrink: 0;
}

.remote-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.remote-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.remote-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-badge {
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.monitor-badge:active { opacity: 0.7; }

/* ── Control Bar ────────────────────────────────── */

.control-bar {
  background: rgba(10, 10, 15, 0.95);
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  z-index: 30;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 107, 0, 0.15);
  flex-shrink: 0;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.ctrl-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
  flex-shrink: 0;
}

.zoom-label {
  font-size: 11px;
  font-weight: 700;
  color: #FF6B00;
  min-width: 32px;
  text-align: center;
  font-family: 'Inter', monospace;
}

.control-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-row {
  margin-bottom: 10px;
}

/* ── Control Buttons ────────────────────────────── */

.ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.ctrl-btn:active {
  transform: scale(0.9);
  background: rgba(255, 107, 0, 0.25);
  border-color: rgba(255, 107, 0, 0.5);
}

/* Confirm (ONAY) button — standout */
.confirm-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent);
  color: white;
  width: 42px;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 0 16px var(--accent-glow);
}

.confirm-btn:active {
  transform: scale(0.93);
  box-shadow: 0 0 24px var(--accent-glow);
}

.confirm-btn span {
  font-size: 12px;
  font-weight: 800;
}

/* Scroll buttons */
.scroll-btn {
  min-width: 50px;
}

/* Lock button */
.lock-btn.active {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

/* Panic button */
.panic-btn {
  background: rgba(255, 61, 113, 0.1);
  border-color: rgba(255, 61, 113, 0.3);
  color: var(--danger);
}

.panic-btn:hover {
  background: rgba(255, 61, 113, 0.2);
  border-color: var(--danger);
}

.panic-btn:active {
  background: var(--danger);
  color: white;
}

/* ── Keyboard Input ─────────────────────────────── */

.hidden-input {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.keyboard-active .hidden-input {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  opacity: 0.01;
}

/* ── Private Lock Overlay ───────────────────────── */

.private-lock-indicator {
  position: fixed;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.3s ease;
}

/* ── Responsive ─────────────────────────────────── */

@media (min-width: 768px) {
  .ctrl-btn {
    padding: 12px 18px;
    min-width: 70px;
  }

  .confirm-btn {
    min-width: 100px;
    padding: 14px 24px;
  }
}

@media (max-width: 380px) {
  .ctrl-btn {
    padding: 8px 10px;
    min-width: 52px;
    font-size: 9px;
  }

  .ctrl-btn svg {
    width: 18px;
    height: 18px;
  }
}
