/* ══════════════════════════════════════════════════════
   PREMİUM ÖZELLİKLER CSS
══════════════════════════════════════════════════════ */

/* ── AI KİŞİLİK SEÇİCİ ───────────────────────────────── */
.persona-bar {
  display: flex;
  gap: 6px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.persona-bar::-webkit-scrollbar { display: none; }

.persona-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--glassb);
  background: var(--glass);
  color: var(--t2);
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s cubic-bezier(.34,1.4,.64,1);
  flex-shrink: 0;
}
.persona-chip:hover {
  border-color: rgba(108,62,244,0.4);
  color: #c4b5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,62,244,0.15);
}
.persona-chip.active {
  background: rgba(108,62,244,0.15);
  border-color: rgba(108,62,244,0.4);
  color: #c4b5fd;
  box-shadow: 0 0 16px rgba(108,62,244,0.15);
}
.persona-chip svg { opacity: .7; }
.persona-chip.active svg { opacity: 1; }

/* ── KARAKTER SAYACI ─────────────────────────────────── */
.char-counter {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 10px;
  color: var(--t3);
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
  transition: color .2s;
}
.char-counter.warn  { color: #f59e0b; }
.char-counter.limit { color: #f87171; }

/* ── CEVAP HIZI GÖSTERGESİ ──────────────────────────── */
.speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  margin-left: 8px;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity:0; transform:scale(.8); } to { opacity:1; transform:scale(1); } }

/* ── SOHBET ARAMA (gelişmiş) ─────────────────────────── */
.search-highlight {
  background: rgba(108,62,244,0.3);
  border-radius: 3px;
  padding: 0 2px;
}

/* ── MESAJ ZAMAN DAMGASI ─────────────────────────────── */
.msg-time {
  font-size: 10px;
  color: var(--t3);
  margin-top: 4px;
  opacity: 0;
  transition: opacity .2s;
}
.message:hover .msg-time { opacity: 1; }

/* ── HAVA DURUMU / SAAT WİDGET ───────────────────────── */
.sidebar-widget {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glassb);
  border-radius: 12px;
  margin: 0 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--t2);
}
.widget-clock {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  font-variant-numeric: tabular-nums;
  font-family: 'Syne', sans-serif;
}
.widget-date {
  font-size: 10px;
  color: var(--t3);
  margin-top: 1px;
}

/* ── STREAK SAYACI ───────────────────────────────────── */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
}

