/* Bu ürün hakkında yapay zekaya sor butonu */
.ua-btn {
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #ddd;
  background:#fff;
  cursor:pointer;
  font-weight:600;
  background: #2563eb; /* kullandığınız mavi */
  color: #ffffff;
  border: 0;
}


/* Hover durumu (web için biraz koyu)
/* Bu ürün hakkında yapay zekaya sor butonu 
üstüne gelince olduğu renk*/
.ua-btn:hover {
  background: #1e40af;
}

.ua-panel {
  position:fixed;
  top:0;
  right:-420px;
  width:420px;
  height:100vh;
  background:#fff;
  border-left:1px solid #eee;
  transition:right .3s;
  z-index:9999;
  padding:14px;
  padding-top: 48px !important;  /* Kapat butonuyla merhaba ben ürün asistanınız cümlesi arasına boşluk koyduk*/
}

.ua-panel.is-open { right:0; }

/* Örnek soru butonları - tema override fix */
.ua-chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #ffffff;
  margin: 3px;
  cursor: pointer;
  text-transform: capitalize;
  color: #000;
  opacity: 1 ;
  visibility: visible; 
  font-size: 13px;           /* biraz küçült */
  font-style: italic;        /* italik */
  text-transform: capitalize;
  color: #334155;            /* soft koyu gri (tailwind slate-700) */
}






.ua-close {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #0f172a;
}

.ua-close-text {
  font-size: 13px;
}


/*Mobil için kapat butonu ve örnek soruları düzenleme */ 
@media (max-width: 768px) {

  /* Paneli gerçekten mobil panel gibi hissettir */
  .ua-panel {
    width: 100%;
    height: 100vh;
    padding: 20px 16px;
    box-sizing: border-box;
  }

  /* Header alanı */
  .ua-header {
    margin-bottom: 16px;
    padding-top: 44px;
    padding-right: 40px;
    position: relative;
  }

   

  .ua-header-text {
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    margin: 0 auto;
    max-width: 90%;
    margin-top: 16px;
  }

  /* Kapat butonu dengeli */
  .ua-close {
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 13px;
   
  }
  
  .ua-panel {
    padding-top: 48px !important;  /* Kapat butonuyla merhaba ben ürün asistanınız cümlesi arasına boşluk koyduk*/
  }

  /* Örnek soru alanı */
  .ua-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 20px;
  }

  .ua-chip {
    font-size: 13px;
    padding: 8px 14px;
    text-align: center;
    white-space: normal;
  }




}

/*SOR butonu düzenlemeleri*/
 .ua-send {
  width: 100%;
  padding: 16px;
  border-radius: 44px;
  margin-top: 12px; /* Yukarı ile mesafe koyar */ 
  
  background-color: #2563eb;
  color: #ffffff;

  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;

  border: none;
  cursor: pointer;


  opacity: 1 !important;
}





/* Soru sorma alanı */
#ua-question {
  width: 100%;
  min-height: 90px;
  padding: 14px 16px;

  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;

  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;

  box-sizing: border-box;
  resize: none;

  transition: 
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

/* Hover */
#ua-question:hover {
  border-color: #94a3b8;
}

/* Focus */
#ua-question:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Placeholder */
#ua-question::placeholder {
  color: #64748b;
}

/* Soru alanını öne çıkar */
#ua-question {
  background: #ffffff;
  border: 2px solid #2563eb; /* ana mavi */
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

/* Üstüne gelince daha da belirgin */
#ua-question:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}




/* DESKTOP KAPAT BUTONU YUKARI */
@media (min-width: 769px) {

  .ua-close {
    position: absolute;
    top: 12px;
    left: 12px;   /* SOLDAN */
    right: auto;  /* SAĞI SIFIRLA */
    z-index: 10;
  }
  
  .ua-panel {
  padding-top: 58px !important;  /* Kapat butonuyla merhaba ben ürün asistanınız cümlesi arasına boşluk koyduk*/
}

}

@media (max-width: 768px) {
  .ua-close {
    position: absolute;
    top: 15px;
    right: 8px;
    left: auto;
  }
}







/* Yapay zeka cevabı - scroll'lu kutu */
#ua-answer {
  margin-top: 16px;
  padding: 16px;

  background: #ffffff;
  border: 2px solid #22c55e; /* soft yeşil */
  border-radius: 14px;

  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.05);

  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  font-size: 14px;
  line-height: 1.65;
  color: #111827;
}

/* Scrollbar – göze sokmadan */
#ua-answer::-webkit-scrollbar {
  width: 8px;
}

#ua-answer::-webkit-scrollbar-thumb {
  background-color: rgba(34, 197, 94, 0.35);
  border-radius: 6px;
}

#ua-answer::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 768px) {
  #ua-answer {
    max-height: 220px;
  }
}





/* Yapay zeka tanıtım kutusu */
.ua-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  background: #d2e4ff;           /* soft mavi */
  border: 1px solid #dbeafe;
  border-radius: 12px;

  padding: 14px 16px;
  margin-bottom: 16px;

  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
}

.ua-intro-icon {
  font-size: 20px;
  line-height: 1;
}

.ua-intro-text {
  flex: 1;
}


@media (max-width: 768px) {
  .ua-intro {
    font-size: 13.5px;
    padding: 12px 14px;
  }

  .ua-intro-icon {
    font-size: 18px;
  }
}
