/* wa-lint: skip */
/* ============================================================
   stand-hero-udstillere.css — hero partial: udstiller-grid.
   A static phone/list mock with role-aware overlays.
   ============================================================ */

.stand-hero-list {
  position: relative;
  width: min(100%, 720px);
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 22px 22px 24px;
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .stand-hero-list { background: var(--surface); }

.stand-hero-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.stand-hero-list__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.015em;
}
.stand-hero-list__sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Search bar */
.stand-hero-list__searchwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}
.stand-hero-list__searchwrap svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.stand-hero-list__q { flex: 1 1 auto; }

/* Chips */
.stand-hero-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 14px;
}
.stand-hero-list__chips .chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--brand-30);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.stand-hero-list__chips .chip--all {
  background: var(--accent);
  color: rgb(255, 255, 255);
}

/* Grid */
.stand-hero-list__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ex-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgb(255, 255, 255);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color .25s, opacity .25s, transform .15s, box-shadow .2s;
}
[data-theme="dark"] .ex-card { background: rgba(255,255,255,0.02); }

.ex-card__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex: 0 0 auto;
}

.ex-card__meta { flex: 1 1 auto; min-width: 0; }
.ex-card__name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Role-aware: udstiller — ALL non-mine fade, "din profil" pops */
.stand[data-role="udstiller"] .stand-hero-list .ex-card:not(.ex-card--mine) { opacity: 0.55; }

/* Role-aware: besøgende — favorite chip + faved row */
.stand[data-role="besoegende"] .stand-hero-list__chips .chip--all { opacity: 0.6; }
.stand[data-role="besoegende"] .stand-hero-list__chips .chip--design {
  background: var(--accent);
  color: rgb(255, 255, 255);
}

/* === Overlays — same panel pattern as program/standkort === */
.stand-hero-list__overlay {
  position: absolute;
  top: 14px; right: 14px;
  background: rgb(29, 35, 39);
  color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
  display: none;
  max-width: 64%;
}
.stand-hero-list__overlay strong {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.stand[data-role="arrangoer"]  .stand-hero-list__overlay--arrangoer,
.stand[data-role="udstiller"]  .stand-hero-list__overlay--udstiller,
.stand[data-role="besoegende"] .stand-hero-list__overlay--besoegende {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Arrangør stat-panel: two stats side-by-side */
.stand-hero-list__overlay--arrangoer {
  display: none;
  background: rgb(255, 255, 255);
  color: var(--primary);
  border: 1px solid var(--line);
  padding: 10px 14px;
}
.stand-hero-list__overlay--arrangoer .stand-hero-list__stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 14px;
}
.stand-hero-list__overlay--arrangoer .stand-hero-list__stat:last-child { margin-right: 0; }
.stand-hero-list__overlay--arrangoer strong {
  font-size: 18px;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin: 0;
}
.stand-hero-list__overlay--arrangoer em {
  font-size: 10px;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.stand[data-role="arrangoer"] .stand-hero-list__overlay--arrangoer {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

/* Responsive */
@media (max-width: 640px) {
  .stand-hero-list { padding: 16px 14px 18px; }
  .stand-hero-list__grid { grid-template-columns: 1fr; }
  .stand-hero-list__overlay {
    position: static;
    margin-top: 12px;
    max-width: 100%;
  }
}
