/* fullpage-chat.css — Full-page chat layout overrides, messages area, centered column, welcome state, input wrapper, textarea overrides, reset button, larger bubbles */
/* ============================================================
   FULL-PAGE CHAT (?tool=chat)
   Centered conversation column layout    
   ============================================================ */

.fullpage-chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--color-bg);
}

/* Messages area — centered column, scrollable */
.fullpage-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Center messages in a readable column                  */
.fullpage-chat-messages > .sidebar-chat-msg,
.fullpage-chat-messages > .sidebar-chat-typing,
.fullpage-chat-messages > .sidebar-chat-error,
.fullpage-chat-messages > .sidebar-chat-undo-toast {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Welcome state — centered hero */
.fullpage-chat .sidebar-chat-welcome {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullpage-chat-welcome-inner {
  text-align: center;
  max-width: 560px;
  padding: 32px 24px;
}

.fullpage-chat-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}

.fullpage-chat-title {
  font-size: 1.75rem;
  font-weight: 650;
  color: var(--color-text-primary);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.fullpage-chat-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.fullpage-chat-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fullpage-chat-suggestions .sidebar-chat-suggestion {
  padding: 14px 16px;
  font-size: 14px;
  border-radius: var(--radius-lg);
  text-align: center;
}

/* Input wrapper — fixed bottom, full width with centered inner */
.fullpage-chat-input-wrapper {
  padding: 16px 24px 24px;
  background: var(--color-bg);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
}

.fullpage-chat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-card);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 8px 8px 8px 16px;
  transition: border-color 200ms, box-shadow 200ms;
}

.fullpage-chat-input:focus-within {
  border-color: var(--chat-user-bg);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Override textarea styles inside full-page chat */
.fullpage-chat-input #sidebar-chat-textarea {
  border: none;
  padding: 8px 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  max-height: 160px;
}

.fullpage-chat-input #sidebar-chat-textarea:focus {
  border-color: transparent;
  box-shadow: none;
}

/* Reset button in full-page chat — inline left of input */
.fullpage-chat-input .sidebar-chat-reset {
  position: static;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Larger bubbles in full-page mode */
.fullpage-chat-messages .sidebar-chat-bubble {
  font-size: 1rem;
  line-height: 1.7;
  padding: 16px 20px;
}

.fullpage-chat-messages .sidebar-chat-avatar {
  width: 36px;
  height: 36px;
}

.fullpage-chat-messages .sidebar-chat-avatar img {
  width: 22px;
  height: 22px;
}

.fullpage-chat-messages .sidebar-chat-tts-btn {
  font-size: 13px;
}

.fullpage-chat-messages .sidebar-chat-insert-btn {
  font-size: 13px;
}

/* Responsive: mobile full-page chat */
@media (max-width: 767px) {
  .fullpage-chat-title {
    font-size: 1.375rem;
  }

  .fullpage-chat-suggestions {
    grid-template-columns: 1fr;
  }

  .fullpage-chat-input-wrapper {
    padding: 12px 12px 16px;
  }

  .fullpage-chat-input {
    border-radius: 12px;
    padding: 6px 6px 6px 12px;
  }
}

