/* -------- qa-widget.css (tema yazı tipi + gri kullanıcı mesajı + turuncu buton) -------- */

/* Yalnızca widget alanını etkile */
#qa-root {
  color: #555; /* genel metin rengi */
}

/* Kutu */
#qa-root .qa-container {
  box-sizing: border-box;
  width: min(720px, 92vw);
  margin: 24px auto;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  padding: 12px;
}

/* Mesaj alanı */
#qa-root .qa-messages {
  max-height: none;
  overflow: visible;
  padding: 6px 2px;
  margin-bottom: 8px;
  color: #555;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#qa-root .qa-messages::after {
  content: "";
  display: block;
  clear: both;
}

/* Balonlar (mesaj kutuları) */
#qa-root .qa-bubble {
  display: inline-block;
  clear: both;
  padding: 12px 14px;
  margin: 6px 0;
  border-radius: 12px;
  line-height: 1.5;
  max-width: 100%;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #333;
  font-size: 16px;
}

/* Kullanıcı mesajı (gri zemin) */
#qa-root .qa-user {
  float: right;
  background: #f0f0f0; /* açık gri */
  border-bottom-right-radius: 4px;
}
#qa-root .qa-user::before {
  content: "❓ - ";
  margin-right: 4px;
}

/* Bot mesajı (daha açık, kutulu görünüm) */
#qa-root .qa-bot {
  float: left;
  background: #fdfdfd;
  border: 1px solid #ddd;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
#qa-root .qa-bot::before {
  content: "💬 ";
  margin-right: 4px;
}

/* Hata mesajı */
#qa-root .qa-error {
  float: left;
  background: #fdecec;
  border-bottom-left-radius: 4px;
}

/* Form (soru gönderme alanı) */
#qa-root .qa-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#qa-root .qa-input {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 15px;
  color: #555;
}
#qa-root .qa-input::placeholder {
  color: #777;
}
/* Odaklanınca turuncu border olmasın */
#qa-root .qa-input:focus {
  outline: none;
  border-color: #d1d5db;
}

/* Gönder butonu (turuncu) */
#qa-root .qa-btn {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #ff9b04;
  background: #ff9b04;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
}
#qa-root .qa-btn:disabled {
  opacity: .6;
  cursor: default;
}
#qa-root .qa-btn:focus {
  outline: none;
}

/* En yakın cevaplar alanı */
#qa-root .qa-suggestions {
  clear: both;
  margin: 6px 0 2px;
  color: #555;
}
#qa-root .qa-sug-title {
  font-weight: 600;
  margin: 4px 0 6px;
  color: #555;
}
#qa-root .qa-sug-title::before {
  content: "🔎 ";
  margin-right: 4px;
}

/* Liste */
#qa-root .qa-suggestions ul,
#qa-root .qa-suggestions li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#qa-root .qa-suggestions li {
  margin-bottom: 10px;
}

/* Açılır liste ok simgesi */
#qa-root .qa-suggestions summary::-webkit-details-marker,
#qa-root .qa-suggestions summary::marker {
  display: none;
  content: none;
}
#qa-root .qa-suggestions summary {
  position: relative;
  padding-left: 26px;
  cursor: pointer;
  color: #555;
}
#qa-root .qa-suggestions details > summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  font-size: 16px;
  color: #ff9b04;
  font-weight: bold;
}
#qa-root .qa-suggestions details[open] > summary::before {
  content: "▾";
  color: #ff9b04;
}

/* Önerilen cevap kartı */
#qa-root .qa-sug-answer {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  margin-top: 6px;
  color: #555;
}
#qa-root .qa-sug-answer::before {
  content: "✅ ";
  margin-right: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  #qa-root .qa-container {
    padding: 10px;
  }
  #qa-root .qa-input {
    height: 40px;
    font-size: 14px;
  }
  #qa-root .qa-btn {
    height: 40px;
    padding: 0 12px;
  }
  #qa-root .qa-bubble {
    font-size: 14px;
  }
}

/* Üst görsel */
.qa-page-img {
  display: block;
  margin: 24px auto 10px auto;
  width: 40%;
  max-width: 160px;
  height: auto;
}
@media (max-width: 480px) {
  .qa-page-img {
    width: 55%;
    max-width: 120px;
    margin: 16px auto 8px auto;
  }
}
