/* ==============================================
   patent_list.css — Patent browse page
   No Tailwind dependency. Requires shared.css.
   ============================================== */

/* Body */
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ──────────────────────────────── */
.pl-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Filter bar ─────────────────────────────── */
.pl-filter-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 64px;
  z-index: 100;
}

.pl-filter-list {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pl-filter-list::-webkit-scrollbar { display: none; }

.pl-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.pl-filter-btn:hover {
  background: #e2e8f0;
  color: #192f60;
}
.pl-filter-btn.active {
  background: #192f60;
  color: #fff;
  border-color: #192f60;
}

.pl-filter-count {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 1px 5px;
  line-height: 1.4;
}
.pl-filter-btn:not(.active) .pl-filter-count {
  background: rgba(25,47,96,0.10);
  color: #192f60;
}

/* ── Main area ──────────────────────────────── */
.pl-main {
  padding: 24px 0 72px;
}

/* ── Search box ─────────────────────────────── */
.pl-search-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.pl-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pl-search-input {
  flex: 1;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.pl-search-input::placeholder { color: #94a3b8; }
.pl-search-input:focus {
  border-color: #c8960c;
  box-shadow: 0 0 0 3px rgba(200,150,12,0.10);
  background: #fff;
}

.pl-search-btn {
  height: 44px;
  padding: 0 22px;
  background: #192f60;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.pl-search-btn:hover { background: #0f1f3d; }

.pl-clear-btn {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.pl-clear-btn:hover { background: #e2e8f0; color: #334155; }

/* ── Stats bar ──────────────────────────────── */
.pl-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.pl-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #192f60;
  margin: 0 0 4px;
  line-height: 1.2;
}

.pl-subheading {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.pl-filter-info {
  font-size: 13px;
  color: #192f60;
  background: rgba(25,47,96,0.06);
  border-left: 3px solid #c8960c;
  padding: 6px 12px;
  border-radius: 0 4px 4px 0;
  margin: 6px 0 0;
  display: inline-block;
}

.pl-stats-right {
  text-align: right;
  flex-shrink: 0;
}
.pl-count-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: #192f60;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pl-count-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Pagination ─────────────────────────────── */
.pl-pagination { margin: 40px 0 0; }

.pl-page-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pl-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s;
}
.pl-page-btn:hover {
  background: #f8fafc;
  border-color: #192f60;
  color: #192f60;
}
.pl-page-btn.active {
  background: #192f60;
  border-color: #192f60;
  color: #fff;
}

.pl-page-ellipsis {
  color: #94a3b8;
  padding: 0 4px;
  line-height: 40px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .pl-search-row { flex-wrap: wrap; }
  .pl-search-input { min-width: 0; }
  .pl-stats-bar { flex-direction: column; gap: 8px; }
  .pl-stats-right { text-align: left; }
  .pl-count-num { font-size: 1.75rem; }
}
