/* css/ai-style.css - CFM Trade Assistant Kesin İzolasyon ve Gizleme Kuralları */

/* Kök Kapsayıcı Katman */
.cfm-ai-workspace-root {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 999999 !important;
  direction: ltr !important;
}

/* 🤖 Modern İnsansı Robot Butonu */
.ai-chat-toggle-btn {
  position: fixed !important;
  bottom: 25px !important;
  left: 25px !important;
  width: 65px !important;
  height: 65px !important;
  background-color: #0b2545 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.35) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  border: 2px solid #00b4d8 !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ai-chat-toggle-btn:hover {
  background-color: #00b4d8 !important;
  border-color: #0b2545 !important;
  transform: scale(1.08) rotate(-8deg) !important;
}

/* 💬 Girişte Duran Karşılama Baloncuğu */
.ai-chat-welcome-bubble {
  position: fixed !important;
  bottom: 35px !important;
  left: 105px !important;
  background-color: #ffffff !important;
  color: #0b2545 !important;
  padding: 12px 20px !important;
  border-radius: 20px !important;
  border-bottom-left-radius: 2px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
  z-index: 999998 !important;
  border: 1px solid rgba(11, 37, 69, 0.1) !important;
  display: block !important; /* Başlangıçta görünür */
}

.ai-chat-welcome-bubble p {
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* 💻 🎬 VAYSAILAN OLARAK GİZLİ VE İDEAL ÖLÇÜDEKİ CHAT PENCERESİ */
.ai-chat-window {
  position: fixed !important;
  bottom: 100px !important;
  left: 25px !important;
  width: 380px !important; /* Ekranı kaplamaması için sabitlendi */
  height: 550px !important; /* İdeal kurumsal yükseklik */
  background-color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(11, 37, 69, 0.2) !important;
  z-index: 999999 !important;
  display: none !important; /* 🎯 HEP AÇIK KALMASINI ÖNLEYEN KESİN GİZLEME EMRİ */
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid rgba(11, 37, 69, 0.08) !important;
}

/* 🎯 Tıklandığında Pencereyi Açacak Olan Tetikleyici Sınıf */
.ai-chat-window.is-visible {
  display: flex !important; /* JavaScript tetikleyince görünür olur */
}
/* Pencere Başlık Alanı Düzeni */
.ai-chat-window-header {
  background-color: #0b2545 !important;
  color: #ffffff !important;
  padding: 15px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 2px solid #00b4d8 !important;
}

.ai-chat-bot-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ai-bot-avatar {
  width: 38px !important;
  height: 38px !important;
  background-color: #00b4d8 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  box-shadow: 0 2px 6px rgba(0, 180, 216, 0.3) !important;
}

.ai-chat-close-btn {
  background: none !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 28px !important;
  cursor: pointer !important;
  line-height: 1 !important;
}

/* Mesajlaşma Gövdesi ve Akış Kuralları */
.ai-chat-messages {
  flex: 1 !important;
  padding: 20px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  background-color: #f8fafc !important;
}

.ai-msg {
  max-width: 82% !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  font-family: "Open Sans", sans-serif !important;
  word-wrap: break-word !important;
}

.ai-msg-bot {
  background-color: #ffffff !important;
  color: #334155 !important;
  align-self: flex-start !important;
  border-bottom-left-radius: 2px !important;
  border: 1px solid rgba(11, 37, 69, 0.05) !important;
}

.ai-msg-user {
  background-color: #0b2545 !important;
  color: #ffffff !important;
  align-self: flex-end !important;
  border-bottom-right-radius: 2px !important;
}

/* Alt Form ve Mesaj Giriş Alanları */
.ai-chat-input-container {
  padding: 15px 20px !important;
  background-color: #ffffff !important;
  border-top: 1px solid rgba(11, 37, 69, 0.06) !important;
}

.ai-chat-input-container form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background-color: #f1f5f9 !important;
  padding: 6px 10px !important;
  border-radius: 30px !important;
}

.ai-chat-input-container input {
  flex: 1 !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  padding: 8px 5px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
}

.ai-chat-input-container button {
  background-color: #0b2545 !important;
  color: #ffffff !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ai-typing {
  color: #64748b !important;
  font-style: italic !important;
}

/* Mobil Cihaz Tam Ekran Uyumluluk Kuralları (Responsive) */
@media (max-width: 480px) {
  .ai-chat-window {
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
}
/* ==========================================================================
   🎯 CFM EXPORT PORTFOLIO NAV-DROPDOWN ACCORDION - LUXURY REDESIGN
   ========================================================================== */

/* Portfolio Dropdown kutusunu sitenizin orijinal menü genişliğine eşitleme */
.nav-dropdown-menu .portfolio-accordion-box {
  width: 260px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 4px !important;
  box-shadow: 0 15px 40px rgba(11, 37, 69, 0.15) !important;
  overflow: hidden !important;
  border: 1px solid rgba(11, 37, 69, 0.06) !important;
}

/* 📂 Kurumsal Akordiyon Ana Sektör Başlıkları */
.portfolio-acc-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 22px !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #4b5563 !important; /* Orijinal menü gri tonu */
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border-bottom: 1px solid #f0f2f5 !important;
  user-select: none !important;
}

.portfolio-acc-header b {
  color: #0b2545 !important;
  font-weight: 700 !important;
  margin-right: 8px !important;
}

.portfolio-acc-header i.acc-trigger-icon {
  font-size: 11px !important;
  color: #9ca3af !important;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s !important;
}

/* Üst Menü Dilinde Hover ve Aktif Genişleme Mühürleri */
.portfolio-acc-header:hover,
.portfolio-acc-group.is-expanded .portfolio-acc-header {
  background-color: #fafbfc !important;
  color: #0b2545 !important; /* Orijinal parlak lacivert */
  font-weight: 700 !important;
}

.portfolio-acc-group.is-expanded .portfolio-acc-header i.acc-trigger-icon {
  transform: rotate(180deg) !important;
  color: #00b4d8 !important;
}

/* 🔒 Pürüzsüz Slayt Geçişli Alt Ürün Gövdesi */
.portfolio-acc-body {
  max-height: 0 !important;
  overflow: hidden !important;
  background-color: #f8fafc !important;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portfolio-acc-group.is-expanded .portfolio-acc-body {
  max-height: 300px !important; /* Dinamik esneme payı */
  border-bottom: 1px solid #f0f2f5 !important;
}

/* 🔗 Katalog Sayfasına Giden Lüks Alt Linkler */
.portfolio-acc-body a {
  display: block !important;
  padding: 11px 22px 11px 36px !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 13px !important;
  color: #6b7280 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  border-bottom: none !important;
}

.portfolio-acc-body a:hover {
  color: #00b4d8 !important; /* CFM Parlak Mavi */
  background-color: #ffffff !important;
  padding-left: 42px !important;
  font-weight: 600 !important;
}
