/* ============================================
   Bot Emotions — SVG face animation styles
   Visor pulse, idea flash, smooth transitions
   ============================================ */

/* Smooth transitions for SVG face elements */
.urbot-face-active [data-face="visor"] {
  transition: opacity 400ms ease-in-out;
}
.urbot-face-active [data-face="cheek"] {
  transition: opacity 500ms ease-in-out;
}

/* Visor pulse animation for excited/idea/proud emotions */
@keyframes visor-pulse {
  0%, 100% { opacity: var(--visor-opacity, 0.85); }
  50% { opacity: 1.0; filter: brightness(1.3); }
}
.visor-pulse {
  animation: visor-pulse 1.5s ease-in-out infinite;
}

/* Idea lightbulb flash */
@keyframes idea-flash {
  0% { filter: brightness(1); }
  15% { filter: brightness(1.6); }
  100% { filter: brightness(1); }
}
.urbot-face-idea {
  animation: idea-flash 0.6s ease-out;
}

/* Quick visor flash for idea moments */
@keyframes visor-flash {
  0%, 100% { opacity: var(--visor-opacity, 0.85); }
  30% { opacity: 1.0; filter: brightness(1.5); }
}
.visor-flash {
  animation: visor-flash 0.3s ease-out;
}

/* Suggestion card in chat */
.urbot-chat-suggestion {
  margin: 6px 0 4px 36px;
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.06);
  border-left: 3px solid rgba(139, 92, 246, 0.4);
  border-radius: 0 8px 8px 0;
  animation: chatMsgIn 0.3s ease;
}

.urbot-chat-suggestion-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 6px;
}

.urbot-chat-suggestion-header::before {
  content: '\1F4A1';
  font-size: 14px;
}

.urbot-chat-suggestion-confidence {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
}
.urbot-chat-suggestion-confidence.high { background: #22c55e; }
.urbot-chat-suggestion-confidence.medium { background: #eab308; }

.urbot-chat-suggestion-text {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
  margin-bottom: 6px;
}

.urbot-chat-suggestion-evidence {
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
  margin-bottom: 8px;
}

.urbot-chat-suggestion-actions {
  display: flex;
  gap: 8px;
}

.urbot-chat-suggestion-actions button {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.urbot-chat-suggestion-try {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}
.urbot-chat-suggestion-try:hover {
  background: rgba(139, 92, 246, 0.35);
}

.urbot-chat-suggestion-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}
.urbot-chat-suggestion-dismiss:hover {
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Reduced motion: skip all face animations */
@media (prefers-reduced-motion: reduce) {
  .urbot-face-active * {
    transition: none !important;
    animation: none !important;
  }
  .visor-pulse,
  .visor-flash,
  .urbot-face-idea {
    animation: none !important;
  }
}
