/* =========================================
   Orchestration Hub Extension Styles
   accounts.aibiofusion.org/css/orchestration-hub.css
   ========================================= */

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Match cards */
.card.match {
  background: linear-gradient(180deg, var(--white), #f9fafa);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card.match:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(13,18,24,0.08);
}
.card.match h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--indigo);
}
.card.match p {
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: 0.95rem;
}

/* Tag pills (interactive filters) */
.tag-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  margin: 0.25rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: var(--sand);
  color: var(--indigo);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.tag-pill.active,
.tag-pill:hover {
  background: var(--cyan);
  color: var(--white);
  border-color: var(--cyan);
}

/* Badge (score indicator) */
.badge {
  display: inline-block;
  background: var(--green);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-left: 0.5rem;
}

/* Status line */
#status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* Orchestration Hub: UX refinements (CSS-only) */

/* --- Search bar: invite + focus expansion --- */
.search-bar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.search-bar input[type="text"] {
  flex: 1 1 520px;
  max-width: 720px;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15,23,36,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,251,252,0.98));
  box-shadow: 0 6px 18px rgba(11,14,20,0.03);
  transition: box-shadow .18s ease, transform .18s ease, max-width .18s ease;
  font-size: 0.98rem;
  outline: none;
}
.search-bar input[type="text"]:focus {
  box-shadow: 0 10px 30px rgba(0,180,216,0.10);
  border-color: var(--cyan);
  transform: translateY(-2px);
  max-width: 840px;
}

/* Make the search button visually harmonize with .btn but smaller */
.search-bar .btn {
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(0,180,216,0.12);
}

/* --- Filters row: tab-like grouping without changing markup --- */
.filters {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 0.45rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(250,250,251,0.6));
  border-radius: 14px;
  border: 1px solid rgba(13,18,24,0.03);
}
.filters label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-right: 0.35rem;
}

/* Styled selects that read like pills */
.filters select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.45rem 1.05rem 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,36,0.06);
  background: linear-gradient(180deg, var(--white), #fafafa);
  cursor: pointer;
  font-weight: 600;
  color: var(--indigo);
  box-shadow: 0 6px 14px rgba(11,14,20,0.03);
  position: relative;
}

/* Custom arrow using a pseudo-element on a wrapper (keeps markup unchanged) */
.filters select::-ms-expand { display: none; }

/* Focus for selects */
.filters select:focus {
  outline: none;
  box-shadow: 0 8px 22px rgba(0,180,216,0.08);
  border-color: var(--cyan);
}

/* --- Tag block: palette layout and micro interactions --- */
.tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 0.5rem;
}
.tag-pill {
  transform-origin: center;
  transition: transform .14s cubic-bezier(.2,.9,.3,1), box-shadow .14s ease, background .14s ease;
}
.tag-pill:focus {
  outline: 3px solid rgba(0,180,216,0.12);
  outline-offset: 3px;
}
.tag-pill.active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 26px rgba(0,180,216,0.10);
}

/* Clear tags link styling */
.link-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.6rem;
  cursor: pointer;
}
.link-clear:hover { color: var(--indigo); text-decoration: underline; }

/* --- Results: gentle entry animation for dynamic content --- */
@keyframes gentleRise {
  from { opacity: 0; transform: translateY(8px) scale(.995); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.results-grid > * {
  animation: gentleRise .36s ease both;
}

/* Card micro-updates for match results */
.card.match {
  border-left: 4px solid rgba(0,180,216,0.06);
  padding: 1.25rem 1.25rem;
}
.card.match .meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Badge contrast tweak for readability */
.badge {
  background: linear-gradient(180deg, #bff0f9, #90e0ef);
  color: var(--indigo);
  border: 1px solid rgba(0,180,216,0.08);
}

/* Status line: add subtle pulse glyph */
#status {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--muted);
  font-style: italic;
}
#status::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), #00a6c9);
  box-shadow: 0 6px 18px rgba(0,180,216,0.14);
  transform-origin: center;
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.18); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.92; }
}

/* --- Accessibility helpers --- */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* --- Mobile tweaks: keep the warmth, improve spacing --- */
@media (max-width: 720px) {
  .search-bar input[type="text"] { max-width: 100%; flex-basis: auto; }
  .filters { padding: 0.5rem; gap: 0.5rem; }
  .results-grid { gap: 0.9rem; }
}
