/* Game Notification Ticker Styles - Chạy từ phải sang trái */
.game-notification-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10002; /* Cao nhất, ở trên header */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  height: 50px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  display: block;
}

.ticker-wrapper {
  display: flex;
  width: fit-content;
  animation: scroll-left 40s linear infinite;
  animation-delay: 0s;
  animation-fill-mode: both;
  white-space: nowrap;
  will-change: transform;
  transform: translateX(100vw);
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  height: 50px;
  line-height: 50px;
}

.ticker-icon {
  font-size: 1.3rem;
  animation: bounce 2s infinite;
}

.ticker-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-link {
  color: #ffeb3b;
  text-decoration: underline;
  font-weight: 700;
  transition: all 0.3s ease;
}

.ticker-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 235, 59, 0.8);
}

/* Animation: Chạy từ phải sang trái, chạy hết rồi reset lại */
@keyframes scroll-left {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Bounce animation for icon */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Pause on hover - Dừng khi hover, chạy tiếp khi không hover */
.game-notification-ticker:hover .ticker-wrapper {
  animation-play-state: paused !important;
}

.game-notification-ticker .ticker-wrapper {
  animation-play-state: running;
}

/* Responsive */
@media (max-width: 1200px) {
  .ticker-wrapper {
    animation-duration: 35s;
  }
}

@media (max-width: 768px) {
  .game-notification-ticker {
    height: 45px;
  }

  .ticker-wrapper {
    animation-duration: 30s;
  }

  .ticker-content {
    font-size: 0.85rem;
    gap: 0.8rem;
    padding: 0 2rem;
    height: 45px;
    line-height: 45px;
  }

  .ticker-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .game-notification-ticker {
    height: 40px;
  }

  .ticker-wrapper {
    animation-duration: 25s;
  }

  .ticker-content {
    font-size: 0.8rem;
    gap: 0.6rem;
    padding: 0 1.5rem;
    height: 40px;
    line-height: 40px;
  }

  .ticker-icon {
    font-size: 1rem;
  }
}

/* Large screens */
@media (min-width: 1920px) {
  .ticker-wrapper {
    animation-duration: 45s;
  }
}
