/* ============================================
   tutorial.css — Shared tutorial engine styles
   Prefix: .sb-tut-* (avoids collision with
   .tutorial-modal-* in editor.css)
   ============================================ */

/* ========== OVERLAY BACKDROP ========== */

.sb-tut-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sb-tut-overlay.sb-tut-visible {
  opacity: 1;
  pointer-events: all;
}

/* ========== CARD ========== */

.sb-tut-card {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 32px 24px 28px;
  max-width: 340px;
  width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.3s ease;
}

.sb-tut-overlay.sb-tut-visible .sb-tut-card {
  transform: translateY(0);
  opacity: 1;
}

/* ========== SLIDE ========== */

.sb-tut-slide {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.sb-tut-slide.sb-tut-active {
  display: flex;
}

/* ========== TITLE ========== */

.sb-tut-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #18181b;
  margin: 0;
  text-align: center;
}

/* ========== BODY ========== */

.sb-tut-body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #3f3f46;
  line-height: 1.65;
  margin: 0;
}

/* Numbered list inside body */
.sb-tut-body ol,
.sb-tut-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-tut-body li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #52525b;
  line-height: 1.5;
}

.sb-tut-body li::before {
  content: attr(data-num) ".";
  font-weight: 600;
  color: #18181b;
  flex-shrink: 0;
}

/* ========== DOT INDICATORS ========== */

.sb-tut-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sb-tut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.sb-tut-dot.sb-tut-dot-active {
  background: #6D28D9;
}

/* ========== NAV BUTTONS ========== */

.sb-tut-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-tut-btn-primary {
  width: 100%;
  padding: 14px 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to top right, #6D28D9, #14B8A6);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sb-tut-btn-primary:active {
  opacity: 0.85;
}

.sb-tut-btn-back {
  width: 100%;
  padding: 12px 0;
  border-radius: 999px;
  border: 2px solid #e4e4e7;
  background: transparent;
  color: #52525b;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.sb-tut-btn-back:active {
  opacity: 0.75;
}

.sb-tut-btn-back[hidden] {
  display: none;
}
