/* ============================================================
   ReviewBot - Onboarding Tour styles
   Pulse animation + floating checklist + tooltip overrides
   ============================================================ */

/* Pulse animation on highlighted element */
@keyframes rb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75); }
  50%      { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
}

.rb-tour-pulse {
  position: relative;
  z-index: 10000 !important;
  border-radius: 12px;
  animation: rb-pulse 1.6s infinite;
}

/* Driver.js style overrides - match LG branding */
.driver-popover.lg-theme {
  background: var(--bg-alt, #0f1729);
  border: 1px solid var(--border, #1e293b);
  border-radius: 12px;
  color: var(--text, #e2e8f0);
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 360px;
}

.driver-popover.lg-theme .driver-popover-title {
  color: var(--text, #e2e8f0);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.driver-popover.lg-theme .driver-popover-description {
  color: var(--text-muted, #94a3b8);
  font-size: 0.85rem;
  line-height: 1.55;
}

.driver-popover.lg-theme .driver-popover-progress-text {
  color: var(--text-muted, #94a3b8);
  font-size: 0.7rem;
  font-weight: 600;
}

.driver-popover.lg-theme button {
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-shadow: none;
}

.driver-popover.lg-theme .driver-popover-next-btn {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}
.driver-popover.lg-theme .driver-popover-next-btn:hover {
  background: #059669;
  border-color: #059669;
}

.driver-popover.lg-theme .driver-popover-prev-btn,
.driver-popover.lg-theme .driver-popover-close-btn {
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border-color: var(--border, #1e293b);
}
.driver-popover.lg-theme .driver-popover-close-btn:hover {
  color: var(--text, #e2e8f0);
  border-color: var(--text-muted, #94a3b8);
}

.driver-popover-arrow-side-left.lg-theme,
.driver-popover-arrow-side-right.lg-theme,
.driver-popover-arrow-side-top.lg-theme,
.driver-popover-arrow-side-bottom.lg-theme {
  border-color: var(--bg-alt, #0f1729);
}

/* ============================================================
   Floating Setup Checklist (bottom-right corner)
   ============================================================ */

.rb-checklist {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-alt, #0f1729);
  border: 1px solid var(--border, #1e293b);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  width: 320px;
  max-width: calc(100vw - 48px);
  z-index: 9500;
  overflow: hidden;
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rb-checklist.show {
  transform: translateY(0);
  opacity: 1;
}

.rb-checklist.collapsed {
  width: auto;
  cursor: pointer;
}

.rb-checklist.collapsed .rb-checklist-body,
.rb-checklist.collapsed .rb-checklist-footer {
  display: none;
}

.rb-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border, #1e293b);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), transparent);
}

.rb-checklist.collapsed .rb-checklist-head {
  border-bottom: none;
  background: var(--bg-alt, #0f1729);
}

.rb-checklist-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #e2e8f0);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-checklist-title .progress {
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 100px;
}

.rb-checklist-toggle {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}
.rb-checklist-toggle:hover {
  background: var(--bg, #0a0e1a);
  color: var(--text, #e2e8f0);
}
.rb-checklist-toggle svg {
  width: 16px;
  height: 16px;
}

.rb-checklist-body {
  padding: 8px 0;
}

.rb-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--text, #e2e8f0);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.rb-step:hover {
  background: var(--bg, #0a0e1a);
}

.rb-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg, #0a0e1a);
  border: 1.5px solid var(--border, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  transition: all 0.2s;
}

.rb-step.active .rb-step-icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
  animation: rb-pulse 1.6s infinite;
}

.rb-step.done .rb-step-icon {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.rb-step.done .rb-step-label {
  color: var(--text-muted, #94a3b8);
  text-decoration: line-through;
  text-decoration-color: rgba(148, 163, 184, 0.4);
}

.rb-step-label {
  flex: 1;
  font-weight: 500;
}

.rb-step-arrow {
  color: var(--text-muted, #94a3b8);
  opacity: 0;
  transition: opacity 0.15s;
}
.rb-step.active .rb-step-arrow {
  opacity: 1;
  color: #10b981;
}
.rb-step:hover .rb-step-arrow {
  opacity: 1;
}

.rb-checklist-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border, #1e293b);
  display: flex;
  justify-content: center;
}

.rb-checklist-skip {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text, #e2e8f0);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.15s;
  width: 100%;
}
.rb-checklist-skip:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text, #e2e8f0);
  border-color: rgba(148, 163, 184, 0.4);
}

/* Collapsed badge (after skip) */
.rb-checklist.collapsed {
  bottom: 24px;
  right: 24px;
}

.rb-checklist.collapsed .rb-checklist-head {
  padding: 10px 16px;
}

@media (max-width: 640px) {
  .rb-checklist {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
  }
}
