
.announcement-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-color), transparent);
    z-index: 2;
  }
  
  &::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(270deg, var(--bg-color), transparent);
    z-index: 2;
  }
}

.announcement-slider {
  display: flex;
  animation: slide 30s linear infinite;
  
  &:hover {
    animation-play-state: paused;
  }
}

.announcement-item {
  flex: 0 0 auto;
  padding: 12px 30px;
  font-weight: 500;
  display: flex;
  align-items: center;
  
  &:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.2);
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
