/* ============================================================
   NSS SLIET - Event Announcement Pop-up Screen (NSS Day)
   ============================================================ */

/* Overlay Backdrop */
.nss-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 24, 15, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nss-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog Card */
.nss-popup-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(121, 201, 74, 0.38);
  box-shadow: 0 25px 60px -12px rgba(4, 32, 18, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform: scale(0.9) translateY(24px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nss-popup-overlay.is-active .nss-popup-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Close "Cross Tab" Button */
.nss-popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(7, 59, 34, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #073b22;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.nss-popup-close-btn:hover,
.nss-popup-close-btn:focus-visible {
  background: #073b22;
  color: #ffffff;
  border-color: #073b22;
  transform: rotate(90deg) scale(1.1);
  outline: none;
  box-shadow: 0 6px 18px rgba(7, 59, 34, 0.4);
}

/* Event Image Container */
.nss-popup-media {
  position: relative;
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, #073b22, #0b5a34);
  overflow: hidden;
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
}

.nss-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.nss-popup-card:hover .nss-popup-media img {
  transform: scale(1.03);
}

.nss-popup-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 59, 34, 0.2) 0%, rgba(7, 59, 34, 0.8) 100%);
  pointer-events: none;
}

.nss-popup-badge {
  position: absolute;
  bottom: 14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 90, 52, 0.9);
  border: 1px solid rgba(199, 255, 91, 0.5);
  backdrop-filter: blur(10px);
  color: #c7ff5b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nss-popup-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7ff5b;
  box-shadow: 0 0 10px #c7ff5b;
  animation: nssPulseDot 2s infinite ease-in-out;
}

@keyframes nssPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Content Area */
.nss-popup-body {
  padding: 24px 26px 26px;
  background: #ffffff;
  border-bottom-left-radius: 23px;
  border-bottom-right-radius: 23px;
}

.nss-popup-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #587261;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.nss-popup-title {
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #073b22;
  margin: 0 0 8px;
}

.nss-popup-title em {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #0b5a34;
}

.nss-popup-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3b5244;
  margin: 0 0 18px;
}

/* Event Details Pills / Highlights */
.nss-popup-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.nss-popup-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f1f8ee;
  border: 1px solid rgba(121, 201, 74, 0.28);
  border-radius: 12px;
}

.nss-popup-meta-icon {
  font-size: 20px;
  line-height: 1;
}

.nss-popup-meta-text strong {
  display: block;
  font-size: 12.5px;
  color: #073b22;
  line-height: 1.2;
}

.nss-popup-meta-text span {
  display: block;
  font-size: 11px;
  color: #63826e;
}

/* Highlights List */
.nss-popup-highlights {
  background: linear-gradient(135deg, rgba(239, 251, 234, 0.8), rgba(222, 245, 218, 0.5));
  border: 1px dashed #b5dbba;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 22px;
}

.nss-popup-highlights-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b5a34;
  margin-bottom: 8px;
}

.nss-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nss-popup-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #073b22;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 90, 52, 0.15);
}

/* Action Buttons */
.nss-popup-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nss-popup-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: #073b22;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(7, 59, 34, 0.25);
  transition: all 0.25s ease;
}

.nss-popup-btn-primary:hover {
  background: #0b5a34;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(7, 59, 34, 0.32);
  color: #ffffff;
}

.nss-popup-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: transparent;
  color: #4b6653;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(75, 102, 83, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nss-popup-btn-secondary:hover {
  background: rgba(7, 59, 34, 0.06);
  color: #073b22;
  border-color: #073b22;
}

/* Floating Re-Open Badge (bottom right) */
.nss-popup-reopen-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #073b22;
  color: #c7ff5b;
  border: 1px solid rgba(199, 255, 91, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 30px rgba(4, 32, 18, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(0);
}

.nss-popup-reopen-btn.is-visible {
  display: inline-flex;
}

.nss-popup-reopen-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: #0b5a34;
  box-shadow: 0 16px 36px rgba(4, 32, 18, 0.42);
}

/* Responsiveness */
@media (max-width: 580px) {
  .nss-popup-meta {
    grid-template-columns: 1fr;
  }
  .nss-popup-actions {
    flex-direction: column;
    width: 100%;
  }
  .nss-popup-btn-primary,
  .nss-popup-btn-secondary {
    width: 100%;
  }
  .nss-popup-body {
    padding: 18px 18px 20px;
  }
  .nss-popup-media {
    height: 160px;
  }
  .nss-popup-reopen-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 13px;
    font-size: 11px;
  }
}
