/* ══════════════════════════════════════════════
   POLLINATION POPUP — Wikimind "Quoi de neuf"
   ══════════════════════════════════════════════ */

/* ── Bouton topbar ── */
#btn-whats-new {
  position: relative;
}
#btn-whats-new .wn-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  opacity: 0.75;
  transition: opacity 0.15s;
}
#btn-whats-new:hover .wn-logo { opacity: 1; }

#btn-whats-new .wn-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #000;
  pointer-events: none;
  transition: opacity 0.2s;
}
#btn-whats-new .wn-dot.hidden { opacity: 0; }

/* ── Overlay ── */
#wn-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#wn-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Popup card ── */
#wn-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 1101;
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#wn-popup.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Header ── */
#wn-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
#wn-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#wn-header-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}
#wn-header-text { flex: 1; min-width: 0; }
#wn-header-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
#wn-header-subtitle {
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 2px;
}
#wn-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
}
#wn-close:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

/* ── Body ── */
#wn-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#wn-body::-webkit-scrollbar { width: 3px; }
#wn-body::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

/* ── Date badge ── */
.wn-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 4px 9px;
  width: fit-content;
}
.wn-date-badge svg { opacity: 0.6; }

/* ── Section titre ── */
.wn-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Model cards ── */
.wn-models-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wn-model-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.wn-model-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.13);
}
.wn-model-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wn-model-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.wn-model-info { flex: 1; min-width: 0; }
.wn-model-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.wn-model-desc {
  font-size: 0.75rem;
  color: var(--text3);
  line-height: 1.45;
}
.wn-model-link {
  flex-shrink: 0;
  color: var(--text3);
  opacity: 0.4;
  transition: opacity 0.15s;
}
.wn-model-card:hover .wn-model-link { opacity: 0.8; }

/* ── Provider badge ── */
.wn-provider-badge {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 4px;
}
.wn-provider-badge.pollinations {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* ── Info note ── */
.wn-note {
  display: flex;
  gap: 9px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  font-size: 0.76rem;
  color: var(--text3);
  line-height: 1.5;
}
.wn-note svg { flex-shrink: 0; margin-top: 1px; opacity: 0.45; }

/* ── Footer ── */
#wn-footer {
  padding: 13px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
#wn-footer-label {
  font-size: 0.71rem;
  color: var(--text3);
}
#wn-got-it {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}
#wn-got-it:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
