/* ============================================================
   S.T.A.L.K.E.R. 2 Wiki - Announcement Modal
   Модальне вікно оголошення від адміністрації
   ============================================================ */

.announcement-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.announcement-overlay.active {
  display: flex;
  animation: annFadeIn 0.3s ease;
}

@keyframes annFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.announcement-modal {
  background: var(--background-main-page);
  border-radius: 16px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  position: relative;
  animation: annSlideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 115, 22, 0.1);
}

@keyframes annSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.announcement-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.announcement-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.announcement-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accentlite);
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.3;
}

.announcement-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--colorGalk);
  margin-bottom: 24px;
}

.announcement-text a {
  color: #f97316;
  text-decoration: underline;
}

.announcement-text p {
  margin-bottom: 8px;
}

.announcement-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), #ea580c);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.announcement-btn:hover {
  box-shadow: 0 4px 16px rgba(225, 165, 69, 0.3);
  transform: translateY(-1px);
}
