/**
 * Yetkili canlı duyuru bandı — izole (alan-lann-*), oda ayarları duyurusundan bağımsız.
 */
.alan-lann-dock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px 0;
  pointer-events: none;
}

.alan-lann-dock:empty {
  display: none;
}

#chatLiveShell.has-alan-lann:not(.has-alan-lann--overlay) #messagesContainer {
  top: var(--alan-lann-offset, 0);
}

.alan-lann-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 4px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: alan-lann-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.alan-lann-bar.is-leaving {
  animation: alan-lann-slide-out 0.32s ease forwards;
}

.alan-lann-bar--site {
  background: linear-gradient(
    105deg,
    #9333ea 0%,
    #ec4899 28%,
    #f97316 55%,
    #facc15 78%,
    #9333ea 100%
  );
  background-size: 240% 100%;
  animation: alan-lann-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1), alan-lann-gradient 5s ease infinite;
}

.alan-lann-bar--room {
  background: linear-gradient(
    105deg,
    #0ea5e9 0%,
    #06b6d4 35%,
    #2dd4bf 65%,
    #38bdf8 100%
  );
  background-size: 220% 100%;
  animation: alan-lann-pop-in 0.45s cubic-bezier(0.22, 1, 0.36, 1), alan-lann-gradient 4.5s ease infinite;
}

.alan-lann-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 42%,
    transparent 68%
  );
  transform: translateX(-130%);
  animation: alan-lann-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.alan-lann-badge {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 8px;
}

.alan-lann-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  animation: alan-lann-badge-ring 1.25s ease-in-out infinite;
  pointer-events: none;
}

.alan-lann-badge-txt {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.alan-lann-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.alan-lann-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.alan-lann-scroll-track {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
}

.alan-lann-content {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.alan-lann-content.html-rich-text,
.alan-lann-content.html-rich-text * {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.alan-lann-content.html-rich-text p,
.alan-lann-content.html-rich-text div,
.alan-lann-content.html-rich-text li {
  display: inline;
  margin: 0;
  padding: 0;
}

.alan-lann-content.html-rich-text a {
  color: #fff;
  text-decoration: underline;
}

.alan-lann-content--dup {
  display: none;
}

.alan-lann-bar.is-scroll .alan-lann-content:not(.alan-lann-content--dup) {
  padding-right: 40px;
}

.alan-lann-bar.is-scroll .alan-lann-content--dup {
  display: inline-block;
}

@keyframes alan-lann-pop-in {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alan-lann-slide-out {
  to {
    opacity: 0;
    transform: translateY(-70%);
  }
}

@keyframes alan-lann-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes alan-lann-shimmer {
  0% {
    transform: translateX(-130%);
  }
  50%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes alan-lann-badge-ring {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.75);
  }
}

@media (max-width: 768px) {
  .alan-lann-dock {
    padding: 0 6px;
  }

  .alan-lann-bar {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
    gap: 8px;
    border-radius: 8px;
  }

  .alan-lann-badge-txt {
    font-size: 9px;
    padding: 3px 7px;
  }
}
