/* ==========================================================================
   whatPCibought — strona pobierania
   --------------------------------------------------------------------------
   Motyw przepisany z interfejsu aplikacji (src/renderer/styles.css):
   te same zmienne, promienie, hairline'y, jeden stonowany akcent i kolor
   tylko tam, gdzie niesie znaczenie. Bez gradientów i bez poświat.
   ========================================================================== */

:root {
  --bg: #17191d;
  --bg-soft: #1a1d21;
  --panel: #1e2126;
  --panel-strong: #23262c;
  --panel-hover: #2a2e35;
  --border: #2c3037;
  --border-strong: #3b4048;
  --text: #dcdfe4;
  --text-soft: #b7bcc4;
  --muted: #8a9099;
  --dim: #6c727b;
  --accent: #5b93c9;
  --accent-soft: rgba(91, 147, 201, 0.12);
  --good: #61a877;
  --good-soft: rgba(97, 168, 119, 0.14);
  --radius: 5px;
  --radius-sm: 4px;
  --head: 52px;
  --content: 1080px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33373e; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #43484f; background-clip: content-box; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.sitehead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--head);
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; color: inherit; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: var(--accent);
  flex: none;
}
.brand-mark svg { width: 14px; height: 14px; display: block; color: #fff; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 13px; font-weight: 600; letter-spacing: 0.1px; }
.brand-sub { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

.sitenav { display: flex; align-items: center; gap: 16px; margin-left: 12px; flex: 1 1 auto; min-width: 0; }
.sitenav a { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.sitenav a:hover { color: var(--text); text-decoration: none; }

.sitehead-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ==========================================================================
   Przyciski
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  text-decoration: none;
}
.btn:hover { background: var(--panel-hover); border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn.primary { background: #274058; border-color: #35597a; color: #d7e8f7; }
.btn.primary:hover { background: #2e4b67; border-color: #406b91; color: #e6f1fb; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel-hover); }

.mini-select {
  height: 28px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.mini-select:hover { border-color: var(--border-strong); color: var(--text); }

.btn-xl {
  height: auto;
  min-height: 54px;
  padding: 10px 16px;
  gap: 11px;
}
.btn-xl svg { width: 20px; height: 20px; }
.btn-xl-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.btn-xl-strong { font-size: 13.5px; font-weight: 600; }
.btn-xl-sub { font-size: 10.5px; font-weight: 400; color: var(--dim); font-family: var(--mono); }
.btn-xl.primary .btn-xl-sub { color: #9fc0dc; }

/* ==========================================================================
   Układ sekcji
   ========================================================================== */
main { padding: 0 18px; }

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }
.hero-section { padding-top: 34px; }

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.view-title { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: 0; }
.view-sub { color: var(--muted); font-size: 12px; margin: 4px 0 0; max-width: 84ch; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ==========================================================================
   Sekcja pobierania
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.hero-title { font-size: 36px; font-weight: 600; margin: 12px 0 6px; letter-spacing: -0.5px; line-height: 1.1; }
.hero-lead { margin: 0; font-size: 14px; color: var(--text-soft); line-height: 1.65; max-width: 70ch; }

.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.download-actions .btn-xl { flex: 1 1 260px; }

.hash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 10px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.hash-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; color: var(--dim); flex: none; }
.hash-row code { font-size: 11px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash-link { font-size: 11px; flex: none; }

.dl-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px 14px;
}
.dl-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.dl-card-title svg { width: 13px; height: 13px; opacity: 0.7; }
.dl-card > .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Karty i siatki
   ========================================================================== */
.grid { display: grid; gap: 10px; align-items: start; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px 13px;
  position: relative;
  min-width: 0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.card-title svg { width: 13px; height: 13px; opacity: 0.7; }

.mt-16 { margin-top: 12px; }

/* ==========================================================================
   Kafelki możliwości
   ========================================================================== */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.quick-tile {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transition: background 0.12s, border-color 0.12s;
}
.quick-tile:hover { border-color: var(--border-strong); background: var(--panel-hover); }
.quick-icon { color: var(--accent); flex: none; display: grid; place-items: center; margin-top: 1px; }
.quick-icon svg { width: 15px; height: 15px; }
.quick-title { font-size: 12.5px; font-weight: 600; }
.quick-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

/* ==========================================================================
   Tekst i komendy
   ========================================================================== */
.body-text { margin: 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }

.note { font-size: 11px; color: var(--dim); margin: 10px 0 0; line-height: 1.55; }
.note code, .body-text code { font-size: 11px; color: var(--text-soft); }

.mono { font-family: var(--mono); font-size: 11px; }
code { font-family: var(--mono); font-size: 11.5px; }

.cmd-row { display: flex; align-items: stretch; gap: 6px; margin-top: 6px; }
.cmd {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cmd code { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn { height: auto; padding: 0 8px; }

/* ==========================================================================
   Kroki
   ========================================================================== */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding: 7px 0 7px 32px;
  counter-increment: step;
  border-bottom: 1px solid rgba(44, 48, 55, 0.7);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 21px;
  height: 21px;
  border-radius: 3px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.steps strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.steps span { font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   Wiersze właściwości, chipy, plakietki
   ========================================================================== */
.kv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.kv-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(44, 48, 55, 0.7);
}
.kv-item:last-child { border-bottom: none; }
.kv-item:hover { background: rgba(42, 46, 53, 0.5); }
.kv-item .k { flex: 0 0 42%; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.kv-item .v { flex: 1 1 auto; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-word; min-width: 0; }
.kv-item .v.sm { font-size: 11.5px; font-weight: 400; }
.kv-item .hint { font-size: 10.5px; color: var(--dim); font-weight: 400; margin-left: 6px; }

.chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-soft);
  white-space: nowrap;
}
.chip.good { background: var(--good-soft); border-color: rgba(97, 168, 119, 0.35); color: #a8d8b6; }
.chip.accent { background: var(--accent-soft); border-color: rgba(91, 147, 201, 0.35); color: #a9cbe8; }

.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--panel-strong);
  color: var(--text-soft);
}
.badge.good { background: var(--good-soft); color: #a8d8b6; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  cursor: pointer;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  width: 12px;
  flex: none;
}
.faq details[open] summary::before { content: "–"; }
.faq summary:hover { background: var(--panel-hover); }
.faq details > p { margin: 0; padding: 0 13px 13px 34px; }

/* ==========================================================================
   Stopka
   ========================================================================== */
.sitefoot { border-top: 1px solid var(--border); background: var(--bg-soft); }

.sitefoot-grid {
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
}
.sitefoot-grid > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sitefoot-grid a { color: var(--muted); font-size: 12px; word-break: break-all; }
.sitefoot-grid a:hover { color: var(--text); text-decoration: none; }
.sitefoot-grid .brand { margin-bottom: 4px; }
.foot-title {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}

.sitefoot-credit {
  border-top: 1px solid var(--border);
  padding: 12px 18px 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   Toasty
   ========================================================================== */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 60; }
.toast {
  min-width: 240px;
  max-width: 400px;
  background: var(--panel-strong);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 11.5px;
  color: var(--text-soft);
  animation: toast-in 0.2s ease;
}
.toast .toast-title { font-weight: 600; color: var(--text); margin-bottom: 1px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsywność i druk
   ========================================================================== */
@media (max-width: 980px) {
  .grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .sitefoot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sitehead { height: auto; flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .sitenav { order: 3; flex: 1 1 100%; margin-left: 0; gap: 8px 14px; flex-wrap: wrap; }
  .sitehead-actions { margin-left: auto; }
  .section { padding: 24px 0; }
  .hero-title { font-size: 30px; }
}

@media (max-width: 620px) {
  main { padding: 0 14px; }
  .hero-title { font-size: 26px; }
  .hero-lead { font-size: 13px; }
  .brand-sub { display: none; }
  .sitefoot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 14px; }
  .download-actions .btn-xl { flex: 1 1 100%; }
  .hash-row { flex-wrap: wrap; }
  .hash-row code { white-space: normal; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .sitehead, .sitefoot, .toasts, .download-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section { border-bottom-color: #bbb; page-break-inside: avoid; }
  .card, .quick-tile, .dl-card { border-color: #bbb; background: #fff; }
  .cmd { background: #f4f4f4; border-color: #bbb; }
}
