/**
 * Onboarding Guide Styles
 */

/* Overlay */
.oppb-onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal);
  /* No blur - we want highlighted areas to be crisp */
}

/* Highlight box around target element */
.oppb-onboarding-highlight {
  position: fixed;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 
    /* Inner glow */
    inset 0 0 0 2px rgba(255, 255, 255, 0.1),
    /* Outer highlight ring */
    0 0 0 4px rgba(59, 130, 246, 0.3),
    /* Cut through overlay - white background behind element */
    0 0 0 9999px rgba(0, 0, 0, 0.6);
  background: transparent;
  pointer-events: none;
  z-index: calc(var(--z-modal) + 1);
  animation: oppb-onboarding-pulse 2s ease-in-out infinite;
}

@keyframes oppb-onboarding-pulse {
  0%,
  100% {
    box-shadow: 
      inset 0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 0 4px rgba(59, 130, 246, 0.3),
      0 0 0 9999px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 
      inset 0 0 0 2px rgba(255, 255, 255, 0.2),
      0 0 0 6px rgba(59, 130, 246, 0.5),
      0 0 0 9999px rgba(0, 0, 0, 0.6);
  }
}

/* Tooltip */
.oppb-onboarding-tooltip {
  position: fixed;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-popover), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: calc(var(--z-modal) + 2);
  overflow: hidden;
}

/* Tooltip Header */
.oppb-onboarding-tooltip__header {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 3);
  padding: calc(var(--spacing) * 4);
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  color: white;
}

.oppb-onboarding-tooltip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.oppb-onboarding-tooltip__title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.oppb-onboarding-tooltip__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;

  &:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Tooltip Content */
.oppb-onboarding-tooltip__content {
  padding: calc(var(--spacing) * 4);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.6;

  p {
    margin: 0;
  }
}

/* Tooltip Footer */
.oppb-onboarding-tooltip__footer {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 3);
  padding: calc(var(--spacing) * 4);
  padding-top: 0;
}

/* Progress */
.oppb-onboarding-tooltip__progress {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
}

.oppb-onboarding-tooltip__progress-text {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.oppb-onboarding-tooltip__progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.oppb-onboarding-tooltip__progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

/* Actions */
.oppb-onboarding-tooltip__actions {
  display: flex;
  justify-content: flex-end;
  gap: calc(var(--spacing) * 2);
}

.oppb-onboarding-tooltip__btn {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing) * 1.5);
  padding: calc(var(--spacing) * 2) calc(var(--spacing) * 4);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;

  &--primary {
    background: var(--color-primary);
    color: white;

    &:hover {
      background: var(--color-primary-hover);
    }
  }

  &--secondary {
    background: var(--color-surface-secondary);
    color: var(--color-text);

    &:hover {
      background: var(--color-border);
    }
  }
}

/* Start Tour Button (shown in footer when guide is completed but user wants to restart) */
.oppb-onboarding-start-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing) * 1.5);
  padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 3);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);

  &:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
  }
}
