/* gesture-controller styles — stage 1 placeholder */

#gc-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#gc-cursor.visible {
  opacity: 1;
}

#gc-cursor.pinching {
  transform: translate(-50%, -50%) scale(1.8);
  background: #ffffff;
  outline: 2px solid rgba(255,255,255,0.4);
  transition: transform 0.1s ease, opacity 0.2s ease;
}

/* ── Stage 4: hover feedback ───────────────────────────────────────────── */
#gc-cursor.gc-hovering {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  mix-blend-mode: difference;
}

.gc-hover-active {
  outline: 1.5px solid rgba(255, 255, 255, 0.35);
  outline-offset: 4px;
  transition: outline 0.15s ease;
}

/* ── Stage 4: section indicator ────────────────────────────────────────── */
#gc-section-indicator {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 8px 20px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#gc-section-indicator.visible {
  opacity: 1;
}

/* ── Stage 5: onboarding modal ──────────────────────────────────────────── */
#gc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.4s ease;
}

#gc-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 24px;
  max-width: 480px;
  width: 100%;
}

#gc-modal-eyebrow {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

#gc-modal-heading {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.15;
  color: #ffffff;
  margin: 8px 0 24px;
  letter-spacing: -0.02em;
}

#gc-modal-options {
  display: flex;
  gap: 16px;
  width: 100%;
}

.gc-modal-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gc-modal-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.gc-modal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.gc-btn-icon {
  font-size: 28px;
  line-height: 1;
}

.gc-btn-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.gc-btn-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
}

#gc-modal-footnote {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

/* ── Stage 6: camera feed widget ────────────────────────────────────────── */
#gc-feed-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 160px;
  height: 120px;
  z-index: 99997;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0d0d0d;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#gc-feed-widget.visible {
  opacity: 1;
  transform: translateY(0);
}

#gc-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
}

#gc-feed-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

#gc-feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  animation: gc-pulse 2s ease-in-out infinite;
}

@keyframes gc-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

#gc-feed-exit {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

#gc-feed-exit:hover {
  color: rgba(255, 255, 255, 0.9);
}

#gc-feed-video {
  width: 160px;
  height: 120px;
  display: block;
  object-fit: cover;
  transform: scaleX(-1);
}

/* ── Stage 6: gesture mode toggle button ────────────────────────────────── */
#gc-gesture-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 99997;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#gc-gesture-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

#gc-gesture-toggle.visible {
  display: flex;
}

#gc-toggle-icon {
  font-size: 14px;
}

/* ── Stage 7: cinematic overlays ─────────────────────────────────────────── */
#gc-feed-tint {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: none;
}

#gc-feed-vignette {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.45) 65%,
    rgba(0, 0, 0, 0.82) 100%
  );
  opacity: 0;
  transition: none;
}

/* ── Stage 7: air-drawing canvas ─────────────────────────────────────────── */
#gc-draw-canvas {
  position: fixed;
  pointer-events: none;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#gc-draw-canvas.visible {
  opacity: 1;
}

/* ── Stage 7: draw mode prompt ───────────────────────────────────────────── */
#gc-draw-prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100001;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#gc-draw-prompt.visible {
  opacity: 1;
}

#gc-draw-heading {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

#gc-draw-sub {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

#gc-draw-heading,
#gc-draw-sub {
  transition: opacity 0.3s ease;
}

/* ── Stage 7: expanded feed exit button ──────────────────────────────────── */
#gc-feed-exit-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100002;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#gc-feed-exit-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 1);
}

/* ── Gesture guide widget ────────────────────────────────────────────────── */
#gc-gesture-guide {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 210px;
  z-index: 99997;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}

#gc-gesture-guide.visible {
  opacity: 1;
  transform: translateY(0);
}

#gc-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

#gc-guide-title {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

#gc-guide-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

#gc-guide-close:hover {
  color: rgba(255, 255, 255, 0.8);
}

#gc-guide-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 10px;
}

#gc-guide-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
}

.gc-guide-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.gc-guide-label {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
}

.gc-guide-action {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
}
