/* ==========================================================================
   AKTUALIZACJE — okno listy zmian (whatsnew.js, od 10.10.2026)
   Standard okna apki (jak statystyki .sx-): ramka i tlo w --sys, ikona
   tytulu i podswietlenia w --accent, tytul bialy. Telefon: plywajaca karta
   od dolu. Zaslona BEZ backdrop-filter — rozmycie liczone przy kazdej
   klatce animacji biblioteki klatkowalo na slabszej grafice.
   Klasy z przedrostkiem „wn-”.
   ========================================================================== */

.wn-ovl {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(2, 3, 4, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.wn-ovl[hidden] { display: none; }
.wn-modal {
  width: 100%; max-width: 640px; max-height: 88vh;
  display: flex; flex-direction: column;
  background: #08090c;
  border: 1px solid color-mix(in srgb, var(--sys) 22%, transparent);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

/* --- naglowek --- */
.wn-hd {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #191c21;
  background: radial-gradient(120% 200% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%);
}
.wn-hd h2 { flex: 1; margin: 0; font-size: 0.85rem; letter-spacing: 2.5px; font-weight: 700; color: #fff; }
.wn-hd h2 i { color: var(--accent); margin-right: 8px; }
.wn-hd small { display: block; margin-top: 3px; font-size: 0.62rem; letter-spacing: 1px; color: #68727b; font-weight: 600; }
.wn-x {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; cursor: pointer;
  background: none; border: 1px solid #191c21; color: #7b848c;
}
.wn-x:hover, .wn-x:focus-visible { color: #fff; border-color: #2a3138; outline: none; }

/* --- tresc --- */
.wn-bd {
  flex: 1; min-height: 0; overflow-y: auto; padding: 16px;
  scrollbar-width: thin; scrollbar-color: #2a3138 transparent;
}
.wn-vh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wn-vn { font-family: "JetBrains Mono", "Courier New", monospace; font-weight: 700; color: #fff; }
.wn-vd { font-size: 0.72rem; color: #7b848c; letter-spacing: 0.5px; }
.wn-new {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 6px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* grupy i wpisy */
.wn-grp { margin-top: 14px; }
.wn-gh { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; color: #8a939e; }
.wn-gh i {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 0.6rem; background: #12161b; border: 1px solid #1d232a;
}
.wn-grp.add .wn-gh i { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.wn-grp.chg .wn-gh i { color: var(--sys); }
.wn-grp.fix .wn-gh i { color: #9aa3ad; }
.wn-it {
  position: relative; padding: 8px 0 8px 28px; border-top: 1px solid #12161b;
  font-size: 0.8rem; line-height: 1.5; color: #aab3bc;
}
.wn-gh + .wn-it { border-top: none; }
.wn-it::before {
  content: ""; position: absolute; left: 9px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: #3a434c;
}
.wn-grp.add .wn-it::before { background: var(--accent); }
.wn-it b { display: block; color: #fff; font-size: 0.74rem; letter-spacing: 1.2px; margin-bottom: 1px; }

/* najnowsza wersja — karta */
.wn-top {
  padding: 16px; border: 1px solid #1d232a; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, #0c0f13), #0a0c10);
}
.wn-top .wn-vn { font-size: 1.5rem; }

/* starsze — zwiniete wiersze */
.wn-lbl { font-size: 0.6rem; letter-spacing: 2px; color: #5b646c; font-weight: 700; margin: 20px 2px 8px; }
.wn-old { border: 1px solid #1a1f25; border-radius: 12px; margin-bottom: 8px; background: #0a0c10; overflow: hidden; }
.wn-oh { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; }
.wn-oh:hover, .wn-oh:focus-visible { background: #0e1216; outline: none; }
.wn-oh .wn-vn { font-size: 0.9rem; min-width: 52px; }
.wn-cnt { margin-left: auto; font-size: 0.66rem; color: #68727b; letter-spacing: 0.5px; white-space: nowrap; }
.wn-ch { color: #5b646c; font-size: 0.7rem; transition: transform 0.2s; }
.wn-old.open .wn-ch { transform: rotate(90deg); }
.wn-ob { padding: 0 14px 10px; }
.wn-old .wn-grp { margin-top: 6px; }

/* --- telefon: plywajaca karta od dolu --- */
@media (max-width: 768px) {
  .wn-ovl { padding: 10px 8px; align-items: flex-end; }
  .wn-modal { max-height: calc(100dvh - 20px); border-radius: 16px; }
  .wn-bd { padding: 14px 12px; }
  .wn-top { padding: 14px 12px; }
  .wn-oh { padding: 11px 12px; gap: 8px; }
  .wn-ob { padding: 0 12px 10px; }
}
