/* Ikigai Sensei - Styles */

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4B5563;
}

/* Chat messages animation */
.chat-bubble-user {
  animation: fadeIn 0.3s ease-in-out;
}
.chat-bubble-ai {
  animation: slideUp 0.4s ease-out;
}

/* Element tag in chat */
.element-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px 0;
  cursor: pointer;
  transition: all 0.2s;
}
.element-tag:hover {
  transform: scale(1.05);
}
.element-tag-passion { background: rgba(231,76,60,0.2); color: #E74C3C; border: 1px solid rgba(231,76,60,0.3); }
.element-tag-mission { background: rgba(46,204,113,0.2); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }
.element-tag-vocation { background: rgba(243,156,18,0.2); color: #F39C12; border: 1px solid rgba(243,156,18,0.3); }
.element-tag-profession { background: rgba(52,152,219,0.2); color: #3498DB; border: 1px solid rgba(52,152,219,0.3); }

/* Memory panel items */
.memory-item {
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  word-break: break-word;
}
.memory-item:hover {
  background: rgba(255,255,255,0.05);
}
.memory-item .delete-btn {
  opacity: 0;
  transition: opacity 0.2s;
  color: #EF4444;
  margin-left: auto;
  flex-shrink: 0;
}
.memory-item:hover .delete-btn {
  opacity: 1;
}

/* Ikigai diagram elements */
.ikigai-dot {
  transition: all 0.3s ease;
  cursor: pointer;
}
.ikigai-dot:hover {
  filter: brightness(1.5);
  transform: scale(1.3);
}

/* Quick reply buttons */
.quick-btn {
  transition: all 0.2s;
}
.quick-btn:hover {
  transform: translateY(-1px);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6B7280;
  animation: typing 1.4s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Phase transition */
.phase-transition {
  animation: phaseIn 0.5s ease-out;
}
@keyframes phaseIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Glow effect on center */
.ikigai-center-glow {
  animation: centerGlow 2s ease-in-out infinite alternate;
}
@keyframes centerGlow {
  0% { filter: drop-shadow(0 0 5px rgba(142,68,173,0.3)); }
  100% { filter: drop-shadow(0 0 15px rgba(142,68,173,0.6)); }
}

/* Responsive */
@media (max-width: 1024px) {
  #ikigai-diagram {
    position: sticky;
    top: 80px;
    z-index: 10;
  }
}

/* Label in the diagram */
.ikigai-label {
  font-size: 9px;
  fill: rgba(255,255,255,0.7);
  text-anchor: middle;
  pointer-events: none;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: rgba(15,15,26,0.95);
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #D1D5DB;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  transition: opacity 0.2s;
}
