/* ============================================================
   NexaPosting Mini App — Onboarding Styles
   ============================================================ */

/* ─── Onboarding Screen ───────────────────────────────────── */
#onboarding {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#onboarding.hidden {
  display: none;
}

/* ─── Slides Container ────────────────────────────────────── */
.ob-slides {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.ob-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ob-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.ob-slide.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

/* ─── Welcome slide specific ─────────────────────────────── */
.ob-welcome-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #1A96D3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(42,171,238,0.35);
  animation: onboardingFadeIn 0.5s ease both;
}

.ob-greeting {
  font-size: 26px;
  font-weight: 800;
  color: #1C1C1E;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  animation: onboardingFadeIn 0.5s ease 0.1s both;
}

.ob-subtext {
  font-size: 16px;
  color: #8E8E93;
  line-height: 1.5;
  max-width: 280px;
  animation: onboardingFadeIn 0.5s ease 0.2s both;
}

/* ─── Feature slides ─────────────────────────────────────── */
.ob-emoji {
  font-size: 72px;
  margin-bottom: 24px;
  line-height: 1;
}

.ob-title {
  font-size: 24px;
  font-weight: 800;
  color: #1C1C1E;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.ob-desc {
  font-size: 16px;
  color: #8E8E93;
  line-height: 1.55;
  max-width: 280px;
}

/* ─── Bottom Controls ─────────────────────────────────────── */
.ob-bottom {
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: onboardingFadeIn 0.4s ease 0.3s both;
}

/* Dot indicators */
.ob-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ob-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: #E5E5EA;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-dot.active {
  background: #2AABEE;
  width: 20px;
}

/* Buttons */
.ob-btn {
  width: 100%;
  padding: 16px;
  background: #2AABEE;
  color: white;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
  box-shadow: 0 4px 16px rgba(42,171,238,0.35);
  letter-spacing: -0.2px;
}

.ob-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(42,171,238,0.25);
}

.ob-btn-skip {
  background: transparent;
  color: #8E8E93;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px;
}

.ob-btn-skip:active {
  box-shadow: none;
}

/* Feature list in welcome */
.ob-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  width: 100%;
  max-width: 280px;
}

.ob-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #F2F2F7;
  border-radius: 12px;
  text-align: left;
}

.ob-feature-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ob-feature-text {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
}
