/* ==========================================================================
   Drugie życie spolszczeń — układ wg wzoru (Ogłoszenia/nowa zakładka.png).
   Korzysta ze zmiennych motywu z styles.css, więc działa jasny/ciemny motyw
   i przełącznik koloru akcentu.
   ========================================================================== */

/* Te same wymiary co .ghp-page na stronie głównej — BEZ max-width i bez
   wyśrodkowania. Wcześniej było max-width:1500px + margin auto, przez co baner
   był węższy niż na głównej i object-fit:cover obcinał mu boki (widać było
   tylko środek). Teraz idzie od lewej do prawej, tak jak hero główny. */
.dz-page { padding: 18px clamp(20px, 4vw, 52px) 46px; }

.dz-top { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.dz-howto {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.dz-howto:hover { border-color: var(--accent); }
.dz-howto .q {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 900; font-size: 12px;
}

.dz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 20px; align-items: start; }

/* Baner na górze używa .ghp-hero / .ghp-hero-img ze styles.css — bez żadnych
   nadpisań, żeby wyglądał identycznie jak hero na stronie głównej. */

/* ----------------------------- HERO (wersja tekstowa — nieużywana,
   zostaje na wypadek powrotu do nagłówka bez grafiki) -------------------- */
.dz-hero {
  position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 18px;
  padding: 34px 34px 26px; border: 1px solid var(--border);
  background:
    radial-gradient(760px 340px at 78% 40%, var(--accent-soft), transparent 62%),
    var(--surface);
}
.dz-hero-art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; }
.dz-hero-art svg {
  position: absolute; right: 14%; top: 50%; transform: translateY(-50%);
  width: 180px; height: 180px; fill: var(--accent); opacity: .55;
}
.dz-hero-in { position: relative; max-width: 620px; }
.dz-hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.dz-hero h1 .p { display: block; color: var(--accent); }
.dz-lead { margin: 14px 0 24px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; max-width: 430px; }
.dz-feats { display: flex; gap: 12px; flex-wrap: wrap; }
.dz-feat { display: flex; align-items: center; gap: 11px; padding-right: 16px; border-right: 1px solid var(--border); }
.dz-feat:last-child { border-right: 0; }
.dz-feat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.dz-feat-ic svg { width: 18px; height: 18px; fill: var(--accent-strong); }
.dz-feat b { display: block; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.dz-feat small { font-size: 11.5px; color: var(--text-muted); }

/* ---------------------------- ZAKŁADKI ---------------------------------- */
.dz-panel { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.dz-tabs { display: flex; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dz-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 11px;
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700;
  font-size: 13.5px; cursor: pointer;
}
.dz-tab svg { width: 16px; height: 16px; fill: currentColor; }
.dz-tab:hover { color: var(--text); }
.dz-tab.is-on { color: var(--text); background: var(--accent-soft); }

/* ------------------------ WIERSZ PROJEKTU ------------------------------- */
.dz-row {
  display: grid; grid-template-columns: 136px minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 18px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.dz-row:last-child { border-bottom: 0; }
.dz-cov { width: 136px; height: 64px; border-radius: 9px; object-fit: cover; display: block; border: 1px solid var(--border); }
.dz-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.dz-name h3 { font-size: 16px; font-weight: 800; margin: 0; }
.dz-tag { font-size: 9.5px; font-weight: 900; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.dz-t-niekompletne { background: rgba(255, 107, 138, .16); color: #ff6b8a; }
.dz-t-nieaktualne  { background: rgba(255, 159, 67, .16);  color: #ff9f43; }
.dz-t-porzucone    { background: rgba(255, 82, 82, .16);   color: #ff5252; }
.dz-t-w_trakcie    { background: rgba(45, 212, 160, .16);  color: #2dd4a0; }
.dz-t-uratowane    { background: rgba(45, 212, 160, .18);  color: #2dd4a0; }
.dz-ver { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; opacity: .8; }
.dz-desc { font-size: 12.5px; color: var(--text-muted); }
.dz-stats { display: flex; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.dz-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.dz-stats svg { width: 14px; height: 14px; fill: currentColor; opacity: .8; }

/* serduszko + komentarze jako przyciski */
.dz-heart, .dz-komBtn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 4px;
  font: inherit; font-size: 12px; color: var(--text-muted); cursor: pointer; border-radius: 8px;
}
.dz-heart svg, .dz-komBtn svg { width: 15px; height: 15px; fill: currentColor; transition: transform .12s ease; }
.dz-heart:hover { color: #e0506a; } .dz-heart:hover svg { transform: scale(1.18); }
.dz-heart.is-on { color: #e0506a; }
.dz-komBtn:hover { color: var(--accent); }
.dz-heart[disabled] { opacity: .55; cursor: default; }

.dz-prog-l { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; margin-bottom: 7px; opacity: .8; }
.dz-prog-wrap { display: flex; align-items: center; gap: 11px; }
.dz-track { flex: 1; height: 6px; border-radius: 99px; background: rgba(128, 128, 128, .22); overflow: hidden; }
.dz-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.dz-pct { font-size: 13px; font-weight: 800; min-width: 38px; text-align: right; }

.dz-actions { display: grid; gap: 7px; justify-items: stretch; }
.dz-det, .dz-kom2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--surface-soft, var(--surface));
  color: var(--text); font: inherit; font-weight: 700; font-size: 12.5px; white-space: nowrap; cursor: pointer;
}
.dz-det:hover, .dz-kom2:hover { border-color: var(--accent); color: var(--accent); }
.dz-kom2 svg { width: 15px; height: 15px; fill: currentColor; }

.dz-pusto { padding: 40px; text-align: center; color: var(--text-muted); }

/* --------------------------- URATOWANE ---------------------------------- */
.dz-saved { margin-top: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 18px; }
.dz-saved h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); font-weight: 900; margin: 0 0 14px; }
.dz-saved-row { display: flex; align-items: center; gap: 12px; }
.dz-arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.dz-arrow:hover { border-color: var(--accent); color: var(--accent); }
.dz-saved-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; flex: 1; overflow: hidden; }
.dz-sv { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/8; }
.dz-sv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-sv .dz-tag { position: absolute; left: 8px; bottom: 8px; }

/* -------------------------- PRAWA KOLUMNA ------------------------------- */
.dz-rail { display: grid; gap: 16px; }
.dz-box { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 18px; }
.dz-box-t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); font-weight: 900; text-align: center; margin-bottom: 14px; }
.dz-act { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 13px; border: 1px solid transparent; cursor: pointer; width: 100%; background: none; font: inherit; text-align: left; color: var(--text); }
.dz-act:hover { background: var(--accent-soft); border-color: var(--border); }
.dz-act-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); }
.dz-act-ic svg { width: 21px; height: 21px; fill: var(--accent-strong); }
.dz-act-b { flex: 1; min-width: 0; }
.dz-act-b b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.dz-act-b small { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; display: block; }
.dz-act-ch { fill: var(--text-muted); width: 16px; height: 16px; flex: none; opacity: .7; }

.dz-week { position: relative; overflow: hidden; border: 1px solid var(--accent); border-radius: 18px; padding: 18px; background: var(--surface); }
.dz-week-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.dz-week-in { position: relative; }
.dz-week-t { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-strong); font-weight: 900; margin-bottom: 12px; }
.dz-week h3 { font-size: 21px; font-weight: 900; letter-spacing: -.01em; margin: 0; }
.dz-week .dz-tag { display: inline-block; margin: 8px 0 10px; }
.dz-week p { margin: 0 0 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.dz-wbtn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 12px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; font-size: 13.5px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); margin-bottom: 9px; cursor: pointer; }
.dz-wbtn svg { width: 17px; height: 17px; fill: #fff; }
.dz-wbtn2 { background: transparent; border: 1px solid var(--border); color: var(--text); margin-bottom: 0; }
.dz-wbtn2 svg { fill: currentColor; }
.dz-wbtn2:hover { border-color: var(--accent); color: var(--accent); }

.dz-statsgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.dz-st-ic { width: 34px; height: 34px; margin: 0 auto 7px; display: grid; place-items: center; }
.dz-st-ic svg { width: 24px; height: 24px; }
.dz-st-n { font-size: 22px; font-weight: 900; line-height: 1; }
.dz-st-l { font-size: 10px; color: var(--text-muted); line-height: 1.3; margin-top: 5px; display: block; }

.dz-cta-p { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 0 0 13px; line-height: 1.5; }
.dz-cta-b { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.dz-cta-b:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------- OKNO KOMENTARZY (modal) -------------------------- */
.dz-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; }
.dz-modal[hidden] { display: none; }
.dz-modal-tlo { position: absolute; inset: 0; background: rgba(6, 4, 14, .72); backdrop-filter: blur(3px); }
.dz-modal-box {
  position: relative; width: min(680px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px;
}
.dz-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dz-modal-head img { width: 84px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.dz-modal-head h2 { font-size: 19px; margin: 0; }
.dz-modal-sub { color: var(--text-muted); font-size: 12.5px; margin: 0 0 16px; }
.dz-modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.dz-modal-x:hover { border-color: var(--accent); color: var(--accent); }
/* --- okno komentarzy ---------------------------------------------------
   W oknie chowamy przycisk zwijania (panel otwieramy programowo). NIE
   wymuszamy display:block — wcześniejszy !important pokazywał panel, zanim
   widget zdążył go zbudować, przez co okno było puste i rozjechane.
   Reszta stylów (km-*) siedzi w komentarze.css, który ta strona MUSI wczytać. */
.dz-modal .kt { margin: 0; }
.dz-modal .kt-toggle { display: none; }
.dz-modal .kt-panel { padding: 0; border: 0; background: none; margin: 0; }

/* pole pisania — wyraźnie oddzielone od listy */
.dz-modal .km-form {
  background: var(--surface-soft, var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.dz-modal .km-form textarea {
  width: 100%; min-height: 84px; resize: vertical; padding: 11px 13px;
  border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; outline: none;
}
.dz-modal .km-form textarea:focus { border-color: var(--accent); }
.dz-modal .km-jako { margin: 0 0 9px; font-size: 12.5px; color: var(--text-muted); }
.dz-modal .km-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.dz-modal .km-send {
  padding: 9px 18px; border: 0; border-radius: 11px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; font: inherit; font-weight: 800; font-size: 13px;
}

/* nagłówek listy + sama lista */
.dz-kom-naglowek {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 800; margin: 0 0 10px;
  padding-top: 4px; border-top: 1px solid var(--border);
}
.dz-kom-naglowek span { font-weight: 600; color: var(--text-muted); font-size: 12.5px; }
.dz-modal .km-lista { display: grid; gap: 14px; }
.dz-modal .km-watek { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.dz-modal .km-watek:last-child { border-bottom: 0; padding-bottom: 0; }
.dz-modal .km-pusto {
  margin: 0; padding: 26px; text-align: center; color: var(--text-muted);
  border: 1px dashed var(--border); border-radius: 13px; font-size: 13px;
}
/* avatar admina bez CSS potrafił wyświetlić się jako ogromne zdjęcie */
.dz-modal .km-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.dz-modal .km-avatar-sm { width: 22px; height: 22px; }

/* pola formularza zgłoszenia */
.dz-field { display: block; margin-bottom: 14px; }
.dz-field > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.dz-field input, .dz-field textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-soft, var(--surface)); color: var(--text); font: inherit; font-size: 13.5px; outline: none;
}
.dz-field textarea { resize: vertical; min-height: 96px; }
.dz-field input:focus, .dz-field textarea:focus { border-color: var(--accent); }
#dzFormMsg { margin: 12px 0 0; }

/* ---------------------------- RESPONSYWNOŚĆ ----------------------------- */
@media (max-width: 1240px) { .dz-cols { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .dz-row { grid-template-columns: 96px minmax(0, 1fr); row-gap: 12px; }
  .dz-cov { width: 96px; height: 52px; }
  .dz-actions { grid-auto-flow: column; justify-content: start; }
  .dz-hero { padding: 24px 20px; }
  .dz-hero-art { display: none; }
}

/* okno „Jak działa to miejsce?" */
.dz-jak { display: grid; gap: 14px; margin: 16px 0 6px; }
.dz-jak-krok { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.dz-jak-n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 900; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.dz-jak-krok b { display: block; font-size: 14px; margin-bottom: 3px; }
.dz-jak-krok small { display: block; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.dz-jak-h { font-size: 14px; margin: 18px 0 8px; }

/* wyszukiwarka (zakładka „Uratowane") */
.dz-szukaj { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.dz-szukaj[hidden] { display: none; }
.dz-szukaj > svg { width: 18px; height: 18px; fill: var(--text-muted); flex: none; }
.dz-szukaj input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-soft, var(--surface)); color: var(--text); font: inherit; font-size: 13.5px; outline: none;
}
.dz-szukaj input:focus { border-color: var(--accent); }
.dz-szukaj-ile { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
