/* ═══════════════════════════════════════════
   ANALYTIX WWW — Agents Search Page Styles
   Light-theme port of dashboard store.css
   ═══════════════════════════════════════════ */

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

/* ── Page header ── */
.page-header { margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.35rem; font-weight: 800; color: #1f1f1f; margin: 0 0 .2rem; }
.page-header .text-muted { font-size: .85rem; color: #5f6368; margin: 0; }

/* ── Filters row ── */
.filters-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.search-bar {
  display: flex;
  flex: 1 1 200px;
  min-width: 0;
  gap: .5rem;
}
.search-bar input {
  flex: 1;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .85rem;
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.search-bar input:focus { border-color: #a855f7; }
.search-bar input::placeholder { color: #9ca3af; }

.filter-select {
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  padding: .4rem .6rem;
  font-size: .82rem;
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.results-count {
  font-size: .75rem;
  color: #5f6368;
  margin: .5rem 0;
}

/* ── Agent card ── */
.agent-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1.15rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.agent-card:hover {
  border-color: rgba(168,85,247,.3);
  box-shadow: 0 2px 12px rgba(168,85,247,.08);
}
.agent-icon-wrap { flex-shrink: 0; width: 48px; height: 48px; }
.agent-card-head {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .75rem;
}
.agent-card-head-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.agent-card .agent-name {
  font-size: .88rem;
  font-weight: 700;
  color: #1f1f1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.agent-card .agent-developer {
  font-size: .72rem;
  color: #5f6368;
  margin: 0;
}
.agent-card .agent-desc {
  font-size: .78rem;
  line-height: 1.5;
  color: #3c4043;
  margin-bottom: .6rem;
  max-height: calc(.78rem * 1.5 * 3);
  overflow: hidden;
}

/* ── Badge rows ── */
.ac-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .6rem;
  max-height: 3.2em;
  overflow: hidden;
}
.ac-cat-badge, .ac-model-badge, .ac-cap-badge {
  font-size: .6rem !important;
  padding: .14rem .45rem !important;
  border-radius: 9999px !important;
}
.ac-proto-badge {
  font-size: .6rem !important;
  padding: .12rem .4rem !important;
  border-radius: 4px !important;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ── Updated + badges row ── */
.ac-plat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.ac-updated {
  font-size: .7rem;
  color: #5f6368;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer: stars + protocol ── */
.ac-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: auto;
}
.ac-rating {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
}
.ac-reviews { font-size: .68rem; color: #5f6368; }

/* ── Skeleton cards ── */
.skeleton-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 1.25rem;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pagination-info { font-size: .82rem; color: #5f6368; }

/* ── Filter modal ── */
.filter-section { margin-bottom: 1rem; }
.filter-section-title {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5f6368;
  margin-bottom: .5rem;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-pill {
  font-size: .75rem;
  padding: .28rem .65rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: #3c4043;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.filter-pill:hover { border-color: rgba(0,0,0,.25); background: rgba(0,0,0,.02); }
.filter-pill.selected {
  background: rgba(168,85,247,.08);
  border-color: #a855f7;
  color: #a855f7;
  font-weight: 600;
}

/* Filter badge on toggle button */
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #a855f7;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  margin-left: .35rem;
  padding: 0 .3rem;
}

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .5rem;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .18rem .5rem;
  border-radius: 9999px;
  background: rgba(168,85,247,.08);
  color: #a855f7;
  border: 1px solid rgba(168,85,247,.25);
}
.active-chip .chip-x {
  cursor: pointer;
  font-size: .7rem;
  opacity: .7;
  transition: opacity .15s;
}
.active-chip .chip-x:hover { opacity: 1; }
.active-chip-group {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
