/* =========================
   STYLE
========================= */

:root {
  --primary: #00724a;     
  --primary-dark: #004d31;   
  --primary-soft: #e6f4ee;   
  --accent: #00a86b;         
  --background: #f2f6f4;     
  --surface: #ffffff;
  --text: #0f1a14;
  --muted: #5e6b63;
  --border: #d9e3dd;
}

/* =========================
   BODY
========================= */

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background-image: url(images/Background.png);
  background-size: cover;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* =========================
   BACKGROUND
========================= */

.floating-words {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.floating-words span {
  position: absolute;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  animation: float 26s linear infinite;
  user-select: none;
}

@keyframes float {
  0% { transform: translateY(110vh); }
  100% { transform: translateY(-120vh); }
}

/* =========================
  HEADER
========================= */

.typed-words-section {
  margin: 20px;
  padding: 18px 22px;

  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;

  border-radius: 14px;
  text-align: center;
  max-width: 440px;
  width: 90%;

  box-shadow: 0 10px 26px rgba(0, 114, 74, 0.25);
}

.typed-words-section h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.typed-words-section span {
  border-right: 2px solid rgba(255,255,255,0.8);
  padding-left: 6px;
}

/* =========================
   CHAT CONTAINER
========================= */

.chat-container {
  width: 90%;
  max-width: 440px;

  background: var(--surface);
  border-radius: 16px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 114, 74, 0.08);

  overflow: hidden;
  z-index: 2;
}

/* =========================
   HEADER
========================= */

.chat-header {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 80%;
  object-fit: contain;
  filter: brightness(1.1);
}

.chat-header h1 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

/* =========================
   CHAT
========================= */

.chat-box {
  padding: 14px;
  background: linear-gradient(180deg, #f9fbfa, #f4f8f6);
  max-height: 60vh;
  overflow-y: auto;
}

/* =========================
   MESSAGES
========================= */

.bot-message,
.user-message {
  margin: 10px 0;
  padding: 11px 14px;

  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.4;
  max-width: 85%;

  animation: fadeIn 0.18s ease-in;
}

/* Message */
.bot-message {
  background: var(--primary-soft);
  color: var(--text);
  border-left: 4px solid var(--primary);
}

/* User message */
.user-message {
  background: #dff3ea;
  border-right: 4px solid var(--primary);
  margin-left: auto;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   INPUT
========================= */

.chat-input {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.chat-input input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 26px;
  font-size: 0.9rem;
  outline: none;
}

.chat-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 114, 74, 0.15);
}

/* Button */
.chat-input button {
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 26px;

  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;

  font-weight: 600;
  cursor: pointer;

  transition: transform 0.15s ease, background 0.2s ease;
}

.chat-input button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* =========================
   LEARNING PATHS
========================= */

.chat-prompts {
  margin: 16px;
  padding: 14px;

  background: var(--surface);
  border-radius: 14px;

  width: 90%;
  max-width: 440px;

  text-align: center;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.chat-prompts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chat-prompts a {
  display: block;
  padding: 10px 12px;
  margin: 6px 0;

  background: var(--primary-soft);
  color: var(--primary);

  border-radius: 22px;
  text-decoration: none;
  font-weight: 600;

  transition: all 0.2s ease;
}

.chat-prompts a:hover {
  background: var(--primary);
  color: white;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 20px;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
}
