/* ============================================================
   BULK FACE BLUR — wizard-base.css
   Classes  : bb-*
   The 3-step wizard shell (Upload → Adjust & Edit → Export) —
   same structure as Bulk Image Compressor / Advance Rename, so
   the tool feels like part of the same family. Deliberately
   reuses the --fb-* brand tokens already defined by editor-base
   .css's :root instead of redefining a second parallel palette.
   ============================================================ */

.bb-wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  font-size: 15px;
}


/* ══════════════════════════════════════════
   1. HEADER
   ══════════════════════════════════════════ */
.bb-header{
  text-align: center;
  margin-bottom: 24px;
}

.bb-header__title{
  font-weight: 800;
  font-size: clamp(1.75rem, 6.5vw, 2.6rem);
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--fb-ink);
  margin: 0 0 10px;
}

.bb-header__title strong{ color: var(--fb-brand); }

.bb-header__subtitle{
  font-size: clamp(15px, 2.6vw, 17px);
  font-weight: 700;
  color: var(--fb-ink-soft);
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
  margin-inline: auto;
}


/* ══════════════════════════════════════════
   2. STEPPER
   ══════════════════════════════════════════ */
.bb-stepper{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.bb-stepper__step{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.bb-stepper__dot{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #9999a2;
  background: #fff;
  border: 1.5px solid var(--fb-line);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bb-stepper__step.is-active .bb-stepper__dot{
  background: var(--fb-brand);
  border-color: var(--fb-brand);
  color: #fff;
}

.bb-stepper__step.is-done .bb-stepper__dot{
  background: var(--fb-brand-soft);
  border-color: var(--fb-brand);
  color: var(--fb-brand);
}

.bb-stepper__label{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fb-ink-soft);
}

.bb-stepper__line{
  width: 28px;
  height: 2px;
  background: var(--fb-line);
  margin-top: -18px;
}


/* ══════════════════════════════════════════
   3. STEP PANELS
   ══════════════════════════════════════════ */
.bb-panel{ display: none; }

.bb-panel.is-active{
  display: block;
  animation: bbFadeIn 0.28s ease both;
}

@keyframes bbFadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to  { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════
   4. ACTION BUTTONS (shared across steps)
   ══════════════════════════════════════════ */
.bb-actions{
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.bb-btn{
  flex: 1;
  height: 48px;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  border: 1.5px solid transparent;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bb-btn:disabled{ opacity: 0.55; cursor: not-allowed; }

.bb-btn--primary{
  background: var(--fb-brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(66,181,164,0.28);
}
.bb-btn--primary:active{ transform: scale(0.98); }

.bb-btn--ghost{
  background: #fff;
  border-color: var(--fb-line);
  color: var(--fb-ink);
}
.bb-btn--ghost:active{ background: var(--fb-bg); }

.bb-btn--wide{ width: 100%; margin-top: 8px; }


/* ══════════════════════════════════════════
   5. SEGMENTED CONTROL (format picker, step 3)
   ══════════════════════════════════════════ */
.bb-segmented{
  display: flex;
  border: 1.5px solid var(--fb-line);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.bb-segmented__btn{
  flex: 1;
  height: 38px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--fb-ink-soft);
  cursor: pointer;
}

.bb-segmented__btn[data-active="true"]{
  background: var(--fb-brand);
  color: #fff;
}


/* ══════════════════════════════════════════
   6. TOAST
   ══════════════════════════════════════════ */
.bb-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--fb-ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  max-width: 90vw;
  text-align: center;
}

.bb-toast.is-visible{
  opacity: 1;
  transform: translate(-50%, 0);
}


/* ══════════════════════════════════════════
   7. EDITOR MODAL OVERLAY
   The per-image editor (Face Blur Pro's own engine) opens full-
   screen above the wizard — its internal .app/.rail/.stage/.panel
   styling all comes from editor-base.css / editor-panels.css
   unchanged; this just pins it to the viewport as an overlay.
   ══════════════════════════════════════════ */
.bb-modal{
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--fb-bg);
}
.bb-modal[hidden]{ display: none; }
.bb-modal .app{ height: 100%; }


/* ══════════════════════════════════════════
   8. EMPTY-STATE HINT (step 2, no photos)
   ══════════════════════════════════════════ */
.bb-empty-hint{
  text-align: center;
  color: var(--fb-ink-soft);
  font-weight: 700;
  padding: 32px 0;
}


/* ══════════════════════════════════════════
   DESKTOP (≥768px)
   ══════════════════════════════════════════ */
@media (min-width: 768px){
  .bb-wrap{ padding: 40px 24px 72px; }
  .bb-header__subtitle{ font-size: 18px; }
  .bb-stepper{ gap: 10px; margin-bottom: 36px; }
  .bb-stepper__line{ width: 56px; }
  .bb-btn--ghost:hover{ border-color: var(--fb-ink); }
  .bb-btn--primary:hover{ box-shadow: 0 4px 16px rgba(66,181,164,0.36); }
  .bb-actions{ max-width: 360px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce){
  .bb-panel.is-active{ animation: none; }
}
