/**
 * weave-echo-facet.css — Echoes discovery cards (weave-echo-1)
 */

.echoes-facet-host {
  margin: 0 0 1.5rem;
}

.echoes-facet-host.hidden {
  display: none !important;
}

.echoes-facet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.85rem;
}

.echoes-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.echoes-kind-btn {
  appearance: none;
  border: 1px solid rgba(157, 107, 255, 0.35);
  background: transparent;
  color: #a78bfa;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.echoes-kind-btn:hover {
  background: rgba(157, 107, 255, 0.12);
}

.echoes-kind-btn.is-active {
  background: rgba(157, 107, 255, 0.22);
  color: #fff;
  border-color: #9d6bff;
}

.echoes-pilot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #b8b0d0;
  cursor: pointer;
  user-select: none;
}

.echoes-status {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #888;
}

.echoes-grid {
  /* reuse weave-results-grid class in markup */
}

/* Card — monogram well, no external image pipeline */
.echoes-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem !important;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    165deg,
    rgba(32, 24, 52, 0.92) 0%,
    rgba(14, 10, 28, 0.96) 100%
  );
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 15rem;
}

.echoes-card:hover,
.echoes-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.echoes-card--person {
  border-left: 3px solid rgba(230, 184, 74, 0.65);
}
.echoes-card--group {
  border-left: 3px solid rgba(157, 107, 255, 0.65);
}
.echoes-card--place {
  border-left: 3px solid rgba(62, 201, 212, 0.65);
}

.echoes-card__media {
  height: 7.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(157, 107, 255, 0.25), transparent 55%),
    rgba(8, 6, 20, 0.95);
}

.echoes-card__mono {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #e8e0ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.echoes-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 auto;
  padding: 0.1rem 0.15rem;
}

.echoes-card__kind {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 10, 22, 0.72);
  color: #e8fbfc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.echoes-card__verified {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 222, 160, 0.5);
  color: #7ddea0;
  background: rgba(16, 28, 20, 0.7);
}

.echoes-card__title {
  margin: 0.15rem 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f4f0ff;
  line-height: 1.3;
}

.echoes-card__summary {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(200, 190, 230, 0.8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.echoes-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.echoes-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(22, 18, 40, 0.9);
  border: 1px solid rgba(80, 70, 120, 0.55);
  color: #c8c0e0;
}

.echoes-card__actions {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.echoes-card__cta {
  font-size: 0.82rem;
  font-weight: 650;
  color: #7fd4e0;
  text-decoration: none;
}

.echoes-card__cta:hover {
  text-decoration: underline;
}

body.weave-echo-mode #results-grid,
body.weave-echo-mode #odyssey-featured-host {
  display: none !important;
}

body.weave-echo-mode .weave-cabinet-frame {
  display: none !important;
}

/* Wave 1 — copyable Echo ID on cards */
.echoes-card__id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.55rem 0 0.35rem;
  font-size: 0.72rem;
}
.echoes-card__id-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7d7699;
}
.echoes-card__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  color: #c8e8ff;
  word-break: break-all;
  max-width: 100%;
}
.echoes-card__copy {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 249, 255, 0.35);
  background: rgba(0, 249, 255, 0.1);
  color: #9ef;
  cursor: pointer;
}
.echoes-card__copy:hover {
  background: rgba(0, 249, 255, 0.2);
}

/* Echo visage on discovery cards */
.echoes-card__media--img {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.echoes-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: inherit;
}
.echoes-card__media--img .echoes-card__mono--fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

