/* Luma AI Specific Styles - Updated with Purple Theme */

/* Chatbot Container */
.luma-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.luma-chatbot.active {
  transform: translateY(0);
}

.luma-chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  z-index: 1001;
  transition: all 0.3s ease;
}

.luma-chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.4);
}

/* Quest System */
.quest-container {
  background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

.quest-progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quest-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED, #8B5CF6);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.quest-question {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease-out;
}

.quest-question.active {
  opacity: 1;
  transform: translateX(0);
}

.quest-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 0.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quest-option:hover {
  border-color: #7C3AED;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

.quest-option.selected {
  border-color: #7C3AED;
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: white;
}

.quest-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.quest-option:hover::before {
  left: 100%;
}

/* Quest Results */
.quest-result {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease-out;
}

.quest-result.show {
  opacity: 1;
  transform: scale(1);
}

.quest-result-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

/* Luma Avatar */
.luma-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Chat Messages */
.luma-message {
  background: #f1f5f9;
  border-radius: 18px 18px 18px 4px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  max-width: 80%;
  animation: fadeInUp 0.3s ease-out;
}

.user-message {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: white;
  border-radius: 18px 18px 4px 18px;
  margin-left: auto;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Additional Quest Styles for Consistency */
.quest-step-indicator {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.quest-navigation-btn {
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

.quest-navigation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.quest-navigation-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quest-match-score {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  font-size: 2rem;
}

.quest-program-card {
  background: white;
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.quest-program-card:hover {
  border-color: #7C3AED;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.quest-program-card.featured {
  border-color: #7C3AED;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .luma-chatbot {
    width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
  }

  .quest-container {
    padding: 1rem;
    margin: 1rem 0;
  }

  .quest-option {
    padding: 0.75rem 1rem;
  }

  .quest-step-indicator {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .quest-navigation-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}