/* ========================================================================
 * Boostly DZ — Hero Showreel (Phase 2: scenes 1-3)
 * Replaces the .hero__visual placeholder with a laptop-mockup frame that
 * plays a sequential GSAP timeline. Desktop-only (≥1024px), matches
 * .hero__visual's existing aspect-ratio: 4/3 so there is zero CLS whether
 * or not showreel.js ends up running.
 * ======================================================================== */

.showreel {
  width: 100%;
  height: 100%;
}

.showreel__frame {
  width: 100%;
  height: 100%;
  background: var(--color-bg-section);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showreel__chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-border);
}

.showreel__chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--color-text-muted);
}

.showreel__screen {
  position: relative;
  flex: 1 1 auto;
  background: var(--color-bg-page);
  overflow: hidden;
}

.showreel__scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}

/* ---------- Scene 1: black screen ---------- */

.showreel__scene--black {
  background: #000;
}

/* ---------- Scene 2: incoming call UI ---------- */

.call-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.call-ui__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-700) 100%);
}

.call-ui__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.call-ui__actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.call-ui__btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  animation: showreel-pulse 1.1s ease-in-out infinite;
}

.call-ui__btn--decline { background: var(--color-error); }
.call-ui__btn--accept  { background: var(--color-success); animation-delay: .3s; }

@keyframes showreel-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

/* ---------- Scene 3: chat bubble typewriter ---------- */

.chat-bubble {
  max-width: 80%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
}

.chat-bubble__text {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.chat-bubble__text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 2px;
  background: var(--color-text-primary);
  vertical-align: -0.15em;
  animation: showreel-caret 0.8s step-end infinite;
}

@keyframes showreel-caret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .call-ui__btn,
  .chat-bubble__text::after {
    animation: none;
  }
}
