/* ============================================================
   Crypto Directory — Announcements
   File: assets/css/announcements.css
   ============================================================ */

/* ------------------------------------------------------------
   Shared
   ------------------------------------------------------------ */
.ann-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9px;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  transition: opacity .15s, background .15s, border-color .15s;
}
.ann-btn:hover { text-decoration: none; opacity: .9; }
.ann-btn-primary { background: var(--accent); color: #fff; }
.ann-btn-ghost   { background: transparent; border-color: rgba(255,255,255,.25); color: inherit; }
.ann-btn-link    { background: transparent; color: var(--accent-2); padding-left: 4px; padding-right: 4px; }

.ann-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(0,0,0,.35);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ann-close:hover { background: rgba(0,0,0,.55); }

/* ------------------------------------------------------------
   Banner (top of page)
   ------------------------------------------------------------ */
.ann-banner {
  position: relative;
  padding: 14px 48px 14px 16px;
  background: linear-gradient(90deg, #172036 0%, #1b2a52 100%);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  z-index: 60;
}
.ann-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ann-banner-text { flex: 1 1 240px; min-width: 0; }
.ann-banner-text p { margin: 0 0 6px; }
.ann-banner-text p:last-child { margin-bottom: 0; }
.ann-banner-text a { color: #c5d4ff; }
.ann-banner .ann-buttons { margin-top: 0; }
.ann-banner .ann-btn { padding: 8px 14px; font-size: 13px; }

@media (max-width: 620px) {
  .ann-banner { padding: 12px 42px 12px 14px; font-size: 13.5px; }
  .ann-banner-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ------------------------------------------------------------
   Slide (bottom-right corner)
   ------------------------------------------------------------ */
.ann-slide {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 18px 40px 18px 18px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  z-index: 70;
  animation: ann-slide-in .35s cubic-bezier(.2,.9,.3,1.1) both;
}
.ann-slide p { margin: 0 0 8px; }
.ann-slide p:last-child { margin-bottom: 0; }

@keyframes ann-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .ann-slide {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}

/* ------------------------------------------------------------
   Popup (centered modal)
   ------------------------------------------------------------ */
.ann-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ann-fade .25s ease both;
}
.ann-popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  animation: ann-pop .3s cubic-bezier(.2,.9,.3,1.1) both;
}
.ann-popup p { margin: 0 0 10px; }
.ann-popup p:last-child { margin-bottom: 0; }

@keyframes ann-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ann-pop {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ------------------------------------------------------------
   HTML content in announcements
   ------------------------------------------------------------ */
.ann-banner p,
.ann-slide p,
.ann-popup p { margin: 0 0 8px; }
.ann-banner p:last-child,
.ann-slide p:last-child,
.ann-popup p:last-child { margin-bottom: 0; }

.ann-banner h3,
.ann-slide h3,
.ann-popup h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: inherit;
}
.ann-banner strong,
.ann-slide strong,
.ann-popup strong { color: inherit; font-weight: 700; }
.ann-banner a,
.ann-slide a,
.ann-popup a { color: inherit; text-decoration: underline; }