/* ═══════════════════════════════════════════════════════════════
   VOXEL VR — Clean XR stylesheet
   NO visible HUD / bars / menus in normal mode.
   Clean camera permission pill + hidden developer diagnostics.
════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #F0F4FC;
}

/* ══════════ FULLSCREEN 3D VIEWPORT ══════════ */
#xr-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#xr-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ══════════ CAMERA ACTIVATION PROMPT PILL ══════════ */
.camera-prompt-card {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 22, 30, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 18px;
  border-radius: 40px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.camera-prompt-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.camera-prompt-icon {
  font-size: 1.4rem;
}

.camera-prompt-text {
  display: flex;
  flex-direction: column;
}

.camera-prompt-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
}

.camera-prompt-desc {
  font-size: 0.68rem;
  color: #8C9BAE;
}

.camera-prompt-btn {
  background: #FFFFFF;
  border: none;
  color: #080C14;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.camera-prompt-btn:hover {
  background: #00E5FF;
  transform: scale(1.03);
}

/* ══════════ DEVELOPER DIAGNOSTICS MODAL (hidden by default) ══════════ */
#dev-diagnostics-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 340px;
  background: rgba(12, 16, 24, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 20px;
  color: #D6E4F0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
  pointer-events: auto;
  display: none;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 100;
}

#dev-diagnostics-panel.visible {
  display: block;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.diag-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.diag-close-btn {
  background: none;
  border: none;
  color: #8C9BAE;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.diag-close-btn:hover { color: #FFF; background: rgba(255, 255, 255, 0.1); }

.diag-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.diag-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.diag-box-label {
  font-size: 0.66rem;
  color: #8C9BAE;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.diag-box-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #00FF9C;
}

.dev-test-runner {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-run-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #080C14;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.dev-run-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
}

.dev-test-list {
  margin-top: 10px;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.73rem;
}

.dev-test-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.dev-test-name { color: #C2D0E6; }
.dev-test-pass { color: #00FF9C; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
