/* #mayaStatus { 
  display: none !important;
}  */

.maya-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("bg-placeholder.jpg"); /* 👈 kendi görselin */
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.maya-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Roboto", sans-serif;
  animation: pulse 2.5s infinite ease-in-out;
}
.maya-launcher:hover {
  transform: scale(1.05);
}
.maya-icon {
  font-size: 18px;
}

/* Modal arkaplanı */
.maya-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  /* Bu satırı YORUM yap veya sil */
  /* background: rgba(255, 255, 255, 0.5); */

  /* Sadece blur bırak */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Modal kutusu */
.maya-box {
  background: rgba(255, 255, 255, 0.25); /* %75 beyaz, şeffaf */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari için */

  width: 90%;
  max-width: 1200px;
  height: 85vh;

  border-radius: 16px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  font-family: "Roboto", sans-serif;
}

/* Kapat butonu */
.maya-close {
  position: absolute;
  top: 2px;
  right: 6px;
  background: none;
  border: none;
  font-size: 45px;
  cursor: pointer;
  color: #0f172a;
}

/* Chat alanı + durum */
.maya-chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.maya-status {
  font-size: 12px;
  color: #666;
  padding: 6px 20px;
  border-top: 1px solid #eee;
}

/* Satır + avatar + balonlar */
.maya-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 12px 0;
}

/* Avatar */
.maya-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf2f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  flex: 0 0 40px;
  overflow: hidden;
  font-size: 14px;
}

.maya-avatar.user {
  font-size: 22px; /* ✅ emoji boyutu */
}
.maya-avatar.ai img {
  display: block;
}
.maya-avatar.ai img {
  width: 24px; /* ✅ içteki favicon genişliği */
  height: 24px; /* ✅ içteki favicon yüksekliği */
}

/* Balonlar (WhatsApp benzeri ~%78 genişlik) */
.maya-bubble {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 18px;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Satır hizalamaları */
.maya-row.user {
  justify-content: flex-end;
}
.maya-row.ai {
  justify-content: flex-start;
}

/* Kullanıcı balonu */
.maya-bubble.user {
  background: #f3f4f6;
  color: #4d4e52;
  border-top-right-radius: 8px;
  white-space: pre-wrap; /* satır sonlarını koru */
}

/* AI balonu */
.maya-bubble.ai {
  background: #4d4e52;
  color: #fff;
  border-top-left-radius: 8px;
  white-space: pre-wrap; /* satır sonlarını koru */
}

/* Markdown çıktıları (başlık, liste) */
.maya-bubble h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.2;
}
.maya-bubble ul {
  margin: 8px 0 0 20px;
  padding: 0;
}
.maya-bubble li {
  margin: 4px 0;
}

/* Alt giriş alanı (dock) */
.maya-dock {
  border-top: 1px solid #ddd;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.maya-dock textarea {
  flex: 1;
  font-size: 18px; /* Daha büyük font */
  padding: 14px 16px; /* İç boşluk arttı */
  border-radius: 12px;
  border: 1px solid #ccc;
  resize: none;
  outline: none;
  line-height: 1.5;
  min-height: 56px; /* Daha yüksek kutu */
  font-family: "Roboto", sans-serif;
}

.maya-actions {
  display: flex;
  gap: 6px;
}
.maya-actions button {
  padding: 6px 12px;
  border-radius: 8px;
  background: #eee;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.maya-actions .maya-primary {
  background: #0f172a;
  color: #fff;
}
.maya-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Basit spinner (status için) */
.maya-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ddd;
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* “Yazıyor…” balonu (3 nokta) */
.maya-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.maya-dots {
  display: inline-flex;
  gap: 6px;
}
.maya-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: mayaDot 1.2s infinite ease-in-out;
}
.maya-dot:nth-child(2) {
  animation-delay: 0.15s;
}
.maya-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.maya-quick-container {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.maya-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 900px;
}

.quick-q {
  width: 180px;
  height: 90px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;

  background: rgba(255, 255, 255, 0.25);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  padding: 14px;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.4;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.quick-q:hover {
  background: #f9f9f9;
  border-color: #d0d0d0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .maya-box {
    height: 80vh;
    width: 95%;
  }

  .maya-quick-questions {
    gap: 8px;
    padding: 0 12px;
  }

  .quick-q {
    width: 130px;
    height: 60px;
    font-size: 13px;
    padding: 8px;
    border-radius: 8px;
    line-height: 1.3;
  }

  .maya-quick-questions .quick-q.q-4 {
    display: none;
  }

  .maya-dock textarea {
    font-size: 15px;
    padding: 10px;
  }

  .maya-actions button {
    font-size: 13px;
    padding: 5px 10px;
  }
}
