/* Okos generálás onboarding – lila téma, ugyanaz a szerkezet mint onboarding.css */

.onboarding--smart {
  z-index: 2100;
}

.onboarding--smart .onboarding__spotlight {
  box-shadow:
    0 0 0 2px rgba(167, 139, 250, 0.75),
    0 0 0 9999px rgba(4, 4, 8, 0.72);
}

.onboarding--smart .onboarding__card {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(139, 92, 246, 0.12);
}

.onboarding--smart .onboarding__dot.is-done {
  background: rgba(139, 92, 246, 0.35);
}

.onboarding--smart .onboarding__dot.is-active::after {
  background: #a78bfa;
}

.onboarding--smart .accent-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
}

/* --- Demók --- */

.sonb-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 148px;
  padding: 16px;
}

.sonb-welcome__pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  animation: sonb-pill-glow 2s ease-in-out infinite;
}

.sonb-welcome__rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sonb-welcome__rule {
  font-size: 11px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  color: #e9d5ff;
  animation: sonb-rule-pop 2.4s ease-in-out infinite;
}

.sonb-welcome__rule:nth-child(2) {
  animation-delay: 0.25s;
}

.sonb-welcome__rule:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes sonb-pill-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(139, 92, 246, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  }
}

@keyframes sonb-rule-pop {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.sonb-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 148px;
}

.sonb-lock__seat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
}

.sonb-lock__chip {
  font-size: 12px;
  font-weight: 600;
  color: #f5f3ff;
}

.sonb-lock__icon {
  font-size: 18px;
  animation: sonb-lock-shake 1.8s ease-in-out infinite;
}

.sonb-lock__hint {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
}

@keyframes sonb-lock-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

.sonb-avoid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 148px;
}

.sonb-avoid__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sonb-avoid__name {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sonb-avoid__x {
  font-size: 20px;
  color: #f87171;
  animation: sonb-avoid-pulse 1.4s ease infinite;
}

.sonb-avoid__hint {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
}

@keyframes sonb-avoid-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.sonb-fix {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 148px;
}

.sonb-fix__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sonb-fix__student,
.sonb-fix__seat {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.sonb-fix__student {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.sonb-fix__seat {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.sonb-fix__arrow {
  color: #c4b5fd;
  animation: sonb-fix-arrow 1.2s ease infinite;
}

.sonb-fix__hint {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
}

@keyframes sonb-fix-arrow {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(4px);
    opacity: 1;
  }
}

.sonb-generate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 148px;
}

.sonb-generate__btn {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: default;
  animation: sonb-gen-pulse 2s ease-in-out infinite;
}

.sonb-generate__glow {
  position: absolute;
  width: 200px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse,
    rgba(139, 92, 246, 0.45),
    transparent 70%
  );
  animation: sonb-gen-glow 2s ease-in-out infinite;
}

@keyframes sonb-gen-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes sonb-gen-glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

.sonb-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 148px;
}

.sonb-done__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 24px;
  display: grid;
  place-items: center;
  animation: sonb-done-pop 0.6s var(--ease) both;
}

.sonb-done__hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 260px;
}

@keyframes sonb-done-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sonb-welcome__pill,
  .sonb-welcome__rule,
  .sonb-lock__icon,
  .sonb-avoid__x,
  .sonb-fix__arrow,
  .sonb-generate__btn,
  .sonb-generate__glow,
  .sonb-done__check {
    animation: none !important;
  }
}
