/* ================================
   전광판(Ticker) 스타일
   티커 컨테이너, 티커 애니메이션
================================ */

.ticker-container {
  width: 100%;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  height: 54px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

.ticker-container::before {
  content: '📢';
  position: absolute;
  left: 24px;
  z-index: 20;
  font-size: 22px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  animation: ticker-icon-bounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticker-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(15, 15, 20, 1) 0%,
      rgba(15, 15, 20, 0) 50px,
      rgba(15, 15, 20, 0) calc(100% - 50px),
      rgba(15, 15, 20, 1) 100%);
  z-index: 10;
}

.ticker-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding-left: 60px;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  box-sizing: content-box;
  animation: ticker 40s linear infinite;
  will-change: transform;
}

.ticker-container:hover .ticker-content {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4rem;
  vertical-align: middle;
}

.ticker-item .nickname {
  color: #a0aec0;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-item .message {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.ticker-item.special .message {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes ticker-icon-bounce {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
  }
}

/* 미디어 쿼리 */
@media (max-width: 768px) {
  .ticker-container {
    height: 40px;
  }

  .ticker-container::before {
    left: 12px;
    font-size: 18px;
  }

  .ticker-wrap {
    padding-left: 40px;
  }
}
