/* Cerveio Watch Demo modal — Stage 1 prototype chrome.
   Placeholder visuals only: CSS gradients/markers stand in for the real
   Environment/Avatar Engines. Keep this file dependency-free (no build
   step assumed — it is loaded directly by the static site). */

.watch-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(6, 8, 14, 0.94);
  color: #f5f6fa;
}

.watch-demo-modal[hidden] {
  display: none;
}

.watch-demo-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 20%, #1b2036 0%, #05060b 70%);
}

.watch-demo-stage[data-environment]::before {
  content: attr(data-environment);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8%;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, rgba(120, 90, 255, 0.18), rgba(0, 0, 0, 0) 60%);
}

.watch-demo-avatars {
  display: flex;
  gap: 5%;
  z-index: 1;
}

.demo-avatar-marker {
  width: clamp(60px, 12vw, 140px);
  aspect-ratio: 1 / 2;
  border-radius: 999px 999px 40% 40%;
  background: linear-gradient(180deg, #3a3f5c, #14151f);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.watch-demo-overlay-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14%;
  text-align: center;
  padding: 0 6%;
  z-index: 2;
}

.demo-overlay-text {
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.demo-overlay-text[data-capability-status='CONCEPTUAL']::after,
.demo-overlay-text[data-capability-status='PROTOTYPE']::after {
  content: ' (' attr(data-capability-status) ')';
  font-size: 0.55em;
  opacity: 0.6;
  font-weight: 500;
  text-transform: capitalize;
}

.watch-demo-overlay-mockups {
  position: absolute;
  top: 6%;
  left: 6%;
  z-index: 2;
}

.demo-ui-mockup {
  padding: 0.5em 0.9em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.watch-demo-captions {
  min-height: 1.4em;
  padding: 0.5em 6%;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
}

.watch-demo-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 6%;
  background: rgba(10, 12, 20, 0.9);
  flex-wrap: wrap;
}

.watch-demo-controls button {
  font: inherit;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.5em 0.9em;
  cursor: pointer;
}

.watch-demo-controls button:focus-visible {
  outline: 2px solid #8a7bff;
  outline-offset: 2px;
}

.watch-demo-progress-track {
  flex: 1;
  min-width: 80px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.watch-demo-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8a7bff, #56d8ff);
  transition: width 120ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .watch-demo-progress-bar {
    transition: none;
  }
}

/* Mobile layout: stack controls, shrink the caption row, keep every control
   reachable with a thumb-friendly tap target. */
@media (max-width: 640px) {
  .watch-demo-controls {
    gap: 0.5rem;
    padding: 0.6rem 4%;
  }

  .watch-demo-controls button {
    padding: 0.6em 0.7em;
    font-size: 0.8rem;
  }

  .watch-demo-progress-track {
    order: 10;
    flex-basis: 100%;
  }

  .watch-demo-captions {
    font-size: 0.8rem;
  }
}
