/* ======================================================== */
/* PREXTTE TRACKER - SPOTLIGHT ONBOARDING & FEATURE TIPS    */
/* Adapted from Wishlist UX system                          */
/* ======================================================== */

/* -------------------------------------------------------- */
/* 1. SPOTLIGHT ONBOARDING TOUR                             */
/* -------------------------------------------------------- */

.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: auto;
  cursor: pointer;
}

.spotlight-highlight-active {
  position: relative !important;
  z-index: 9995 !important;
  box-shadow: 0 0 0 3px #f59e0b, 0 0 0 8px rgba(245, 158, 11, 0.25), 0 20px 50px rgba(0, 0, 0, 0.5) !important;
  border-color: #f59e0b !important;
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.spotlight-callout-card {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.97);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid #f59e0b;
  border-radius: 18px;
  padding: 16px 20px;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.3);
  animation: spotlightCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10000;
  box-sizing: border-box;
  cursor: default;
}

@keyframes spotlightCardPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.spotlight-callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.spotlight-callout-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fbbf24;
}

.spotlight-callout-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.spotlight-callout-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.spotlight-callout-body p {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 14px 0;
}

.spotlight-features-list {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 14px;
  line-height: 1.45;
  color: #e2e8f0;
}

.spotlight-features-list code {
  color: #fde047;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

.spotlight-callout-actions {
  display: flex;
  justify-content: flex-end;
}

.spotlight-cta-btn {
  background: #f59e0b !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 18px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.spotlight-cta-btn:hover {
  background: #fbbf24 !important;
  transform: translateY(-1px) !important;
}

/* -------------------------------------------------------- */
/* 2. FEATURE TIP BUBBLE BANNER                             */
/* -------------------------------------------------------- */

.feature-tip-bubble-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: none;
  z-index: 9980;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  animation: tipCardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tipCardPopIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feature-tip-bubble-card {
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid #f59e0b;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

[data-bs-theme="dark"] .feature-tip-bubble-card {
  background: rgba(30, 41, 59, 0.97);
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: #fbbf24;
  box-shadow: 0 24px 50px -8px rgba(0, 0, 0, 0.65);
}

.feature-tip-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.feature-tip-tag-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-tip-bulb-mini {
  font-size: 13px;
  line-height: 1;
}

.feature-tip-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fbbf24;
}

.feature-tip-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-tip-action-link {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: underline;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.feature-tip-action-link:hover {
  color: #7dd3fc;
}

.feature-tip-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 1px 5px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.feature-tip-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* 🎬 Realistic Action Animation Stage */
.tip-action-stage {
  position: relative;
  height: 62px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  margin-bottom: 8px;
}

.tip-anim-link {
  position: absolute;
  top: 16px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2563eb;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  animation: linkDragMotion 9.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
}

.tip-anim-photo {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: photoDragMotion 9.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
}

.tip-anim-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  animation: cursorDragMotion 9.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.tip-anim-dropzone {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 146px;
  height: 46px;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
  animation: dropzoneHighlightMotion 9.6s ease infinite;
}

.tip-drop-idle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #cbd5e1;
  font-weight: 600;
  animation: dropIdleVisibility 9.6s ease infinite;
}

.tip-drop-success {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 7px;
  opacity: 0;
}

.tip-drop-success-link {
  animation: dropSuccessLinkVisibility 9.6s ease infinite;
}

.tip-drop-success-photo {
  animation: dropSuccessPhotoVisibility 9.6s ease infinite;
}

@keyframes linkDragMotion {
  0%, 3% { opacity: 0; transform: translate(0, 0) scale(0.9); }
  6% { opacity: 1; transform: translate(0, 0) scale(1); }
  18%, 26% { opacity: 1; transform: translate(110px, 4px) scale(0.96); }
  29%, 48% { opacity: 0; transform: translate(110px, 4px) scale(0.85); }
  49%, 100% { opacity: 0; }
}

@keyframes photoDragMotion {
  0%, 48% { opacity: 0; transform: translate(0, 0) scale(0.9); }
  51% { opacity: 0; }
  54% { opacity: 1; transform: translate(0, 0) scale(1); }
  68%, 76% { opacity: 1; transform: translate(110px, 4px) scale(0.96); }
  79%, 98% { opacity: 0; transform: translate(110px, 4px) scale(0.85); }
  100% { opacity: 0; }
}

@keyframes cursorDragMotion {
  0% { opacity: 0; transform: translate(8px, 14px); }
  3% { opacity: 1; transform: translate(14px, 20px); }
  18%, 26% { opacity: 1; transform: translate(128px, 24px); }
  30% { opacity: 0; transform: translate(132px, 26px); }
  48% { opacity: 0; transform: translate(8px, 14px); }
  52% { opacity: 1; transform: translate(14px, 20px); }
  68%, 76% { opacity: 1; transform: translate(128px, 24px); }
  80% { opacity: 0; transform: translate(132px, 26px); }
  100% { opacity: 0; }
}

@keyframes dropzoneHighlightMotion {
  0%, 15% { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
  18%, 27% { border-color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
  28%, 65% { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
  68%, 77% { border-color: #f59e0b; background: rgba(245, 158, 11, 0.14); }
  78%, 100% { border-color: rgba(255, 255, 255, 0.35); background: transparent; }
}

@keyframes dropIdleVisibility {
  0%, 17% { opacity: 1; }
  18%, 32% { opacity: 0; }
  33%, 67% { opacity: 1; }
  68%, 82% { opacity: 0; }
  83%, 100% { opacity: 1; }
}

@keyframes dropSuccessLinkVisibility {
  0%, 17% { opacity: 0; transform: scale(0.9); }
  19%, 30% { opacity: 1; transform: scale(1); }
  32%, 100% { opacity: 0; }
}

@keyframes dropSuccessPhotoVisibility {
  0%, 67% { opacity: 0; transform: scale(0.9); }
  69%, 80% { opacity: 1; transform: scale(1); }
  82%, 100% { opacity: 0; }
}

/* Content Row */
.feature-tip-content {
  margin-bottom: 8px;
}

.feature-tip-title {
  color: #f8fafc;
  line-height: 1.25;
}

.feature-tip-body {
  color: #94a3b8;
  line-height: 1.45;
}

/* Footer / Reactions */
.feature-tip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-tip-feedback-hint {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.feature-tip-reactions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tip-reaction-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 8px;
  padding: 3px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.tip-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px) scale(1.08);
  border-color: #fbbf24;
}

.tip-reaction-emoji {
  font-size: 13.5px;
  line-height: 1;
}

.tip-reaction-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.tip-reaction-btn:hover .tip-reaction-tooltip {
  opacity: 1;
}

.feature-tip-thankyou {
  color: #10b981;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 2px 0;
  text-align: center;
}

@media (max-width: 640px) {
  .feature-tip-bubble-wrap {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: calc(100vw - 24px);
  }
  .feature-tip-bubble-card {
    padding: 10px 12px;
  }
}

/* -------------------------------------------------------- */
/* 3. UNIVERSAL MODULE LIGHTBULB EXPLAINER SYSTEM           */
/* -------------------------------------------------------- */

.module-bulb-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 50% !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  background: rgba(245, 158, 11, 0.1) !important;
  color: #d97706 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  vertical-align: middle;
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.module-bulb-btn:hover {
  transform: scale(1.15) !important;
  background: rgba(245, 158, 11, 0.24) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important;
}

.module-bulb-btn-sm {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  font-size: 0.85rem !important;
}

.explainer-feature-card {
  border-radius: 12px;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.explainer-feature-card:last-child {
  margin-bottom: 0;
}

.explainer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

[data-bs-theme="dark"] .explainer-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
}

