/* ============================================================
   Prelytix — Announcement Bar
   File: assets/css/announcement.css
   NOTE: Popup styles are self-contained inside popup_modal.php
   ============================================================ */

/* ── ANNOUNCEMENT BAR ──────────────────────────────────────── */

#announcement-bar {
  position: relative;
  width: 100%;
  z-index: 10000;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(-100%);
  animation: barSlideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes barSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

#announcement-bar.bar-solid    { /* bg set inline by PHP */ }
#announcement-bar.bar-gradient { background: linear-gradient(90deg, #1a1a2e 0%, #0f3460 50%, #1a1a2e 100%) !important; }
#announcement-bar.bar-striped  {
  background-image: repeating-linear-gradient(
    45deg,
    transparent, transparent 10px,
    rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 20px
  ) !important;
}

#announcement-bar .bar-message { flex: 1; text-align: center; }

#announcement-bar .bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 20px;
  background: #8CCA45;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s;
  animation: ctaPulse 2s ease-in-out infinite;
}
#announcement-bar .bar-cta:hover {
  background: #72b335;
  transform: scale(1.05);
  animation: none;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(140,202,69,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(140,202,69,0); }
}

#announcement-bar .bar-close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
#announcement-bar .bar-close:hover { opacity: 1; }

@media (max-width: 768px) {
  #announcement-bar {
    flex-wrap: wrap;
    font-size: 13px;
    padding: 10px 16px;
    gap: 8px;
  }
  #announcement-bar .bar-message { width: 100%; }
  #announcement-bar .bar-cta     { width: 100%; justify-content: center; }
}
