/* Gliim P.A. — answer bubbles, markdown and rating row.
   The Support page mounts these inside the Ping layout (messages.css). */

.pa-starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.pa-hero-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lg); }

/* Chips */
.pa-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pa-chip:hover { border-color: var(--brand-primary); color: var(--text-primary); }

/* Answer bubble */
.pa-answer { display: flex; flex-direction: column; align-items: flex-start; margin: 4px 0; }
.pa-answer-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.pa-answer-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.pa-answer-body {
  max-width: 88%;
  font-size: 15px; line-height: 1.7; color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 16px 16px 16px;
  padding: 14px 16px;
}
.pa-answer-body p { margin-bottom: 12px; }
.pa-answer-body p:last-child { margin-bottom: 0; }
.pa-heading { color: var(--text-primary); font-weight: 700; margin: 18px 0 8px; }
.pa-heading:first-child { margin-top: 0; }
.pa-list { margin: 0 0 12px 20px; }
.pa-list li { margin-bottom: 6px; }
.pa-code {
  background: var(--bg-tertiary);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--text-primary);
}
.pa-pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  margin-bottom: 12px;
}
.pa-pre code { font-family: var(--font-mono, monospace); font-size: 13px; line-height: 1.6; color: var(--text-primary); }
.pa-error { color: var(--error); font-size: 14px; margin-bottom: 10px; }

/* Thinking dots */
.pa-typing { display: flex; gap: 5px; padding: 6px 0; }
.pa-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: pa-bounce 1.2s infinite ease-in-out;
}
.pa-typing span:nth-child(2) { animation-delay: 0.15s; }
.pa-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes pa-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Reply rating — one row directly under each answer */
.pa-feedback { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pa-fb-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pa-fb-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }
.pa-fb-btn[data-state="like"].active { color: var(--brand-primary); border-color: var(--brand-primary); background: var(--bg-tertiary); }
.pa-fb-btn[data-state="dislike"].active { color: var(--error); border-color: var(--error); background: var(--bg-tertiary); }

@media (max-width: 768px) {
  .pa-answer-body { max-width: 100%; }
}
