/**
 * 메인 스타일시트
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

* {
  font-family: 'Noto Sans KR', sans-serif;
}

html, body {
  height: 100%;
}

.chat-container {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.message {
  margin-bottom: 1rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.ai {
  display: flex;
  justify-content: flex-start;
}

.message.user {
  display: flex;
  justify-content: flex-end;
}

.message-bubble {
  max-width: 80%;
  padding: 0.875rem 1.25rem;
  border-radius: 1.25rem;
  word-wrap: break-word;
}

.message.ai .message-bubble {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-left-radius: 0.25rem;
}

.message.user .message-bubble {
  background: #e5e7eb;
  color: #1f2937;
  border-bottom-right-radius: 0.25rem;
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1.25rem;
  max-width: fit-content;
}

.typing-indicator.active {
  display: flex;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

.input-container {
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
  background: white;
}

.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 640px) {
  .message-bubble {
    max-width: 85%;
  }
}
