/* Tutorial demo-first flow (paired with cv-tutorial-demo.js).
 * Uses furo's theme variables so it tracks light/dark automatically. */

.cv-demo {
  margin: 0.6rem 0 1.4rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--color-background-border);
  border-radius: 8px;
  background: var(--color-background-secondary);
}

.cv-demo-head {
  margin: 0 0 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-foreground-secondary);
}

.cv-demo-stage {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cv-demo-video {
  width: 100%;
  max-height: 60vh;
  border-radius: 6px;
  background: #000;
}

/* Poster shown until a lesson's companion video ships. */
.cv-demo-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 150px;
  border: 1px dashed var(--color-background-border);
  border-radius: 6px;
  color: var(--color-foreground-muted);
  background: var(--color-background-primary);
}
.cv-demo-poster-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 0.9rem;
  padding-left: 2px; /* optically center the ▶ glyph */
}
.cv-demo-poster-text { font-size: 0.92rem; }

.cv-demo-controls {
  display: flex;
  justify-content: flex-end;
}

/* Shared button base */
.cv-demo-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.cv-demo-btn:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

.cv-demo-btn-skip {
  background: transparent;
  color: var(--color-brand-content);
  border-color: var(--color-background-border);
}
.cv-demo-btn-skip:hover { background: var(--color-background-hover); }

/* Interactive-try prompt (after ended/skip) */
.cv-demo-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}
.cv-demo-try-q {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-foreground-primary);
}
.cv-demo-try-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-demo-btn-primary {
  background: var(--color-brand-primary);
  color: #fff;
  border-color: var(--color-brand-primary);
}
.cv-demo-btn-primary:hover { filter: brightness(1.08); }

.cv-demo-btn-web {
  background: transparent;
  color: var(--color-brand-content);
  border-color: var(--color-brand-content);
}
.cv-demo-btn-web:hover { background: var(--color-background-hover); }

.cv-demo-btn-ghost {
  background: transparent;
  color: var(--color-foreground-muted);
  border-color: var(--color-background-border);
}
.cv-demo-btn-ghost:hover { color: var(--color-foreground-secondary); }
