/* === Genel Kutu Stil === */
.ai-summary-container {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 30px;
  margin-bottom: 32px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.ai-summary-container:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

/* === Başlık === */
.ai-summary-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #0f172a;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-summary-title::before {
  content: "✨";
  font-size: 18px;
}

/* === Buton Grubu === */
.ai-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* === Tek Buton === */
.ai-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 16px;
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}

/* === Logo === */
.ai-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

/* === Özet Alanı === */
.ai-summary-text {
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  border: 1px solid #e5e7eb;
}

.ai-summary-text strong {
  color: #111827;
  display: block;
  margin-bottom: 6px;
}

/* === Özet Yoksa === */
.ai-summary-none {
  margin-top: 8px;
  font-size: 15px;
  color: #6b7280;
  font-style: italic;
  text-align: center;
}

/* === Toast Mesaj === */
.ai-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  animation: fadeInOut 2.2s ease forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

/* === Mobil Uyumluluk === */
@media (max-width: 640px) {
  .ai-summary-container {
    padding: 22px 20px;
  }
  .ai-summary-title {
    font-size: 18px;
  }
  .ai-btn {
    font-size: 14px;
    padding: 10px 14px;
  }
  .ai-logo {
    width: 22px;
    height: 22px;
  }
}
/* === PROMPT POPUP TASARIMI === */
.ai-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 420px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: fadeIn .25s ease;
  font-family: system-ui, sans-serif;
}
.ai-modal h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}
.ai-modal textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  resize: none;
  margin-bottom: 14px;
  background: #f9fafb;
  color: #111;
}
.ai-modal button, .ai-modal a.goSite {
  display: inline-block;
  margin: 4px;
  padding: 10px 16px;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}
.ai-modal button:hover, .ai-modal a.goSite:hover {
  background: #374151;
}
#closeModal {
  background: #6b7280;
}
#closeModal:hover {
  background: #4b5563;
}
@keyframes fadeIn {
  from {opacity:0; transform:translateY(10px);}
  to {opacity:1; transform:translateY(0);}
}

.ai-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.ai-actions button {
  width: 100%;
}
