/* ======================================= */
/* TEMEL YAPI VE POP-UP KONTROLÜ           */
/* ======================================= */

#chatbot-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  border-radius: 15px;
  overflow: hidden;
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-in-out;
}
#chatbot-popup:not(.chatbot-hidden) {
  transform: scale(1);
}
.chatbot-hidden {
  display: none;
}

/* ======================================= */
/* CHATBOT İÇ YAPISI                       */
/* ======================================= */

#chat-widget {
  width: 370px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-height: 700px;
}

/* --- BAŞLIK BÖLÜMÜ --- */
#chat-header {
  background: #f1f5f9;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
#chat-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#chat-header h1 { margin: 0; font-size: 1rem; font-weight: 700; color: #1e293b; }
#chat-header h2 { margin: 0; font-size: 0.75rem; font-weight: 500; color: #64748b; }
#chat-header span { font-size: 12px; color: #16a34a; display: flex; align-items: center; gap: 5px; }
.online-indicator { display: inline-block; width: 8px; height: 8px; background-color: #22c55e; border-radius: 50%; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
#chat-header #chatbot-kapat-btn { margin-left: auto; background: none; border: none; font-size: 24px; cursor: pointer; color: #888; padding: 0 5px; }
#chat-header #chatbot-kapat-btn:hover { color: #333; }

/* --- YENİ: RE/MAX MARKA BANDI --- */
.remax-brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #f8f9fa; /* Çok açık gri */
  padding: 6px 10px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0; /* Küçülmesini engelle */
}
.remax-brand-bar span {
  font-size: 11px;
  font-weight: 600;
  color: #6c757d; /* Nötr gri */
}
.remax-brand-bar img {
  height: 29px; /* Logonun yüksekliği */
  width: auto;
}

/* --- MESAJLAR ALANI --- */
#chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #ffffff;
}
.message { padding: 10px 15px; border-radius: 18px; max-width: 85%; line-height: 1.5; word-wrap: break-word; }
.user-message { background-color: #007bff; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-message { background-color: #e2e8f0; color: #333; align-self: flex-start; border-bottom-left-radius: 4px; }
.greeting-title { font-weight: 700; font-size: 1.1em; color: #0f172a; margin-bottom: 4px; }

/* --- YAZI GİRİŞ FORMU --- */
#chat-input-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
  background: #f7f7f7;
  flex-shrink: 0;
}
#user-input { flex-grow: 1; border: 1px solid #e0e0e0; background: #fff; border-radius: 20px; padding: 10px 15px; font-size: 14px; font-family: inherit; resize: none; overflow-y: hidden; box-sizing: border-box; line-height: 1.5; min-height: 42px; max-height: 120px; }
#user-input:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); }
#chat-input-form button { background-color: #007bff; color: white; border: none; border-radius: 50%; width: 42px; height: 42px; flex-shrink: 0; cursor: pointer; transition: background-color 0.2s; display: flex; align-items: center; justify-content: center; }
#chat-input-form button:hover { background-color: #0056b3; }
#chat-input-form button i { font-size: 18px; }

/* --- İLAN SLIDER STİLLERİ (Değişiklik yok) --- */
.ilan-slider-container { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 10px; }
.ilan-slider { display: flex; padding: 10px 0; gap: 15px; }
.ilan-card { flex: 0 0 140px; border-radius: 12px; overflow: hidden; background-color: #ffffff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); transition: transform 0.2s ease-in-out; border: 1px solid #eee; }
.ilan-card:hover { transform: translateY(--5px); }
.ilan-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.ilan-card .fiyat { font-size: 15px; font-weight: 600; padding: 12px 10px; color: #333; text-align: left; }
.ilan-card .fiyat::before { content: "Fiyat:"; display: block; font-weight: normal; font-size: 13px; color: #6c757d; margin-bottom: 2px; }
.slider-message .slider-cta { font-size: 14px; padding: 15px; margin-top: 10px; background-color: #f9f9f9; border-top: 1px solid #e9e9e9; border-radius: 0 0 12px 12px; }

.message-example {
  background-color: rgba(255, 255, 255, 0.5); /* Hafif beyaz şeffaf arka plan */
  border-left: 3px solid #007bff; /* Solunda mavi bir çizgi */
  padding: 10px;
  margin-top: 12px;
  border-radius: 0 8px 8px 0; /* Sol tarafı keskin, sağ tarafı yuvarlak */
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: #333;
}

.message-example p {
  margin: 0;
}

.message-example p strong {
  font-style: normal;
  font-weight: 600;
}