/* DziurkoLot Reviews – motyw czarno-biało-szary, bez gradientów i efektów */
:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #141414;
  --panel-2: #1b1b1b;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --txt: #f2f2f2;
  --txt-2: #c4c4c4;
  --muted: #8a8a8a;
  --dim: #444;
  --white: #fff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--white); }

.wrap { width: min(100% - 36px, 960px); margin: 0 auto; }

/* Nagłówek */
.top {
  height: 64px;
  padding: 0 max(20px, calc((100vw - 960px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand { font-weight: 700; font-size: 16px; letter-spacing: .2px; display: flex; align-items: baseline; gap: 8px; }
.brand span { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero > small, .section small, .admin > small, .auth small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 16px 0 18px;
}
.hero h1 em { font-style: normal; color: var(--muted); }
.hero > p { color: var(--txt-2); max-width: 520px; margin: 0; }

/* Ocena */
.rating {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 640px;
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.rating strong { font-size: 44px; line-height: 1.1; font-weight: 700; }
.stars { color: var(--white); letter-spacing: 2px; }
.rating small, .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.bars { display: grid; gap: 6px; align-content: center; }
.bars > div { display: grid; grid-template-columns: 28px 1fr 24px; gap: 10px; align-items: center; font-size: 12px; color: var(--txt-2); }
.bars i { height: 4px; background: var(--line-2); border-radius: 0; overflow: hidden; }
.bars i b { display: block; height: 100%; background: var(--white); }

/* Sekcje */
.section { padding: 32px 0; }
.heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; gap: 16px; }
.heading h2 { font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 4px 0 0; }
.tag {
  font-size: 12px;
  color: var(--txt-2);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 3px 9px;
}

.panel { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }

/* Formularze */
label { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--txt);
  font: inherit;
  font-weight: 400;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #666; }
input:focus, select:focus, textarea:focus { border-color: var(--white); }
textarea { resize: vertical; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; }
.stars-input label { display: block; margin: 0; font-size: 30px; line-height: 1; color: var(--dim); cursor: pointer; }
.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: var(--white); }
.stars-input input:focus-visible + label { outline: 1px solid var(--muted); outline-offset: 2px; }

label > small, .fine { font-size: 12px; color: var(--muted); font-weight: 400; }
.fine { margin: 14px 0 0; }

/* Przyciski */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.primary { background: var(--white); color: #000; border-color: var(--white); }
.primary:hover { background: #d9d9d9; border-color: #d9d9d9; color: #000; }
.ghost { border-color: var(--line-2); background: transparent; color: var(--txt); }
.ghost:hover { border-color: var(--white); }
.danger { background: transparent; border-color: var(--line-2); color: var(--txt-2); }
.danger:hover { border-color: #fff; color: #fff; }

.notice { margin: 18px 0; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 4px; color: var(--txt); font-size: 14px; }

/* Honeypot (pole przeciwko botom) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Opinie */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review { padding: 20px; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--txt); border-radius: 50%; font-weight: 600; }
.who { flex: 1; }
.who b { font-size: 14px; font-weight: 600; }
.review p, .admin-review p { font-size: 14px; color: var(--txt-2); overflow-wrap: anywhere; margin: 10px 0 0; }
.dim { color: var(--dim); }

.empty { text-align: center; padding: 40px; border: 1px dashed var(--line-2); border-radius: 6px; color: var(--muted); }
.empty h3 { color: var(--txt); margin: 0 0 6px; }
.empty p { margin: 0; }

footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0; margin-top: 24px; color: var(--muted); font-size: 12px; }
footer a:hover { color: var(--white); text-decoration: underline; }

/* Logowanie / konfiguracja */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .panel { width: min(100%, 400px); display: grid; gap: 12px; }
.auth h1, .admin h1 { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin: 4px 0 8px; }
.auth a { font-size: 13px; color: var(--muted); }
.auth a:hover { color: var(--white); }

/* Panel admina */
.admin { padding-top: 44px; padding-bottom: 50px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.stats .panel { display: grid; gap: 4px; }
.stats strong { font-size: 28px; font-weight: 700; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 24px 0; }
.tabs a { padding: 10px 12px; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--white); }
.tabs .active { color: var(--white); border-bottom-color: var(--white); }
.admin-review { margin: 12px 0; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.actions form { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .top { padding: 0 14px; }
  .hero { padding: 48px 0 32px; }
  .rating { grid-template-columns: 1fr; gap: 20px; }
  .grid, .reviews { grid-template-columns: 1fr; }
  .heading { align-items: flex-start; flex-direction: column; }
  .panel { padding: 18px; }
  .stats { gap: 8px; }
  .stats .panel { padding: 12px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .actions form { width: 100%; }
  .actions button { flex: 1; }
  footer { flex-direction: column; gap: 8px; }
}
