/* Spam board — distinctive WHODIS identity, not a table, not phpBB */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --whodis-purple: #5d3fd3;
  --heat-low: #7c5cff;
  --heat-med: #f59e0b;
  --heat-high: #ef4444;
  --verified: #14b8a6;
}

.spam-page {
  background:
    radial-gradient(ellipse 90% 50% at 8% -10%, rgba(93, 63, 211, 0.22), transparent 56%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(168, 85, 247, 0.1), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

.spam-hero {
  padding: 2rem 0 1.4rem;
}

.spam-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(93, 63, 211, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.32);
  color: #d8b4fe;
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.spam-hero h1 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.spam-hero .lead {
  margin-bottom: 1.15rem;
}

.spam-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
}

.spam-search {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.spam-search .lookup-input {
  flex: 1;
  min-width: 0;
}

.spam-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.spam-chip {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 24, 39, 0.7);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.spam-chip[aria-pressed="true"],
.spam-chip:hover {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(93, 63, 211, 0.18);
}

.spam-demo-banner {
  margin: 1rem 0 0;
  border: 1px dashed rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.spam-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.spam-grid > .spam-empty { grid-column: 1 / -1; }

.spam-card {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 42%),
    linear-gradient(165deg, #161e32 0%, var(--surface) 72%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.spam-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--heat-bar, var(--heat-low));
}

.spam-card[data-heat="low"] { --heat-bar: linear-gradient(90deg, #5d3fd3, #a855f7); }
.spam-card[data-heat="med"] { --heat-bar: linear-gradient(90deg, #f59e0b, #f97316); }
.spam-card[data-heat="high"] {
  --heat-bar: linear-gradient(90deg, #ef4444, #f59e0b);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12), 0 18px 40px rgba(127, 29, 29, 0.18);
}

.spam-card:hover {
  border-color: rgba(168, 85, 247, 0.38);
  transform: translateY(-2px);
}

.spam-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.spam-heat-face {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.spam-number {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.42rem, 6vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.15rem 0 0.2rem;
}

.spam-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.55rem;
}

.spam-meter {
  display: flex;
  gap: 4px;
  margin-top: 0.85rem;
  align-items: center;
}

.spam-meter span {
  height: 6px;
  flex: 1;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.spam-card[data-heat="low"] .spam-meter span:nth-child(1),
.spam-card[data-heat="med"] .spam-meter span:nth-child(-n+2),
.spam-card[data-heat="high"] .spam-meter span {
  background: var(--heat-bar);
}

.spam-meter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 4.6rem;
  text-align: right;
}

.spam-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(93, 63, 211, 0.16));
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 14px;
  padding: 0.35rem 0.65rem 0.35rem 0.3rem;
  max-width: 100%;
}

.spam-verified img {
  width: 36px;
  height: 40px;
}

.spam-verified strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: #99f6e4;
}

.spam-verified small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.spam-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.spam-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.spam-tag img {
  width: 13px;
  height: 13px;
}

.spam-tag-robocall { color: #e9d5ff; background: rgba(168, 85, 247, 0.16); border-color: rgba(168, 85, 247, 0.28); }
.spam-tag-irs { color: #fecaca; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.28); }
.spam-tag-warranty { color: #fde68a; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); }
.spam-tag-other { color: #cbd5e1; background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.22); }

.spam-empty {
  text-align: center;
  padding: 1.6rem 1.1rem 1.8rem;
}

.spam-empty img.spam-empty-art {
  width: min(340px, 100%);
  height: auto;
  margin: 0 auto 1rem;
}

.spam-empty h2 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -0.03em;
}

.spam-empty .lead {
  margin: 0.4rem auto 1.1rem;
}

.spam-layout {
  display: grid;
  gap: 1rem;
}

.spam-number-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.4rem 1.2rem 1.3rem;
  background:
    radial-gradient(ellipse 80% 70% at 90% 0%, rgba(168, 85, 247, 0.18), transparent 55%),
    linear-gradient(165deg, #171f36, #0e1526);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: var(--shadow);
}

.spam-number-hero[data-heat="high"] {
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.16), 0 20px 50px rgba(127, 29, 29, 0.2);
}

.spam-display {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0.35rem 0 0.55rem;
}

.spam-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 0.7rem 0 1rem;
}

.spam-cta {
  width: 100%;
}

.spam-cta .btn {
  width: 100%;
}

.spam-report-list {
  display: grid;
  gap: 0.7rem;
}

.spam-report {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.05rem;
}

.spam-report header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.spam-handle {
  font-weight: 700;
  font-size: 0.88rem;
}

.spam-report p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.spam-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.7rem 0 0.3rem;
}

.spam-form textarea,
.spam-form select {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font: inherit;
}

.spam-form textarea { min-height: 88px; resize: vertical; }
.spam-form textarea:focus,
.spam-form select:focus { outline: none; border-color: var(--primary); }

.spam-form-status {
  min-height: 1.3em;
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
}

.spam-disclaimer {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.spam-footer-note {
  max-width: 62ch;
}

.spam-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.spam-status-line { margin: 0.4rem 0 0.9rem; }

.spam-more { margin-top: 1rem; text-align: center; }

@media (min-width: 760px) {
  .spam-hero h1 { max-width: 18ch; }
  .spam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spam-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: start; }
  .spam-cta .btn { width: auto; }
  .spam-number-hero { padding: 1.8rem 1.7rem 1.6rem; }
}

@media (min-width: 1100px) {
  .spam-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
