/* ============================================================
   yespl.css — Реєстр ЄСПЛ (monitor.lgbt.in.ua/yespl/)
   Кольори узгоджені з monitor.css
   ============================================================ */

/* ── Hero ── */
.yespl-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 52px 0 64px;
}
.yespl-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.yespl-hero .hero-badge {
  display: inline-block;
  background: rgba(215,164,10,.18);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(215,164,10,.3);
  margin-bottom: 20px;
}
.yespl-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 700px;
}
.yespl-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.65;
}
.yespl-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 8px;
}
.yespl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.yespl-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.yespl-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

/* ── Filters ── */
.yespl-filters-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 40;
}
.yespl-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.yespl-search {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  background: #fff;
}
.yespl-search:focus { border-color: var(--navy); }
.yespl-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  max-width: 180px;
}
.yespl-select:focus { border-color: var(--navy); }
.yespl-filter-count {
  margin-left: auto;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}

/* ── Cases list ── */
.yespl-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.yespl-loader {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted);
  font-size: .9rem;
}
.yespl-loader .spinner-ring {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.yespl-empty {
  text-align: center;
  padding: 64px 24px;
}
.yespl-empty h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.yespl-empty p { font-size: .9rem; color: var(--muted); }

/* ── Case card ── */
.yespl-case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yespl-case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.yespl-case-card:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(14,30,64,.1);
}
.yespl-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.yespl-case-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1 1 200px;
  min-width: 0;
  line-height: 1.35;
}
.yespl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.yespl-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.yespl-badge--violation      { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.yespl-badge--no_violation   { background: #ecfdf3; color: #15803d; border-color: #bbf7d0; }
.yespl-badge--inadmissible   { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.yespl-badge--friendly_settlement { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.yespl-badge--struck_out     { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.yespl-badge--just_satisfaction { background: #f0fdf4; color: #0f766e; border-color: #99f6e4; }
.yespl-badge--grand_chamber  { background: rgba(215,164,10,.12); color: #7c5a00; border-color: rgba(215,164,10,.3); }
.yespl-badge--chamber        { background: #f8fafc; color: var(--muted); border-color: var(--border); }
.yespl-badge--committee      { background: #f1f5f9; color: #64748b; border-color: #e2e8f0; }
.yespl-badge--leading        { background: rgba(215,164,10,.1); color: #7c5a00; border-color: rgba(215,164,10,.25); }
.yespl-badge--ua             { background: rgba(14,30,64,.07); color: var(--navy); border-color: rgba(14,30,64,.15); }

.yespl-card-meta {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.yespl-card-meta-sep { color: var(--border); }

.yespl-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.yespl-article-chip {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(14,30,64,.07);
  border-radius: 4px;
  color: var(--navy);
  border: 1px solid rgba(14,30,64,.15);
}

.yespl-summary {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yespl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  flex-wrap: wrap;
  gap: 8px;
}
.yespl-hudoc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  transition: border-color .2s, color .2s;
}
.yespl-hudoc-link:hover { border-color: var(--navy); color: var(--navy); }

/* ── Pagination ── */
.yespl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.yespl-page-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: border-color .2s, color .2s;
}
.yespl-page-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.yespl-page-btn:disabled { opacity: .4; cursor: default; }
.yespl-page-info { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ── Footer section (Моніторинг footer reuse) ── */
.footer-section { background: var(--navy); color: rgba(255,255,255,.85); margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .yespl-hero h1 { font-size: 1.5rem; }
  .yespl-stats-row { gap: 20px; }
  .yespl-stat-num { font-size: 1.5rem; }
  .yespl-filters { padding: 10px 16px; }
  .yespl-main { padding: 20px 16px 40px; }
  .yespl-card-head { flex-direction: column; gap: 8px; }
  .yespl-badges { order: -1; }
}
