/* Kotlina - Politické kauzy landing page */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: #1a1a2e;
  color: #fff;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a0a8c0;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: #fff;
}

.hero-sub {
  font-size: 0.95rem;
  color: #8b93b0;
  margin-bottom: 2rem;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: #e94560;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #a0a8c0;
  margin-top: 0.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Search bar */
.search-wrap {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
  transition: background 0.2s;
}

.search-wrap input::placeholder { color: #8b93b0; }
.search-wrap input:focus { background: rgba(255,255,255,0.18); }

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8b93b0;
  pointer-events: none;
}

/* ── Party Tabs ────────────────────────────────────────────────── */
.party-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e8eaed;
}

.party-tab {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1.5px solid #e0e3e8;
  background: #fff;
  color: #555;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.party-tab:hover {
  border-color: #e94560;
  color: #e94560;
}

.party-tab.active {
  background: #e94560;
  border-color: #e94560;
  color: #fff;
}

/* ── Content area ──────────────────────────────────────────────── */
.content {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.result-count {
  font-size: 0.85rem;
  color: #888;
}

/* ── Politician Grid ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #e8eaed;
}

.card-body {
  padding: 1rem;
  flex: 1;
}

.card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.2rem;
}

.card-role {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.65rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.party-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Party colours */
.badge-vlada     { background: #1a5fa8; color: #fff; }
.badge-ano       { background: #0047a0; color: #fff; }
.badge-ods       { background: #0057b8; color: #fff; }
.badge-stan      { background: #7cc142; color: #fff; }
.badge-pirati    { background: #5db354; color: #fff; }
.badge-spd       { background: #d9382a; color: #fff; }
.badge-motoriste { background: #6b4fbb; color: #fff; }
.badge-top09     { background: #5e3885; color: #fff; }
.badge-kdu      { background: #f4a600; color: #fff; }

/* Case count chip */
.case-chip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e94560;
  background: #fef0f3;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
}

/* Empty state */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #aaa;
  grid-column: 1 / -1;
}

.no-results p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: #aaa;
  border-top: 1px solid #e0e3e8;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .stats-row { gap: 1.5rem; }
  .stat-number { font-size: 1.9rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}