/**
 * PCTechComVn — Gamification & Chat CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 16)
 *
 * Lucky Wheel Gamification + AI Chat Preview.
 */

/* ═══════════════════════════════════════════════
   1. LUCKY WHEEL
   ═══════════════════════════════════════════════ */
.lucky-wheel-trigger {
  position: fixed;
  bottom: 220px;
  left: 20px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 99;
  animation: lucky-pulse 2s infinite;
  transition: transform 0.2s;
}

.lucky-wheel-trigger:hover {
  transform: scale(1.1);
}

@keyframes lucky-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.lucky-wheel-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.lucky-wheel-stage {
  position: relative;
  width: 290px;
  height: 290px;
  margin: 15px auto;
  border: 8px solid var(--blue-dark);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  background: #f1f5f9;
}

/* ═══════════════════════════════════════════════
   2. AI CHAT PREVIEW
   ═══════════════════════════════════════════════ */
.ai-chat-preview {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 25px auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 380px;
}

.ai-chat-preview-header {
  background: var(--blue-dark);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}

.ai-chat-preview-status {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.ai-chat-preview-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--gray-50);
}

.ai-chat-preview-msg {
  max-width: 75%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: chat-fade-in 0.3s ease-out;
}

@keyframes chat-fade-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.ai-chat-preview-msg.bot {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.ai-chat-preview-msg.user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.ai-chat-preview-input-container {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-chat-preview-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.ai-chat-preview-input:focus {
  border-color: var(--blue);
}

.ai-chat-preview-send {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.ai-chat-preview-send:hover {
  background: var(--blue-dark);
}
