/* chat.css - Hestini Midnight Dialogue Frames */

.hestini-chat-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.hestini-chat-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d97706, var(--primary));
}

.chat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.875rem;
  margin-bottom: 1.5rem;
}

.chat-partner {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.partner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

.partner-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

.partner-title {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-entry {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.chat-entry.user {
  align-items: flex-end;
}

.chat-entry.agent {
  align-items: flex-start;
}

.entry-speaker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 0.25rem;
}

.entry-bubble {
  max-width: 94%;
  padding: 1.125rem 1.375rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.chat-entry.user .entry-bubble {
  background-color: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-entry.agent .entry-bubble {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.entry-bubble p {
  margin-bottom: 0.85em;
  text-align: left;
}

.entry-bubble p:last-child {
  margin-bottom: 0;
}

.entry-bubble strong {
  color: inherit;
}

.entry-bubble .styled-list {
  margin: 0.75rem 0 1rem;
}

.entry-bubble .styled-list > li {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.entry-bubble .styled-list.ordered > li::before {
  width: 1.375rem;
  height: 1.375rem;
  font-size: 0.75rem;
}

/* Action Checklist Card */
.action-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 3rem 0 1.5rem;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-sans);
}

.action-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.action-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy-action {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-copy-action:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-medium);
}

/* ==================================================== */
/* NOVEL IN-LINE AI & EXECUTIVE CHAT BUBBLES */
/* ==================================================== */

.chat-bubble {
  display: flex;
  gap: 1.15rem;
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 18px -3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.chat-bubble:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1);
}

/* AI Agent Speech Card */
.chat-bubble.ai-bubble {
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.05) 0%, rgba(30, 41, 59, 0.02) 100%);
  border-left: 4px solid #ea580c;
  border-color: rgba(234, 88, 12, 0.28);
}

.chat-bubble.ai-hestini {
  border-left: 4px solid #ea580c;
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.07) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.chat-bubble.ai-athena {
  border-left: 4px solid #0284c7;
  background: linear-gradient(145deg, rgba(2, 132, 199, 0.07) 0%, rgba(56, 189, 248, 0.03) 100%);
}

.chat-bubble.ai-hermes {
  border-left: 4px solid #059669;
  background: linear-gradient(145deg, rgba(5, 150, 105, 0.07) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.chat-bubble.ai-hephaestus {
  border-left: 4px solid #d97706;
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.07) 0%, rgba(245, 158, 11, 0.03) 100%);
}

.chat-bubble.ai-themis {
  border-left: 4px solid #7c3aed;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.07) 0%, rgba(139, 92, 246, 0.03) 100%);
}

/* Human Prompt Speech Card */
.chat-bubble.human-bubble {
  background-color: var(--bg-card);
  border-left: 4px solid var(--primary);
  border-color: var(--border-medium);
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
}

.ai-bubble .chat-avatar {
  background: linear-gradient(135deg, #ea580c, #b45309);
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.35);
  border: none;
}

.ai-athena .chat-avatar {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.35);
}

.ai-hermes .chat-avatar {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 14px rgba(5, 150, 105, 0.35);
}

.ai-hephaestus .chat-avatar {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.35);
}

.ai-themis .chat-avatar {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 0 14px rgba(124, 58, 237, 0.35);
}

.chat-content {
  flex: 1;
  min-width: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.chat-speaker {
  font-family: var(--font-display, sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chat-role-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
}

.ai-bubble .chat-role-badge {
  background-color: rgba(234, 88, 12, 0.12);
  color: #ea580c;
  font-weight: 700;
}

.ai-athena .chat-role-badge {
  background-color: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.ai-hermes .chat-role-badge {
  background-color: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.ai-hephaestus .chat-role-badge {
  background-color: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.ai-themis .chat-role-badge {
  background-color: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.chat-text {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-main);
  text-align: justify;
}

