/* =============================================================================
   Onboarding Overlay — first-login 4-step modal
   ============================================================================= */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

.onboarding-modal {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  max-width: 500px;
  width: calc(100% - 2rem);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Skip link — top-right corner */
.onboarding-skip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  transition: color 0.15s;
}

.onboarding-skip:hover {
  color: var(--text-primary);
}

/* Step indicator dots */
.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.onboarding-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-primary);
  transition: background 0.2s;
}

.onboarding-dot.active {
  background: var(--accent-red);
}

/* Content area */
.onboarding-content {
  text-align: center;
  padding: 0.5rem 0;
}

.onboarding-content h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.onboarding-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Navigation buttons */
.onboarding-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.onboarding-nav .button.secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Role selection buttons */
.onboarding-role-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.onboarding-role-btn {
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  text-align: left;
}

/* Step action button */
.onboarding-action {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}

/* =============================================================================
   Getting Started Widget — floating quest tracker for new users
   ============================================================================= */

/* Floating action button (collapsed state) */
.getting-started-fab {
  position: fixed;
  bottom: 5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid transparent;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: background 0.15s, transform 0.15s;
  animation: gs-pulse 5s ease-in-out infinite;
}

@keyframes gs-pulse {
  0%, 80%, 100% {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
  90% {
    border-color: var(--info);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6), 0 0 24px rgba(96, 165, 250, 0.3);
  }
}

.getting-started-fab:hover {
  background: var(--bg-hover);
  transform: scale(1.08);
  animation: none;
  border-color: var(--info);
}

/* Expanded panel */
.getting-started-panel {
  position: fixed;
  bottom: 5rem;
  left: 1.5rem;
  width: 280px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  z-index: 1000;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Header row */
.getting-started-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.getting-started-header-buttons {
  display: flex;
  gap: 0.25rem;
}

.getting-started-minimize,
.getting-started-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.3rem;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s;
}

.getting-started-minimize:hover,
.getting-started-dismiss:hover {
  color: var(--text-primary);
}

/* Step rows */
.getting-started-steps {
  display: flex;
  flex-direction: column;
}

.gs-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-primary);
}

.gs-step:last-child {
  border-bottom: none;
}

.gs-step.completed {
  opacity: 0.5;
}

.gs-step.completed .gs-check {
  color: var(--success);
  background: rgba(74, 222, 128, 0.15);
}

/* Step number / check circle */
.gs-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Step links */
.gs-step a {
  color: var(--info);
  text-decoration: none;
  font-size: 0.85rem;
}

.gs-step a:hover {
  text-decoration: underline;
}

/* Disabled step text (no link target yet) */
.gs-step-disabled {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Plain text step (e.g., "Join a campaign...") */
.gs-step span:not(.gs-check):not(.gs-step-disabled) {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   Getting Started Widget — Responsive
   ============================================================ */

@media (max-width: 768px) {
  .getting-started-fab {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    bottom: 4.5rem;
    left: 1rem;
  }

  .getting-started-panel {
    width: calc(100vw - 2rem);
    left: 1rem;
    bottom: 4.5rem;
  }
}
