/* ═══════════════════════════════════════════════════════════════
   OmicsLab — Offline AI Mentor styles
   ═══════════════════════════════════════════════════════════════ */

.mentor-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 4rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

/* ─── Header ─── */
.mentor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mentor-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(63,185,80,0.12);
  border: 1px solid rgba(63,185,80,0.3);
  color: #3fb950;
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.mentor-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e6edf3;
  margin: 0 0 0.4rem;
}
.mentor-subtitle {
  color: #8b949e;
  font-size: 0.88rem;
  line-height: 1.5;
}
.mentor-corpus-stat {
  background: rgba(63,185,80,0.08);
  border: 1px solid rgba(63,185,80,0.2);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  flex-shrink: 0;
}
.mentor-stat-n { display: block; font-size: 2rem; font-weight: 800; color: #3fb950; }
.mentor-stat-l { font-size: 0.68rem; color: #8b949e; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Category chips ─── */
.mentor-cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mentor-cat-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: #8b949e;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.mentor-cat-chip:hover {
  background: rgba(63,185,80,0.1);
  border-color: rgba(63,185,80,0.3);
  color: #3fb950;
}

/* ─── Chat feed ─── */
.mentor-feed {
  min-height: 380px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}
.mentor-feed::-webkit-scrollbar { width: 4px; }
.mentor-feed::-webkit-scrollbar-track { background: transparent; }
.mentor-feed::-webkit-scrollbar-thumb { background: #30363d; border-radius: 2px; }

/* ─── Messages ─── */
.mentor-msg { display: flex; }
.mentor-msg-user { justify-content: flex-end; }
.mentor-msg-bot  { justify-content: flex-start; }

.mentor-user-bubble {
  background: rgba(63,185,80,0.12);
  border: 1px solid rgba(63,185,80,0.25);
  color: #e6edf3;
  border-radius: 14px 14px 2px 14px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  max-width: 70%;
  line-height: 1.45;
}

.mentor-bot-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 90%;
}
.mentor-bot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mentor-bot-bubble {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px 14px 14px 14px;
  padding: 0.875rem 1rem;
  flex: 1;
}

/* Welcome message */
.mentor-welcome { padding: 1.25rem; }
.mentor-welcome-title {
  font-size: 1rem;
  font-weight: 800;
  color: #e6edf3;
  margin-bottom: 0.4rem;
}
.mentor-welcome-sub {
  font-size: 0.82rem;
  color: #8b949e;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.mentor-starter-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.6rem;
}
.mentor-starters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mentor-starter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #8b949e;
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.mentor-starter-btn:hover {
  background: rgba(63,185,80,0.08);
  border-color: rgba(63,185,80,0.25);
  color: #c9d1d9;
}

/* Answer content */
.mentor-category-tag {
  display: inline-block;
  background: rgba(63,185,80,0.1);
  border: 1px solid rgba(63,185,80,0.2);
  color: #3fb950;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.mentor-answer-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 0.5rem;
}
.mentor-answer-body {
  font-size: 0.82rem;
  color: #8b949e;
  line-height: 1.65;
}
.mentor-answer-body strong { color: #c9d1d9; }
.mentor-answer-body code {
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #79c0ff;
}
.mentor-answer-body a { color: #58a6ff; text-decoration: none; }
.mentor-answer-body a:hover { text-decoration: underline; }

/* Follow-up suggestions */
.mentor-follow-ups {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mentor-follow-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}
.mentor-follow-chip {
  display: inline-block;
  margin: 0 0.3rem 0.3rem 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: #8b949e;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.mentor-follow-chip:hover { background: rgba(88,166,255,0.1); color: #58a6ff; }

/* Browse list */
.mentor-browse-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.mentor-browse-q {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 7px;
  color: #8b949e;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.mentor-browse-q:hover { background: rgba(255,255,255,0.07); color: #c9d1d9; }
.mentor-browse-more { font-size: 0.7rem; color: #6e7681; margin-top: 0.5rem; }

/* ─── Input area ─── */
.mentor-input-area {
  position: sticky;
  bottom: 0;
  background: #080c10;
  padding: 0.75rem 0 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mentor-input-wrap {
  display: flex;
  align-items: center;
  background: #0d1117;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  gap: 0.5rem;
  padding: 0 0.5rem 0 0.875rem;
  transition: border-color 0.15s;
}
.mentor-input-wrap:focus-within { border-color: #3fb950; }
.mentor-input-icon { color: #6e7681; flex-shrink: 0; }
.mentor-input {
  flex: 1;
  background: none;
  border: none;
  color: #c9d1d9;
  font-size: 0.875rem;
  padding: 0.7rem 0;
  outline: none;
}
.mentor-input::placeholder { color: #6e7681; }
.mentor-send-btn {
  background: #3fb950;
  border: none;
  border-radius: 8px;
  color: #0d1117;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, transform 0.1s;
}
.mentor-send-btn:hover { background: #3dae4a; transform: scale(1.05); }
.mentor-input-hint {
  font-size: 0.68rem;
  color: #6e7681;
  margin-top: 0.4rem;
  text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .mentor-wrap { padding: 2rem 1rem; }
  .mentor-title { font-size: 1.4rem; }
  .mentor-bot-wrap { max-width: 100%; }
  .mentor-user-bubble { max-width: 90%; }
}
