/* ==========================================================================
   Assessment Engine — plugin-side stylesheet
   Adds: slide/fade transitions, domain badge, mobile sticky nav.
   ========================================================================== */

/* ── Notice ──────────────────────────────────────────────────────────────── */
.mca-notice {
  padding: 1rem 1.25rem;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 8px;
  color: #8BA0C0;
  font-size: 0.875rem;
}

/* ── Question card: cancel theme keyframe, enable class-based transitions ── */
/*
 * The theme's assessment.css sets display:flex on .mca-question-card,
 * which overrides the HTML `hidden` attribute (display:none).
 * Force hidden cards off so the wizard works correctly.
 */
.mca-question-card[hidden] {
  display: none !important;
}

.mca-question-card {
  animation: none !important;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

/* Fully visible & centred */
.mca-question-card.is-active {
  opacity: 1;
  transform: translateX(0);
}

/* Entering from the right (going forward) */
.mca-question-card.is-entering-right {
  opacity: 0;
  transform: translateX(40px);
}

/* Entering from the left (going backward) */
.mca-question-card.is-entering-left {
  opacity: 0;
  transform: translateX(-40px);
}

/* Exiting to the left (going forward) */
.mca-question-card.is-exiting-left {
  opacity: 0 !important;
  transform: translateX(-40px) !important;
  pointer-events: none;
}

/* Exiting to the right (going backward) */
.mca-question-card.is-exiting-right {
  opacity: 0 !important;
  transform: translateX(40px) !important;
  pointer-events: none;
}

/* ── Question card header row (number + domain badge) ─────────────────── */
.mca-question-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ── Domain badge ─────────────────────────────────────────────────────── */
.mca-question-card__domain-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: rgba(0, 200, 255, 0.10);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #00C8FF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Mobile sticky navigation bar ────────────────────────────────────── */
@media (max-width: 640px) {
  /* Reserve space so the sticky bar doesn't overlap the last answer option */
  .mca-assessment-main {
    padding-bottom: 72px;
  }

  .mca-question-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); /* iOS notch */
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 200, 255, 0.14);
  }

  /* Stretch next/submit to fill remaining space */
  .mca-question-nav #assessment-next,
  .mca-question-nav #assessment-submit {
    flex: 1;
  }
}
