/* Shared Chat Message Styles - Used across all homepages */

:root {
  --assistant-bg: #e6f1ff;
  --assistant-fg: #1f2a44;
  --user-bg: #d8f3e9;
  --user-fg: #0f3d33;
}

/* Shared chat stream container */
.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

/* Base bubble */
.bubble {
  max-width: min(720px, 92vw);
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.6;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  word-wrap: break-word;
}

/* Assistant bubble — use the same light blue everywhere */
.bubble--assistant {
  background: var(--assistant-bg);
  color: var(--assistant-fg);
}

/* User bubble */
.bubble--user {
  background: var(--user-bg);
  color: var(--user-fg);
  align-self: flex-end;
}

/* Markdown/paragraph readability */
.bubble p {
  margin: 0 0 10px;
}

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

.bubble strong {
  font-weight: 700;
}

.bubble em {
  font-style: italic;
}

/* Respect line breaks when plain text arrives */
.bubble[data-format="plain"] {
  white-space: pre-line;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .bubble {
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    max-width: min(720px, 88vw);
  }
  
  .chat-stream {
    gap: 10px;
    padding: 6px 0;
  }
  
  /* Ensure upgrade invite is not bold on mobile */
  .upgrade-invite p {
    font-weight: 400 !important;
  }
}

/* CALM, SUBTLE UPGRADE COPY */
.upgrade-invite {
  margin-top: 16px;
  padding: 12px 16px;
  text-align: center;
  background-color: #f7fbf8;
  border-radius: 10px;
}

.upgrade-invite p {
  margin: 0 0 6px 0;
  line-height: 1.55;
  font-weight: 400 !important;
  font-size: clamp(16px, 2.4vw, 18px);
  color: #4b5563;
}

.upgrade-invite p:last-child {
  margin-bottom: 0;
}

.upgrade-invite a {
  color: #4b5563;
  text-decoration: underline;
}

.upgrade-invite a:hover {
  color: #48c9b0;
}

