/* gdziesusza.pl — homepage v2 (light default, responsive) */

:root{
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17,24,39,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --brand: #16a34a;
  --brand-2: #0ea5e9;
  --btn: #111827;
  --btnText: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1120px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a{color:inherit}
.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-link{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800}
.brand-emoji{font-size:18px}
.brand-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge{
  font-size:12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22,163,74,.10);
  color: #15803d;
  border: 1px solid rgba(22,163,74,.20);
}
.header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  font-weight: 650;
  font-size: 14px;
  white-space:nowrap;
}
.btn:hover{transform: translateY(-1px); transition: .12s ease}
.btn:active{transform: translateY(0)}
.btn-primary{
  background: linear-gradient(135deg, var(--brand), #22c55e);
  color: #fff;
  border-color: rgba(22,163,74,.35);
}
.btn-ghost{background: var(--surface);}
.btn-small{padding: 8px 12px; font-size: 13px}

/* Hero */
.hero{
  margin: 26px 0 18px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    radial-gradient(1100px 300px at 20% 0%, rgba(14,165,233,.10), transparent 60%),
    radial-gradient(900px 260px at 85% 10%, rgba(22,163,74,.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align:center;
}
.hero h1{
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
}
.hero-sub{margin:0; color: var(--muted);}
.hero-actions{margin-top: 14px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap}

/* Cards */
.card{
  margin: 18px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}
.card-head{display:flex; flex-direction:column; gap: 4px; margin-bottom: 12px}
.card-head-row{flex-direction:row; align-items:flex-end; justify-content:space-between; gap: 12px}
.card h2{margin:0; font-size: 18px}
.muted{color: var(--muted); font-size: 14px}
.nowrap{white-space:nowrap}

/* Voivodeships chips */
.chips{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.chip{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  text-decoration:none;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.chip:hover{border-color: rgba(14,165,233,.35); box-shadow: 0 10px 22px rgba(0,0,0,.06); transform: translateY(-1px); transition: .12s ease}
.chip-name{font-weight:700; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.chip-count{
  margin-left:auto;
  min-width: 34px;
  height: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(17,24,39,.06);
  border: 1px solid rgba(17,24,39,.10);
  font-weight: 800;
}
.chip-suffix{color: var(--muted); font-size: 13px; white-space:nowrap}

/* Table */
.table-wrap{overflow:auto; border-radius: 12px; border: 1px solid var(--border)}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface);
}
.table thead th{
  text-align:left;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table tbody tr:hover{background: rgba(14,165,233,.05)}

/* Type pill */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(17,24,39,.05);
}
.pill-patrol{background: rgba(14,165,233,.10); border-color: rgba(14,165,233,.25)}
.pill-susza{background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.35)}
.pill-nieoznakowany{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.30)}
.pill-alkomat{background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.30)}

/* Comments */
.comments{display:flex; flex-direction:column; gap:10px}
.comment{
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
}
.comment-top{display:flex; justify-content:space-between; gap: 10px; align-items:baseline}
.comment-city{font-size: 14px}
.comment-time{font-size: 12px; color: var(--muted); white-space:nowrap}
.comment-body{margin-top: 6px}

/* Footer */
.site-footer{
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.65);
}
.footer-inner{display:flex; justify-content:center; text-align:center}

/* Responsive */
@media (max-width: 1024px){
  .chips{grid-template-columns: repeat(3, minmax(0,1fr));}
}
@media (max-width: 760px){
  .header-inner{padding: 10px 0}
  .chips{grid-template-columns: repeat(2, minmax(0,1fr));}
  .card{padding: 14px}
  .hero{padding: 18px}
  .card-head-row{flex-direction:column; align-items:flex-start}
  .table{min-width: 640px}
}
@media (max-width: 420px){
  .chips{grid-template-columns: 1fr;}
  .btn{padding: 10px 12px}
}
