/* WizardUx Step-Specific Styles
 * Styles for each of the 10 built-in step types
 * Desktop-first - DO NOT modify these base styles for mobile
 */

/* ==========================================================================
   WELCOME STEP
   Centered image + headline + message
   ========================================================================== */

.wizard-welcome {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
  text-align: center;
}

.wizard-welcome__image {
  width: 100%;
  border-radius: 0.5em;
}

.wizard-welcome__headline {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.wizard-welcome__message {
  line-height: 1.6;
  color: var(--wizard-color-text-subtle);
  margin: 0;
}

/* ==========================================================================
   VIDEO STEP
   Responsive 16:9 video embed
   ========================================================================== */

.wizard-video {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
}

.wizard-video__header {
  text-align: center;
}

.wizard-video__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-video__description {
  color: var(--wizard-color-text-subtle);
  margin: var(--wizard-spacing-half) 0 0;
}

.wizard-video__container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0.5em;
  background: #000;
}

.wizard-video__container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wizard-video__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: var(--wizard-color-shade);
  border-radius: 0.5em;
  color: var(--wizard-color-text-subtle);
}

/* ==========================================================================
   INFO STEP
   Generic info page with optional checklist
   ========================================================================== */

.wizard-info {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
  text-align: center;
}

.wizard-info__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-info__description {
  color: var(--wizard-color-text-subtle);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   CHECKLIST
   Used in info and final steps
   ========================================================================== */

.wizard-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.wizard-checklist li {
  padding: var(--wizard-spacing-half) var(--wizard-spacing-double);
  border-bottom: 1px solid var(--wizard-color-border);
}

.wizard-checklist li:last-child {
  border-bottom: none;
}

.wizard-checklist li::before {
  content: "✓";
  color: var(--wizard-color-positive);
  font-weight: 600;
  margin-right: 0.5ch;
}

/* ==========================================================================
   SIGNATURE STEP
   Scrollable pledge text + signature input
   ========================================================================== */

.wizard-signature {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: var(--wizard-spacing-block);
}

.wizard-signature__header {
  flex: none;
  text-align: center;
}

.wizard-signature__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-signature__pledge {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--wizard-spacing-block);
  border: 1px solid var(--wizard-color-text);
  border-radius: 0.5em;
  background: var(--wizard-color-shade);
  line-height: 1.7;
}

.wizard-signature__pledge:focus,
.wizard-signature__pledge:focus-visible {
  outline: none;
  border-color: var(--wizard-color-text);
}

.wizard-signature__pledge strong {
  font-weight: 600;
}

.wizard-signature__form {
  flex: none;
}

.wizard-signature__input-wrapper {
  display: flex;
  align-items: center;
  gap: var(--wizard-spacing-inline);
  text-align: center;
}

.wizard-signature__label {
  font-weight: 600;
}

.wizard-signature__disclaimer {
  font-size: var(--wizard-text-small);
  color: var(--wizard-color-text-subtle);
  margin-top: var(--wizard-spacing-half);
}

/* ==========================================================================
   PROFILE FORM STEP
   Form fields for user data collection
   ========================================================================== */

.wizard-profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
}

.wizard-profile-form__header {
  text-align: center;
}

.wizard-profile-form__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-profile-form__description {
  color: var(--wizard-color-text-subtle);
  margin: var(--wizard-spacing-half) 0 0;
  line-height: 1.6;
}

/* ==========================================================================
   CONFIRMATION STEP
   Category-based approval UI (accordion pattern)
   ========================================================================== */

.wizard-confirmation {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
}

.wizard-confirmation__header {
  text-align: center;
}

.wizard-confirmation__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-confirmation__description {
  color: var(--wizard-color-text-subtle);
  margin: var(--wizard-spacing-half) 0 0;
}

/* Category sections */
.wizard-category {
  border: none;
  border-radius: var(--wizard-modal-border-radius);
  overflow: hidden;
  transition: opacity var(--wizard-transition-normal), transform var(--wizard-transition-normal);
}

.wizard-category[hidden] {
  display: none;
}

.wizard-category--approved {
  background: oklch(var(--wizard-lch-positive) / 0.05);
}

.wizard-category--approved .wizard-category__footer {
  display: none;
}

.wizard-category__header {
  padding: var(--wizard-spacing-half) var(--wizard-spacing-inline);
  background: var(--wizard-color-shade);
  border-bottom: 1px solid var(--wizard-color-border);
}

