/* ===========================================================
   Küme Eğitim Kurumları — özel stiller
   Tailwind (CDN) üzerine eklenen küçük yardımcı sınıflar/animasyonlar
   =========================================================== */

:root {
  --brand-900: #0a0a0a;
  --accent-400: #9a9a9a;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Bölüm bağlantılarında sabit başlığın altında kalmamak için */
section[id] {
  scroll-margin-top: 7rem;
}

/* --- Gradient metin (siyah zeminde beyaz-gri) --- */
.text-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #d4d4d4 55%, #8a8a8a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Hero arka plan deseni (siyah) --- */
.hero-pattern {
  background-color: #0a0a0a;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08) 0, transparent 38%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.05) 0, transparent 32%),
    radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.06) 0, transparent 40%);
}

.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* --- Görsel yer tutucu (client görselleri eklenince değiştirilecek) --- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  background:
    repeating-linear-gradient(
      45deg,
      #f1f5f9,
      #f1f5f9 12px,
      #e9eef5 12px,
      #e9eef5 24px
    );
  border: 1px dashed #cbd5e1;
}

.img-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

/* --- "Eklenecek" rozet işareti --- */
.todo {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #a44e09;
  background: #fff8eb;
  border: 1px solid #fdd98a;
  border-radius: 9999px;
  padding: 0.05rem 0.5rem;
  vertical-align: middle;
}

/* --- Scroll reveal animasyonu --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* --- SSS akordeon --- */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 480px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* --- Aktif menü bağlantısı --- */
.nav-link.active {
  color: #0a0a0a;
}
.nav-link.active::after {
  width: 100%;
}
.nav-link::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin-top: 2px;
  background: #0a0a0a;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* =========================================================
   AI Navigasyon Asistanı (sohbet widget'ı)
   ========================================================= */
#kume-chat-launch {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a0a0a;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease;
}
#kume-chat-launch:hover { transform: translateY(-2px); }
#kume-chat-launch .dot {
  width: 8px; height: 8px; border-radius: 9999px; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

#kume-chat-panel {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 61;
  width: min(92vw, 370px);
  height: min(72vh, 560px);
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ededed;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#kume-chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }

.kume-chat-header {
  background: #0a0a0a; color: #fff;
  padding: 0.9rem 1rem; display: flex; align-items: center; gap: 0.65rem;
}
.kume-chat-header .avatar {
  width: 38px; height: 38px; border-radius: 9999px; background: #fff;
  display: grid; place-items: center; padding: 4px;
}
.kume-chat-header .avatar img { width: 100%; height: 100%; object-fit: contain; }
.kume-chat-header .title { font-weight: 700; line-height: 1.1; }
.kume-chat-header .subtitle { font-size: 0.72rem; color: #b0b0b0; }
.kume-chat-header .status { font-size: 0.72rem; color: #22c55e; display: inline-flex; align-items: center; gap: 4px; }
.kume-chat-close { margin-left: auto; background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 9999px; cursor: pointer; font-size: 1rem; line-height: 1; }
.kume-chat-close:hover { background: rgba(255,255,255,0.2); }

.kume-chat-body { flex: 1; overflow-y: auto; padding: 1rem; background: #f7f7f7; display: flex; flex-direction: column; gap: 0.6rem; }
.kume-msg { max-width: 85%; padding: 0.6rem 0.8rem; border-radius: 1rem; font-size: 0.88rem; line-height: 1.45; }
.kume-msg.bot { background: #fff; color: #2e2e2e; border: 1px solid #ededed; border-bottom-left-radius: 0.25rem; align-self: flex-start; }
.kume-msg.user { background: #0a0a0a; color: #fff; border-bottom-right-radius: 0.25rem; align-self: flex-end; }
.kume-msg a.act { display: inline-block; margin-top: 0.4rem; margin-right: 0.35rem; font-size: 0.8rem; font-weight: 700;
  background: #0a0a0a; color: #fff; padding: 0.3rem 0.7rem; border-radius: 9999px; text-decoration: none; }
.kume-msg a.act.alt { background: #fff; color: #0a0a0a; border: 1px solid #d6d6d6; }

.kume-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0.8rem; background: #f7f7f7; border-top: 1px solid #ededed; }
.kume-chip { font-size: 0.78rem; font-weight: 600; background: #fff; border: 1px solid #d6d6d6; color: #2e2e2e;
  padding: 0.35rem 0.7rem; border-radius: 9999px; cursor: pointer; transition: background 0.15s; }
.kume-chip:hover { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }

.kume-chat-input { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid #ededed; background: #fff; }
.kume-chat-input input { flex: 1; border: 1px solid #d6d6d6; border-radius: 9999px; padding: 0.55rem 0.9rem; font-size: 0.88rem; outline: none; }
.kume-chat-input input:focus { border-color: #0a0a0a; }
.kume-chat-input button { background: #0a0a0a; color: #fff; border: none; width: 40px; border-radius: 9999px; cursor: pointer; }

@media (max-width: 480px) {
  #kume-chat-panel { left: 2.5vw; right: 2.5vw; width: 95vw; }
}
