/* Onboarding System Styles - Guardrail Linear Guide */

.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.onboarding-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}

.onboarding-highlight {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 4px #FFD700, 0 0 20px rgba(255, 215, 0, 0.5);
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  z-index: 10001;
}

/* Highlight animation */
@keyframes highlightPulse {
  0%, 100% { 
    box-shadow: 0 0 0 4px #FFD700, 0 0 15px rgba(255, 215, 0, 0.4);
  }
  50% { 
    box-shadow: 0 0 0 4px #FFD700, 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

.onboarding-tooltip {
  position: fixed;
  background: rgba(20, 20, 20, 0.95);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 12px 14px;
  left: 12px;
  right: 12px;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  z-index: 10002;
  box-sizing: border-box;
  transition: opacity 0.2s ease;
}

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

.onboarding-npc {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.onboarding-npc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #FFD700;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.onboarding-npc-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
}

.onboarding-npc-role {
  font-size: 10px;
  color: #888;
}

.onboarding-step-indicator {
  font-size: 11px;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.onboarding-skip-btn {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  font-size: 11px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.onboarding-skip-btn:hover {
  border-color: #666;
  color: #fff;
}

.onboarding-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.onboarding-description {
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
  margin: 0 0 8px 0;
}

.onboarding-hint {
  font-size: 12px;
  color: #FFD700;
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
}

/* Completion Modal */
.onboarding-complete-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10003;
  animation: fadeIn 0.3s ease;
}

.onboarding-complete-content {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  animation: scaleIn 0.3s ease;
}

.onboarding-complete-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.onboarding-complete-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.onboarding-complete-content p {
  font-size: 15px;
  color: #888;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.onboarding-complete-btn {
  background: #FFD700;
  border: none;
  color: #000;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-complete-btn:hover {
  background: #ffea00;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .onboarding-tooltip {
    max-width: calc(100vw - 40px);
    min-width: auto;
    margin: 0 20px;
    padding: 20px;
  }
  
  .onboarding-title {
    font-size: 18px;
  }
  
  .onboarding-description {
    font-size: 13px;
  }
  
  .onboarding-complete-content {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .onboarding-complete-icon {
    font-size: 48px;
  }
  
  .onboarding-complete-content h2 {
    font-size: 24px;
  }
}
