/* Hive Badges — two-badge competitive proof system
 *
 * Usage:
 *   <div class="hive-badge-row">
 *     <a class="hive-badge" href="/trust/#verify" data-badge="verified" data-caption="Cryptographic receipt · Patent Pending"></a>
 *     <a class="hive-badge" href="/trust/#echo" data-badge="platinum" data-caption="Cohen's d 1.14 vs LLMLingua-2 · n=600"></a>
 *   </div>
 *
 * Badges are earned, not decorative:
 *   - hive-verified: any primitive that emits a signed receipt
 *   - hive-platinum: trust record with result_status=publishable (n>=500, |d|>=0.3, p<0.01)
 *
 * Max 2 visible per product page. Both link to the underlying trust record.
 */

.hive-badge-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 22px 0;
}

.hive-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  width: 132px;
  padding: 8px 6px;
  border-radius: 10px;
  transition: transform 0.18s ease;
}

.hive-badge:hover {
  transform: translateY(-2px);
}

.hive-badge::before {
  content: '';
  width: 112px;
  height: 112px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.hive-badge[data-badge="verified"]::before {
  background-image: url('/assets/badges/hive-verified-256.png');
}

.hive-badge[data-badge="platinum"]::before {
  background-image: url('/assets/badges/hive-platinum-256.png');
}

.hive-badge .badge-caption {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.04em;
  color: rgba(234, 242, 255, 0.78);
  max-width: 128px;
  text-transform: uppercase;
}

/* Compact inline variant: smaller, single line on right rail */
.hive-badge-row.compact .hive-badge { width: 96px; }
.hive-badge-row.compact .hive-badge::before { width: 80px; height: 80px; }
.hive-badge-row.compact .badge-caption { font-size: 9px; }

/* "Earned by" sidebar on /trust/ — shows which primitive earned which */
.hive-badge-earned-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px 18px;
  align-items: center;
  margin: 18px 0;
}

.hive-badge-earned-grid > .hive-badge {
  width: 96px;
}

.hive-badge-earned-grid > .hive-badge::before { width: 80px; height: 80px; }

.hive-badge-earned-grid > .earned-by {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: rgba(234, 242, 255, 0.86);
}

.hive-badge-earned-grid > .earned-by strong {
  color: #D4A44F;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
