/**
 * BrillaHero zero-result empty state (Sprint 1.3).
 *
 * Rendered above the empty listings grid on any hp_listing archive
 * with zero matches. Brand tokens fall back to readable defaults
 * when not present so the page looks reasonable outside the
 * BrillaHero theme too.
 */

.bh-empty-state {
  --_bh-blu-primary: var(--bh-blu-primary, #0047BB);
  --_bh-blu-strong:  var(--bh-blu-strong, #1A2B5F);
  --_bh-blu-soft:    var(--bh-blu-soft, #B3C5FF);
  --_bh-corallo:     var(--bh-corallo, #EE4E44);
  --_bh-surface:     var(--bh-surface, #F5F6FA);
  --_bh-text-1:      var(--bh-text-1, #1A2B5F);
  --_bh-text-2:      var(--bh-text-2, #877F7D);
  --_bh-border:      var(--bh-border, #E2E6F2);
  --_bh-font-body:   var(--bh-font-body, 'Inter', sans-serif);
  --_bh-font-display:var(--bh-font-display, 'Bricolage Grotesque', sans-serif);

  font-family: var(--_bh-font-body);
  color: var(--_bh-text-1);
  background: #fff;
  border: 1px solid var(--_bh-border);
  border-radius: 14px;
  padding: 28px;
  margin: 0 0 24px;
}

.bh-empty-state__header {
  margin-bottom: 20px;
}
.bh-empty-state__title {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  color: var(--_bh-blu-strong);
  margin: 0 0 8px;
}
.bh-empty-state__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--_bh-text-2);
}

/* ===== Suggested Heroes (parent fallback) ========================= */

.bh-empty-state__heroes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.bh-empty-state__hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--_bh-surface);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 120ms ease, transform 120ms ease;
}
.bh-empty-state__hero:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(26, 43, 95, 0.06);
  transform: translateY(-1px);
}
.bh-empty-state__hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--_bh-blu-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bh-empty-state__hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bh-empty-state__hero-monogram {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
}
.bh-empty-state__hero-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bh-empty-state__hero-name {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--_bh-blu-strong);
}
.bh-empty-state__hero-cats {
  font-size: 13px;
  color: var(--_bh-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Waitlist form =============================================== */

.bh-empty-state__waitlist {
  background: var(--_bh-surface);
  border-radius: 12px;
  padding: 20px;
}
.bh-empty-state__waitlist-title {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--_bh-blu-strong);
  margin: 0 0 14px;
}
.bh-empty-state__waitlist-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.bh-empty-state__waitlist-field {
  flex: 1;
  display: block;
}
.bh-empty-state__waitlist-field input[type="email"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--_bh-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
}
.bh-empty-state__waitlist-field input[type="email"]:focus {
  outline: none;
  border-color: var(--_bh-blu-primary);
  box-shadow: 0 0 0 3px var(--_bh-blu-soft);
}
/* The leading .bh-empty-state__waitlist selector raises specificity
   above the parent theme's generic .button rule that was painting the
   submit blu-primary. The !important on background is a belt-and-braces
   guard because both TaskHive and HivePress hook generic buttons. */
.bh-empty-state__waitlist .bh-empty-state__waitlist-submit {
  padding: 0 22px;
  height: 42px;
  background: var(--_bh-corallo) !important;
  color: #fff !important;
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease;
}
.bh-empty-state__waitlist .bh-empty-state__waitlist-submit:hover:not(:disabled) {
  background: var(--_bh-blu-strong) !important;
}
.bh-empty-state__waitlist-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bh-empty-state__waitlist-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--_bh-text-2);
  line-height: 1.4;
}
.bh-empty-state__waitlist-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.bh-empty-state__waitlist-consent a {
  color: var(--_bh-blu-primary);
}

.bh-empty-state__waitlist-message {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.bh-empty-state__waitlist-message.is-success {
  background: rgba(0, 71, 187, 0.08);
  border-left: 4px solid var(--_bh-blu-primary);
  color: var(--_bh-blu-primary);
}
.bh-empty-state__waitlist-message.is-error {
  background: rgba(238, 78, 68, 0.08);
  border-left: 4px solid var(--_bh-corallo);
  color: var(--_bh-corallo);
}

/* Off-screen honeypot — only bots fill it. */
.bh-empty-state__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* HivePress' default "Nessun risultato" block. Our brand empty state
   covers the same job, so we hide it. This CSS only loads on hp_listing
   archives (see brillahero_empty_state_enqueue), so the rule never fires
   on pages that legitimately want the native message. */
.hp-no-results {
  display: none !important;
}

@media (max-width: 600px) {
  .bh-empty-state {
    padding: 22px;
  }
  .bh-empty-state__title {
    font-size: 22px;
  }
  .bh-empty-state__waitlist-row {
    flex-direction: column;
  }
  .bh-empty-state__waitlist-submit {
    width: 100%;
  }
}