.wizard-category--approved .wizard-category__header {
  background: oklch(var(--wizard-lch-positive) / 0.1);
  border-bottom-color: oklch(var(--wizard-lch-positive) / 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.wizard-category--approved .wizard-category__header:hover {
  background: oklch(var(--wizard-lch-positive) / 0.15);
}

.wizard-category--approved .wizard-category__header::after {
  content: "Approved";
  font-size: var(--wizard-text-small);
  color: var(--wizard-color-positive);
  font-weight: 600;
  margin-left: auto;
}

.wizard-category--approved .wizard-category__header::before {
  content: "›";
  font-size: 1.25em;
  color: var(--wizard-color-positive);
  margin-right: 0.5ch;
  transition: transform 150ms ease;
}

.wizard-category--approved.wizard-category--expanded .wizard-category__header::before {
  transform: rotate(90deg);
}

/* Approved sections collapse by default */
.wizard-category--approved .wizard-category__content {
  display: none;
}

.wizard-category--approved.wizard-category--expanded .wizard-category__content {
  display: block;
}

.wizard-category__content {
  padding: var(--wizard-spacing-half);
}

.wizard-category__footer {
  padding: var(--wizard-spacing-half) var(--wizard-spacing-inline);
  border-top: 1px solid var(--wizard-color-border);
  background: var(--wizard-color-shade);
  display: flex;
  justify-content: center;
}

.wizard-category__footer .btn {
  min-width: 200px;
}

/* ==========================================================================
   INVITE STEP
   Invite link sharing
   ========================================================================== */

.wizard-invite {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
  text-align: center;
}

.wizard-invite__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-invite__description {
  color: var(--wizard-color-text-subtle);
  margin: 0;
}

.wizard-invite__link-container {
  display: flex;
  gap: var(--wizard-spacing-inline);
}

.wizard-invite__link-input {
  flex: 1;
}

/* ==========================================================================
   EXTERNAL STEP
   Redirect to external service
   ========================================================================== */

.wizard-external {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
  text-align: center;
}

.wizard-external__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-external__description {
  color: var(--wizard-color-text-subtle);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   SYSTEM SETUP STEP
   PWA install, notifications, etc.
   ========================================================================== */

.wizard-system-setup {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-block);
}

.wizard-system-setup__header {
  text-align: center;
}

.wizard-system-setup__headline {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.wizard-system-setup__description {
  color: var(--wizard-color-text-subtle);
  margin: var(--wizard-spacing-half) 0 0;
  line-height: 1.6;
}

.wizard-system-setup__items {
  display: flex;
  flex-direction: column;
  gap: var(--wizard-spacing-half);
}

.wizard-system-setup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wizard-spacing-block);
  background: var(--wizard-color-shade);
  border-radius: 0.5em;
}

.wizard-system-setup__item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.wizard-system-setup__item-label {
  font-weight: 600;
}

.wizard-system-setup__item-description {
  font-size: var(--wizard-text-small);
  color: var(--wizard-color-text-subtle);
}

/* ==========================================================================
   SUMMARY NAVIGATION
   Clickable step navigation items
   ========================================================================== */

.wizard-summary__item {
  cursor: pointer;
  border: none !important;
  border-radius: 0.5em;
  box-shadow: none !important;
  transition: background-color var(--wizard-transition-fast);
}

.wizard-summary__item:hover,
.wizard-summary__item:focus,
.wizard-summary__item:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.wizard-summary__item:hover {
  background-color: var(--wizard-color-shade);
}

.wizard-summary__item:active {
  background-color: var(--wizard-color-border);
}

.wizard-summary form {
  display: contents;
}

/* ==========================================================================
   PILL BANNER
   Fixed notification badge for incomplete wizard
   ========================================================================== */

.wizard-pill {
  position: fixed;
  top: var(--wizard-spacing-block);
  right: var(--wizard-spacing-inline);
  z-index: var(--wizard-z-pill);

  display: inline-flex;
  align-items: center;
  gap: 0.5ch;

  background: var(--wizard-color-text);
  color: var(--wizard-color-text-reversed);
  border-radius: 99rem;
  padding: 0.35em 0.9em;
  font-size: var(--wizard-text-small);
  font-weight: 600;

  box-shadow: var(--wizard-shadow);
  text-decoration: none;
  transition: transform var(--wizard-transition-fast), box-shadow var(--wizard-transition-fast);
}

.wizard-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.3em 0.6em oklch(var(--wizard-lch-black) / 0.2);
}

.wizard-pill__pulse {
  width: 6px;
  height: 6px;
  background: var(--wizard-color-positive);
  border-radius: 50%;
  animation: wizard-pulse 2s ease-in-out infinite;
}

@keyframes wizard-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}
