/* shortname.css — page-specific styling for Boojee Short Name.
 *
 * ⚠ The confidence grades MUST stay visually distinct from one another. The
 * whole point of this tool is that "available (registry said so)" and
 * "available (DNS shrugged)" are different claims; rendering them the same
 * colour would reintroduce exactly the lie it exists to correct. They are also
 * separated by more than hue — each carries its own label text and border
 * weight — so the distinction survives colour blindness and greyscale print.
 */

.sn-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px auto 0;
  max-width: 620px;
}

.sn-search input[type="search"] {
  flex: 1 1 300px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1.02rem;
  color: #f4f2ee;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
}

.sn-search input[type="search"]:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
  border-color: rgba(201, 162, 39, .6);
}

.sn-search input::placeholder { color: rgba(244, 242, 238, .38); }

.sn-search button {
  min-height: 48px;
  flex: 0 0 auto;
}

/* ── results ───────────────────────────────────────────────────────────── */

.sn-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.sn-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .028);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sn-card.is-free   { border-left-color: #4ea56b; }
.sn-card.is-maybe  { border-left-color: #c9a227; }
.sn-card.is-taken  { border-left-color: rgba(255, 255, 255, .14); opacity: .62; }
.sn-card.is-unknown{ border-left-color: rgba(255, 255, 255, .22); }

.sn-domain {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
  word-break: break-all;
  color: #f4f2ee;
}

.sn-domain .sn-tld { color: #c9a227; }
.sn-card.is-taken .sn-domain { color: rgba(244, 242, 238, .55); }
.sn-card.is-taken .sn-domain .sn-tld { color: rgba(201, 162, 39, .5); }

.sn-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.sn-why {
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(244, 242, 238, .62);
}

.sn-evidence {
  font-size: .8rem;
  line-height: 1.5;
  color: rgba(244, 242, 238, .72);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 8px;
  margin-top: 2px;
}

.sn-price {
  font-size: .92rem;
  font-weight: 600;
  color: #f4f2ee;
}
.sn-price .sn-price-src {
  font-weight: 400;
  font-size: .78rem;
  color: rgba(244, 242, 238, .5);
}

/* ── confidence chips ──────────────────────────────────────────────────── */

.sn-conf {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.sn-conf-proof  { background: rgba(255,255,255,.10); color: #e8e5df; border-color: rgba(255,255,255,.26); }
.sn-conf-strong { background: rgba(78,165,107,.16);  color: #8fd8a8; border-color: rgba(78,165,107,.55); }
/* Dashed on purpose: a weak answer is a different KIND of answer, and the
 * border tells you so even in greyscale. */
.sn-conf-weak   { background: rgba(201,162,39,.14);  color: #e2c15a; border-color: rgba(201,162,39,.7); border-style: dashed; }
.sn-conf-none   { background: rgba(255,255,255,.04); color: rgba(244,242,238,.5); border-color: rgba(255,255,255,.16); border-style: dotted; }

.sn-status {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.sn-status-free    { color: #8fd8a8; }
.sn-status-maybe   { color: #e2c15a; }
.sn-status-taken   { color: rgba(244,242,238,.55); }
.sn-status-unknown { color: rgba(244,242,238,.5); }

.sn-buy {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
}

.sn-note { font-size: .84rem; margin-top: 18px; line-height: 1.6; }

/* ── legend ────────────────────────────────────────────────────────────── */

.sn-legend { margin: 0; }
.sn-legend dt { margin-top: 14px; }
.sn-legend dt:first-child { margin-top: 0; }
.sn-legend dd {
  margin: 6px 0 0;
  padding-left: 0;
  font-size: .9rem;
  line-height: 1.65;
  color: rgba(244, 242, 238, .74);
}

@media (max-width: 560px) {
  .sn-search button { flex: 1 1 100%; }
}