/* ── KOMUT PALETİ (Ctrl+K) ───────────────────────────── */
.cmd-palette {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) scale(.96);
  width: min(520px, 92vw);
  background: rgba(8,8,20,0.98);
  border: 1px solid rgba(108,62,244,0.3);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,.8), 0 0 0 1px rgba(108,62,244,0.1);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: all .2s cubic-bezier(.34,1.4,.64,1);
}
.cmd-palette.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) scale(1);
}
.cmd-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glassb);
  border-radius: 12px;
  color: var(--t1);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  margin-bottom: 8px;
}
.cmd-input::placeholder { color: var(--t3); }
.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--t2);
  transition: all .15s;
}
.cmd-item:hover, .cmd-item.selected {
  background: rgba(108,62,244,0.12);
  color: #c4b5fd;
}
.cmd-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(108,62,244,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.cmd-item-desc { font-size: 11px; color: var(--t3); margin-top: 1px; }
.cmd-shortcut {
  margin-left: auto;
  font-size: 10px;
  color: var(--t3);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: monospace;
}

/* ── ONBOARDING TOOLTIP ──────────────────────────────── */
.onboard-tip {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: rgba(108,62,244,0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  max-width: 220px;
  line-height: 1.5;
  z-index: 8000;
  box-shadow: 0 8px 32px rgba(108,62,244,0.4);
  animation: tipIn .4s cubic-bezier(.34,1.4,.64,1);
}
@keyframes tipIn {
  from { opacity:0; transform:translateY(10px) scale(.9); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.onboard-tip::after {
  content: '';
  position: absolute;
  bottom: -6px; right: 20px;
  width: 12px; height: 12px;
  background: rgba(108,62,244,0.95);
  transform: rotate(45deg);
  border-radius: 2px;
}
.tip-close {
  float: right;
  background: none; border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer; font-size: 14px; padding: 0;
  margin-left: 8px;
}
/* Kaldırılan özellikler */
.persona-bar, .sidebar-widget, .streak-badge, .onboard-tip { display: none !important; }

/* ══════════════════════════════════════════════════════
   YENİ EFEKTLER
══════════════════════════════════════════════════════ */

/* ── AURORA ARKA PLAN ────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-band {
  position: absolute;
  width: 200%;
  height: 40%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .035;
  animation: auroraDrift linear infinite;
}
.aurora-band:nth-child(1) {
  background: linear-gradient(90deg, #6c3ef4, #3b7ef7, #a855f7);
  top: -10%; left: -50%;
  animation-duration: 18s;
}
.aurora-band:nth-child(2) {
  background: linear-gradient(90deg, #3b7ef7, #6c3ef4, #06b6d4);
  top: 30%; left: -30%;
  animation-duration: 24s;
  animation-direction: reverse;
  opacity: .025;
}
.aurora-band:nth-child(3) {
  background: linear-gradient(90deg, #a855f7, #6c3ef4, #3b7ef7);
  top: 60%; left: -40%;
  animation-duration: 20s;
  opacity: .02;
}
@keyframes auroraDrift {
  0%   { transform: translateX(0) rotate(-3deg); }
  50%  { transform: translateX(20%) rotate(3deg); }
  100% { transform: translateX(0) rotate(-3deg); }
}

/* ── MESAJ NEON BORDER ───────────────────────────────── */
.message.assistant .bubble {
  position: relative;
  transition: box-shadow .3s !important;
}
.message.assistant .bubble::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(108,62,244,0.2), transparent, rgba(59,126,247,0.1));
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
  border-radius: 16px;
}
.message.assistant .bubble:hover::before { opacity: 1; }

/* ── SEND BUTONU MAGNETİK ────────────────────────────── */
.send-btn {
  transition: all .15s cubic-bezier(.34,1.4,.64,1) !important;
}

/* ── LOGO PRISM EFEKTİ ───────────────────────────────── */
.hero-logo-img {
  filter: drop-shadow(0 0 20px rgba(108,62,244,0.5)) drop-shadow(0 0 40px rgba(59,126,247,0.2)) !important;
  animation: logoPrism 4s ease-in-out infinite !important;
}
@keyframes logoPrism {
  0%,100% { filter: drop-shadow(0 0 20px rgba(108,62,244,0.5)) drop-shadow(0 0 40px rgba(59,126,247,0.2)); }
  50%      { filter: drop-shadow(0 0 30px rgba(168,85,247,0.7)) drop-shadow(0 0 60px rgba(108,62,244,0.3)); }
}

/* ── INPUT FOCUS HALKASı ─────────────────────────────── */
.input-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(108,62,244,0), rgba(108,62,244,0.3), rgba(59,126,247,0.2), rgba(108,62,244,0));
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
  pointer-events: none;
}
.input-wrap:focus-within::after { opacity: 1; }

/* ── CHAT AREA GRADİENT MASK ─────────────────────────── */
.chat-area {
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* ── YENİ SOHBET BUTONU SHINE ────────────────────────── */
#newChatBtn {
  position: relative;
  overflow: hidden;
}
#newChatBtn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-20deg);
  transition: left .4s ease;
}
#newChatBtn:hover::after { left: 120%; }

/* ── SIDEBAR HOVER GLOW ──────────────────────────────── */
.sb-inner {
  background: linear-gradient(180deg, rgba(108,62,244,0.02) 0%, transparent 100%);
}

/* ── MESAJ KULLANICI BUBBLE ──────────────────────────── */
.message.user .bubble {
  background: linear-gradient(135deg, rgba(108,62,244,0.15), rgba(59,126,247,0.1)) !important;
  border-color: rgba(108,62,244,0.2) !important;
  transition: all .2s !important;
}
.message.user .bubble:hover {
  background: linear-gradient(135deg, rgba(108,62,244,0.22), rgba(59,126,247,0.15)) !important;
}

/* ── TOPBAR BLUR GÜÇLENDIR ───────────────────────────── */
.topbar {
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

/* ── KOD BLOĞU STİLİ ─────────────────────────────────── */
pre, code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 13px !important;
}
pre {
  border-left: 3px solid rgba(108,62,244,0.5) !important;
  position: relative;
}

/* ── SCROLL TOP BTN PULSE ────────────────────────────── */
.scroll-top-btn.show {
  animation: scrollBtnPulse 2s ease-in-out infinite;
}
@keyframes scrollBtnPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(108,62,244,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(108,62,244,0); }
}
