/* ============================================================
   Cat Character — Siyah Kedi Stilleri & Animasyonları
   ============================================================ */

.cat-character {
  position: fixed;
  bottom: 90px; right: 16px;
  width: 90px; height: 100px;
  z-index: 15;
  transition: transform .45s cubic-bezier(.2,.9,.3,1.1);
  pointer-events: auto;
  cursor: pointer;
  /* Subtle bob + idle breathing */
  animation: catFloat 3.2s ease-in-out infinite;
}
.cat-character:hover { transform: scale(1.08) rotate(-3deg); }

.cat-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 12px 18px rgba(63,29,69,.35));
}

@keyframes catFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

/* Blink animation on eyes */
.cat-eyes { transform-origin: center; animation: catBlink 5s infinite; }
@keyframes catBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  96%, 98%      { transform: scaleY(.08); }
}

/* Tail sway */
.cat-tail { transform-origin: 155px 160px; animation: catTailSway 2.4s ease-in-out infinite; }
@keyframes catTailSway {
  0%,100% { transform: rotate(-5deg); }
  50%     { transform: rotate(12deg); }
}

/* Mood variants */
.cat-character.mood-happy   .cat-mouth { d: path("M93,103 Q100,116 107,103"); }
.cat-character.mood-sad     .cat-mouth { d: path("M93,110 Q100,100 107,110"); }
.cat-character.mood-curious { transform: rotate(-5deg); }

/* Speech bubble */
.cat-bubble {
  position: absolute;
  bottom: 95px; right: 0;
  max-width: 240px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 22px 22px 6px 22px;
  box-shadow: 0 14px 30px rgba(196,181,253,.35);
  animation: bubbleIn .5s cubic-bezier(.2,.9,.3,1.2);
  border: 1px solid rgba(249,168,212,.2);
}
.cat-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px; right: 14px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(196,181,253,.2));
}
.cat-bubble p {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.45;
  color: #3f1d45;
}

@keyframes bubbleIn {
  0%   { opacity: 0; transform: translateY(10px) scale(.85); }
  100% { opacity: 1; transform: none; }
}

/* Kategori bazlı kedi aksanı (soru sayfasında) */
.cat-matematik .cat-character { filter: hue-rotate(-10deg); }
.cat-turkce    .cat-character { filter: hue-rotate(10deg); }
.cat-fizik     .cat-character { filter: hue-rotate(25deg); }
.cat-kimya     .cat-character { filter: hue-rotate(-25deg); }

/* Mobil küçültme */
@media (max-width: 380px) {
  .cat-character { width: 72px; height: 80px; bottom: 80px; right: 10px; }
  .cat-bubble { max-width: 180px; font-size: 12px; }
}
