.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 38px;
  padding: 0.55rem 2.75rem 0.55rem 1rem;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.55) 0%, rgba(190, 18, 60, 0.6) 50%, rgba(225, 29, 72, 0.55) 100%);
  background-size: 200% 100%;
  animation: announcement-shimmer 8s ease-in-out infinite;
  border-bottom: 1px solid rgba(225, 29, 72, 0.4);
  color: #ffe4ea;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.announcement-bar[hidden] { display: none !important; }

.announcement-bar--link {
  text-decoration: none;
  color: #ffe4ea;
  transition: filter 0.2s ease;
}
.announcement-bar--link:hover { filter: brightness(1.12); }

.announcement-bar__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: announcement-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.announcement-bar__text strong {
  color: #fff;
  font-weight: 700;
}

.announcement-bar__close {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffe4ea;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.announcement-bar__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

body.has-announcement nav,
body.has-announcement nav#main-nav {
  top: 38px !important;
}

@keyframes announcement-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes announcement-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@media (max-width: 640px) {
  .announcement-bar {
    padding: 0.5rem 2.4rem 0.5rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.5rem;
    min-height: 34px;
  }
  .announcement-bar__close { right: 0.4rem; width: 24px; height: 24px; }
  body.has-announcement nav,
  body.has-announcement nav#main-nav {
    top: 34px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar { animation: none; }
  .announcement-bar__dot { animation: none; }
}
