/* ═══════════════════════════════════════════
   GIEESKRECIPES — AI Chat Panel
═══════════════════════════════════════════ */
.ai-chat-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.ai-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.ai-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-status {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: #4ECDA4;
  animation: pulse 2s infinite;
  display: inline-block;
}

/* Messages */
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-msg {
  display: flex;
  gap: 10px;
  animation: fadeUp 0.3s var(--ease-smooth) both;
}
.ai-msg.user { flex-direction: row-reverse; }

.msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.6;
}
.ai-msg.bot  .msg-bubble {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.ai-msg.user .msg-bubble {
  background: var(--emerald-dark);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 4px 0;
  align-items: center;
}
.typing-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-full);
  background: var(--text-muted);
  animation: pulse 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* AI recipe card in chat */
.ai-recipe-result {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-top: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.ai-recipe-result:hover {
  background: var(--bg-elevated);
  border-color: var(--gold);
}
.ai-recipe-result-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 4px;
}
.ai-recipe-result-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Input row */
.ai-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-dim);
  flex-shrink: 0;
}

.ai-input-row input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.ai-input-row input:focus { border-color: var(--emerald); }
.ai-input-row input::placeholder { color: var(--text-muted); }

.ai-input-row .btn-gold {
  width: 40px; height: 40px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  flex-shrink: 0;
  font-size: 17px;
}
