/* SOHBERA Platinum – Akilli kanal gecisleri V1
   Yalnizca yeni acilan sohbet icerigi ve kanal basligi etkilenir.
   Kullanici/kisi listesi, avatarlar ve mesaj olculeri sabit kalir.
*/
body.sohbera-platinum .timeline > .room-stream.sohbera-room-enter {
  animation: sohbera-room-arrive 220ms cubic-bezier(.2,.7,.2,1) both;
  will-change: opacity, transform;
}
@keyframes sohbera-room-arrive {
  from { opacity: .16; transform: translate3d(0, 9px, 0); }
  to   { opacity: 1;   transform: translate3d(0, 0, 0); }
}

/* Etkin oda basligini hafifce vurgula; header ve dugmeler yer degistirmez. */
body.sohbera-platinum .chat-head.sohbera-room-changing {
  position: relative;
}
body.sohbera-platinum .chat-head.sohbera-room-changing::after {
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 20px;
  background: linear-gradient(90deg,
    transparent,
    var(--theme-accent, #2d91a0) 42%,
    transparent);
  transform-origin: left center;
  animation: sohbera-room-accent 340ms ease-out both;
}
body.sohbera-platinum .chat-head.sohbera-room-changing #channelTitle,
body.sohbera-platinum .chat-head.sohbera-room-changing #channelSubtitle {
  animation: sohbera-room-title 200ms ease-out both;
}
@keyframes sohbera-room-title {
  from { opacity: .45; transform: translate3d(0, 4px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes sohbera-room-accent {
  0%   { opacity: 0; transform: scaleX(.05); }
  42%  { opacity: .8; transform: scaleX(.85); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Sistem ayarinda hareket azaltma secildiyse tamamen statik. */
@media (prefers-reduced-motion: reduce) {
  body.sohbera-platinum .timeline > .room-stream.sohbera-room-enter,
  body.sohbera-platinum .chat-head.sohbera-room-changing::after,
  body.sohbera-platinum .chat-head.sohbera-room-changing #channelTitle,
  body.sohbera-platinum .chat-head.sohbera-room-changing #channelSubtitle {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}
