/* Shared broadcast UI: banner stack + modal queue rendered by
   public/js/announcementFeed.js from GET /me/announcements. */

.ann-banner-stack {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
}

.ann-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 44px 10px 16px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ann-banner-info    { background: #eef4ff; color: #1d3a8a; }
.ann-banner-success  { background: #eafaf0; color: #17643c; }
.ann-banner-warning  { background: #fff7e6; color: #8a5a00; }
.ann-banner-new      { background: #f3ecff; color: #5b2fa8; }

.ann-banner strong { font-weight: 600; }

.ann-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}

.ann-banner-dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 4px;
}
.ann-banner-dismiss:hover { opacity: 1; }

.ann-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(15, 20, 30, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ann-modal-overlay[hidden] { display: none; }

.ann-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: annModalIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes annModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ann-modal-banner-bar { height: 6px; border-radius: 14px 14px 0 0; }
.ann-modal-banner-bar.ann-info    { background: #3b6fe0; }
.ann-modal-banner-bar.ann-success  { background: #2fa864; }
.ann-modal-banner-bar.ann-warning  { background: #e0a324; }
.ann-modal-banner-bar.ann-new      { background: #8a4fe0; }

.ann-modal-body { padding: 24px; }

.ann-modal-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.ann-modal-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #16181d;
}

.ann-modal-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #454b57;
  white-space: pre-wrap;
}

.ann-modal-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ann-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.ann-modal-cta.primary   { background: #3b6fe0; color: #fff; }
.ann-modal-cta.secondary { background: #eef1f6; color: #23262f; }
.ann-modal-cta.link      { background: none; color: #3b6fe0; text-decoration: underline; padding-left: 0; padding-right: 0; }

.ann-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef0f4;
}

.ann-modal-queue-hint { font-size: 12px; color: #8a90a0; }

.ann-modal-close {
  background: none;
  border: none;
  font-size: 14px;
  color: #8a90a0;
  cursor: pointer;
  font-weight: 600;
}
.ann-modal-close:hover { color: #23262f; }
