/* ══════════════════════════════════════════════════════════
   WHAT'S NEW POPUP — STYLES
   Uses the same design tokens as the rest of Tech Verse.
   ══════════════════════════════════════════════════════════ */

#wnOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

#wnOverlay.wn-show {
  opacity: 1;
}

#wnOverlay .wn-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-surface-light, #1e2230) 0%, var(--bg-surface, #161921) 100%);
  border: 1px solid var(--border-light, #2a3050);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#wnOverlay.wn-show .wn-card {
  transform: translateY(0) scale(1);
}

.wn-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--primary-glow, rgba(91,141,238,0.2)) 0%, transparent 70%);
  pointer-events: none;
}

.wn-header {
  position: relative;
  padding: 28px 28px 4px;
}

.wn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #5b8dee);
  background: var(--primary-glow, rgba(91,141,238,0.2));
  padding: 5px 11px;
  border-radius: 999px;
}

.wn-badge i {
  font-size: 10px;
}

.wn-title {
  margin: 14px 0 4px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main, #e8eaf0);
}

.wn-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted, #6b7499);
  line-height: 1.5;
}

.wn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--bg-surface-hover, #252a3a);
  color: var(--text-muted, #6b7499);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition, 0.2s ease);
}

.wn-close:hover {
  background: var(--danger, #ef4444);
  color: #fff;
}

.wn-list {
  padding: 16px 28px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wn-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.wn-item:hover {
  background: var(--bg-surface-hover, #252a3a);
}

.wn-item-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary, #5b8dee), var(--accent, #7c5cbf));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(91, 141, 238, 0.25);
}

.wn-item-text {
  flex: 1;
  min-width: 0;
}

.wn-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main, #e8eaf0);
  margin: 0 0 2px;
}

.wn-item-desc {
  font-size: 13px;
  color: var(--text-muted, #6b7499);
  line-height: 1.5;
  margin: 0;
}

.wn-footer {
  padding: 18px 28px 26px;
}

.wn-cta {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary, #5b8dee), var(--accent, #7c5cbf));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition, 0.2s ease);
  box-shadow: 0 10px 24px rgba(91, 141, 238, 0.28);
}

.wn-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wn-cta:active {
  transform: translateY(0);
}

.wn-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim, #3d4360);
}

/* Scrollbar polish inside the list */
.wn-list::-webkit-scrollbar {
  width: 6px;
}
.wn-list::-webkit-scrollbar-thumb {
  background: var(--border-light, #2a3050);
  border-radius: 999px;
}

@media (max-width: 480px) {
  #wnOverlay .wn-card {
    max-width: 100%;
    border-radius: 16px;
  }
  .wn-header {
    padding: 24px 20px 4px;
  }
  .wn-list {
    padding: 14px 20px 6px;
  }
  .wn-footer {
    padding: 16px 20px 22px;
  }
}
