:root { --b:#e7e7e7; --muted:#666; --bg:#fafafa; --card:#fff; --shadow: 0 10px 25px rgba(0,0,0,.06); }
* { box-sizing: border-box; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin:0; background:var(--bg); color:#111; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px; }
h1 { margin: 0 0 6px; }
h2 { margin: 0 0 14px; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--b); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; margin: 14px 0; }
.row { display:flex; gap:12px; align-items:center; }
.space { justify-content: space-between; }
.grid { display:grid; gap:12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display:flex; flex-direction: column; gap:6px; font-size: 14px; }
input, select { padding: 10px 12px; border-radius: 10px; border:1px solid var(--b); background:#fff; }
.actions { display:flex; gap:10px; align-items:center; padding-top: 10px; flex-wrap: wrap; }
.btn { border: 1px solid #111; background:#111; color:#fff; border-radius: 10px; padding:10px 12px; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn.ghost { background: transparent; color:#111; }
.btn.small { padding: 8px 10px; font-size: 13px; }
.btn.danger { background: #b00020; border-color:#b00020; }
.list { display:flex; flex-direction: column; gap: 12px; }
.item { border: 1px solid var(--b); border-radius: 14px; padding: 12px; background:#fff; }
.title { font-weight: 700; }
.itemTop { display:flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.meta { display:flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.prizes { display:flex; flex-direction: column; gap: 6px; }
.links { margin-top: 10px; }
.badge { display:inline-block; padding: 3px 8px; border-radius: 999px; border:1px solid var(--b); font-size: 12px; margin-left: 6px; }
.badge.ok { border-color: #1a7f37; }
.hidden { display:none; }
.span2 { grid-column: span 2; }
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
}

.checkboxes { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.chk { display:flex; align-items:center; gap:6px; font-size:14px; }

/* Neaktivní soutěže */
.item.inactive {
  border-color: #d32f2f;
  background: #fff5f5;
}
.item.inactive .title {
  color: #b00020;
}

/* Připnuté soutěže */
.item.pinned {
  border-color: #f9a825;
  background: #fffde7;
}
.item.pinned .title::before {
  content: "📌 ";
}

/* ===== Mobile improvements ===== */
@media (max-width: 700px) {
  .container { padding: 14px; }
  .card { padding: 14px; margin: 12px 0; border-radius: 16px; }
  header.row.space { flex-direction: column; align-items: flex-start; gap: 8px; }
  header.row.space .btn { width: 100%; }

  .grid { grid-template-columns: 1fr; }
  .actions { padding-top: 6px; }
  .actions .btn { width: 100%; }
  .actions .btn.ghost { width: 100%; }

  .checkboxes { gap: 8px; }
  .chk { width: 100%; padding: 8px 10px; border: 1px solid var(--b); border-radius: 12px; background: #fff; }
  .chk input { transform: scale(1.15); }

  .item { padding: 12px; border-radius: 16px; }
  .meta { flex-direction: column; gap: 6px; }
  .links .btn { width: 100%; }

  a { word-break: break-word; }
}

/* Slightly larger touch targets */
.btn { min-height: 44px; }
input, select { min-height: 44px; }
select { width: 100%; }

/* Admin buttons wrap nicely */
.item .row { flex-wrap: wrap; }
.item .row .btn { flex: 1 1 auto; }

/* Zvýraznění názvu obchodu */
.shop-name {
  font-size: 18px;
  font-weight: 700;
  color: #1565c0;
}
@media (max-width: 700px) {
  .shop-name {
    font-size: 17px;
  }
}
