/* Guided Intro Experience Styles */

/* Main guided intro overlay container */
.guided-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.guided-intro-overlay.show {
  display: block;
  opacity: 1;
  /* Allow scrolling by not setting pointer-events: auto on overlay */
}

/* Guided tooltip base styles */
.guided-tooltip {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  max-width: 280px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(14, 165, 233, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  z-index: 1001;
}

.guided-tooltip.show {
  opacity: 1;
  transform: translateY(-25px) scale(1);
}

.guided-tooltip.hide {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.2s ease;
}

/* Reminder tooltip styling - more subtle and compact */
.guided-tooltip-reminder {
  max-width: 240px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(14, 165, 233, 0.15);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 4px rgba(14, 165, 233, 0.05);
}

.guided-tooltip-reminder .guided-tooltip-header {
  margin-bottom: 0.75rem;
}

.guided-tooltip-reminder .guided-tooltip-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  opacity: 0.9;
}

.guided-tooltip-reminder .guided-tooltip-icon svg {
  width: 1rem;
  height: 1rem;
}

.guided-tooltip-reminder .guided-tooltip-title {
  font-size: 1rem;
  font-weight: 500;
}

.guided-tooltip-reminder .guided-tooltip-description {
  font-size: 0.875rem;
  margin: 0 0 1rem 0;
  color: #64748b;
}

.guided-tooltip-passive {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  color: rgba(241, 245, 249, 0.92);
}

.guided-tooltip-passive .guided-tooltip-title {
  color: rgba(241, 245, 249, 0.95) !important;
  font-weight: 500;
}

.guided-tooltip-passive .guided-tooltip-description {
  color: rgba(226, 232, 240, 0.85) !important;
}

.guided-tooltip-passive .guided-tooltip-icon {
  background: rgba(14, 165, 233, 0.2);
  color: rgba(241, 245, 249, 0.9);
}

.guided-tooltip-passive .guided-tooltip-icon svg {
  color: currentColor;
  stroke: currentColor;
}

.guided-tooltip-passive .guided-tooltip-actions {
  display: none;
}

.guided-tooltip.guided-tooltip-mobile {
  width: min(360px, 92vw);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  position: fixed;
  left: 50%;
  right: auto;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  bottom: auto;
  transform: translate(-50%, -12px) scale(0.97);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 40px rgba(2, 25, 59, 0.35);
  color: rgba(241, 245, 249, 0.95);
  text-align: left;
  z-index: 1000000001;
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-header {
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-icon {
  display: none;
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.95) !important;
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-description {
  color: rgba(226, 232, 240, 0.9) !important;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-actions {
  justify-content: flex-end;
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-button {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: rgba(15, 23, 42, 0.98);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.guided-tooltip.guided-tooltip-mobile .guided-tooltip-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.4);
}

.guided-tooltip.guided-tooltip-mobile.show {
  transform: translate(-50%, 0) scale(1);
}

.guided-tooltip.guided-tooltip-mobile.hide {
  transform: translate(-50%, -8px) scale(0.96);
}

/* Smaller button styling for reminders */
.guided-tooltip-reminder .guided-tooltip-actions {
  margin-top: 0.75rem;
}

.guided-tooltip-reminder .guided-tooltip-button {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guided-tooltip-reminder .guided-tooltip-button:hover {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.25);
}

/* No arrows - clean rounded tooltips */

/* Tooltip content styling */
.guided-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.guided-tooltip-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guided-tooltip-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.guided-tooltip-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.guided-tooltip-description {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

/* Prevent text color change on hover */
.guided-tooltip-description:hover,
.guided-tooltip-title:hover,
.guided-tooltip:hover .guided-tooltip-description,
.guided-tooltip:hover .guided-tooltip-title {
  color: inherit;
}

.guided-tooltip-description {
  color: #475569 !important;
}

.guided-tooltip-title {
  color: #1e293b !important;
}

.guided-tooltip-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.guided-tooltip-button {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.guided-tooltip-button:hover {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.guided-tooltip-button.secondary {
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.guided-tooltip-button.secondary:hover {
  background: rgba(100, 116, 139, 0.1);
  transform: translateY(-1px);
  box-shadow: none;
}

.guided-tooltip-skip {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guided-tooltip-skip:hover {
  color: #64748b;
}

/* Highlight ring for target elements */
.guided-highlight {
  position: absolute;
  border: 3px solid #0ea5e9;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  animation: highlight-pulse 1.5s infinite;
}

.guided-highlight.show {
  opacity: 1;
  transform: scale(1);
}

/* Subtle highlight for reminder appearances */
.guided-highlight-subtle {
  border: 2px solid #0ea5e9;
  background: rgba(14, 165, 233, 0.05);
  animation: highlight-pulse-subtle 2s infinite;
}

.guided-highlight-subtle.show {
  opacity: 0.7;
}

@keyframes highlight-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(14, 165, 233, 0);
  }
}

@keyframes highlight-pulse-subtle {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
}

/* Progress indicator */
.guided-progress {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: none !important; /* Hide the progress dots */
  gap: 0.5rem;
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.guided-progress.show {
  opacity: 1;
}

.guided-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.guided-progress-dot.active {
  background: #0ea5e9;
  transform: scale(1.25);
}

.guided-progress-dot.completed {
  background: #10b981;
}

/* Dynamic positioning will be handled by JavaScript */

/* Mobile adjustments */
@media (max-width: 1024px) {
  .guided-progress {
    display: none !important;
  }

  .guided-highlight {
    display: none !important;
  }

  .guided-tooltip:not(.guided-tooltip-mobile) {
    max-width: min(320px, 90vw);
    padding: 1rem;
    transform: translateY(12px) scale(0.98);
  }
  
  .guided-tooltip:not(.guided-tooltip-mobile).show {
    transform: translateY(0) scale(1);
  }

  .guided-tooltip .guided-tooltip-title {
    font-size: 1rem;
  }

  .guided-tooltip .guided-tooltip-description {
    font-size: 0.85rem;
  }

  .guided-tooltip .guided-tooltip-actions {
    justify-content: flex-end;
  }
}

/* Simple entrance animation */
.guided-tooltip.show {
  animation: none;
}

/* Special styling for UVX1 logo in tooltips */
.guided-tooltip .uvx-logo {
  height: 1.2em;
  vertical-align: -0.1em;
  margin: 0 0.1em;
}

body[data-chatbot-open="true"] .guided-intro-overlay,
body[data-chatbot-open="true"] .guided-tooltip {
  display: none !important;
}

/* Compact tooltip styling for slides after the first */
.guided-tooltip-compact {
  max-width: 200px;
  padding: 0.75rem;
}

.guided-tooltip-compact .guided-tooltip-header {
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.guided-tooltip-compact .guided-tooltip-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
}

.guided-tooltip-compact .guided-tooltip-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.guided-tooltip-compact .guided-tooltip-title {
  font-size: 0.875rem;
  font-weight: 500;
}

.guided-tooltip-compact .guided-tooltip-description {
  font-size: 0.75rem;
  margin: 0 0 0.5rem 0;
  color: #64748b;
  line-height: 1.3;
}

.guided-tooltip-compact .guided-tooltip-actions {
  margin-top: 0.5rem;
}

.guided-tooltip-compact .guided-tooltip-button {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 5px;
}

/* Body data attribute for chatbot open state */
body[data-chatbot-open="true"] .guided-intro-overlay,
body[data-chatbot-open="true"] .guided-tooltip {
  display: none !important;
} 
