/* ===== base.css — shared styles for every page on whoisthisai.com ===== */

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Body */
html, body {
  background: #fff;
  color: #111;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  padding: 0 24px;
}

/* Content wrapper */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.pg {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}


/* ===== Nav ===== */

#site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-bottom: 0.5px solid #eee;
  position: relative;
}
.nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}
.nav-home img {
  width: 24px;
  height: 27px;
  flex-shrink: 0;
}
.nav-home svg {
  width: 24px;
  height: 27px;
  flex-shrink: 0;
}
.nav-home:hover { color: #555; }

/* Nav search */
.nav-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 18px;
  position: relative;
}
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}
.nav-search-btn:hover svg circle,
.nav-search-btn:hover svg line {
  stroke: #111;
}
.nav-search-form {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  z-index: 101;
}
.nav-search-form.nav-search-open {
  display: block;
}
.nav-search-form input {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  outline: none;
  width: 220px;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-search-form input:focus {
  border-color: #aaa;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: #111; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #111;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.nav-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.nav-open span:nth-child(2) { opacity: 0; }
.nav-toggle.nav-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ===== Footer ===== */

#site-footer {
  max-width: 860px;
  width: 100%;
  margin: 48px auto 24px;
  padding: 20px 24px 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
#site-footer a { color: #888; text-decoration: none; }
#site-footer a:hover { color: #111; }
.footer-sep { margin: 0 8px; color: #ddd; }


/* ===== Page headings ===== */

h1 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 32px;
  margin-bottom: 16px;
}
h1 + p,
h1 + .subtitle {
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 32px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 6px;
}
h3 + p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ===== Section header (text + line) ===== */

.section-h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-h::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: #eee;
}


/* ===== Live dot ===== */

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}

/* ===== Entity pills ===== */

.r-pl {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-block;
}
.r-pl-agent { background: #FFF0EE; color: #993C1D; }
.r-pl-mcp   { background: #E6F1FB; color: #185FA5; }
.r-pl-wallet { background: #EAF3DE; color: #3B6D11; }


/* ===== Entity icon container ===== */

.r-ic {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.r-ic svg { width: 12px; height: 12px; }
.r-ic-agent  { background: #FFF0EE; }
.r-ic-mcp    { background: #E6F1FB; }
.r-ic-wallet { background: #EAF3DE; }


/* ===== Result rows ===== */

.r {
  padding: 14px 0;
  border-bottom: 0.5px solid #f0f0f0;
}
.r-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.r-chain {
  font-size: 11px;
  color: #aaa;
}
.r-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a0dab;
  margin-bottom: 3px;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.r-title:hover { text-decoration: underline; }

.r-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 6px;
}
.r-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #999;
  align-items: center;
  flex-wrap: wrap;
}

/* Trust/status dot in result stats */
.r-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}


/* ===== Featured card (top result) ===== */

.feat {
  background: #FAFAFA;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}
.feat .r-title {
  font-size: 17px;
}
.feat-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-top: 10px;
  font-size: 12px;
}
.feat-k { color: #999; }
.feat-v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}


/* ===== Sparkline ===== */

.sparkline {
  display: flex;
  align-items: end;
  gap: 1px;
  height: 20px;
  margin-top: 8px;
}
.sparkline span {
  width: 3px;
  border-radius: 1px;
  background: #4ade80;
}


/* ===== Sybil inline warning ===== */

.sybil-i {
  color: #dc2626;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.sybil-i svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}


/* ===== News cards ===== */

.news-card {
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 0.5px solid #eee;
}
.news-t {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}
.news-src {
  font-size: 10px;
  color: #aaa;
}
.news-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0f0;
  color: #777;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 6px;
}
.news-lead {
  border: none;
  background: linear-gradient(135deg, #FFF0EE 0%, #E6F1FB 100%);
}
a.news-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.news-card:hover {
  border-color: #ccc;
}
.news-t {
  color: #111;
}


/* ===== Ad blocks ===== */

.ad {
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  display: block;
}
.ad-label {
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: absolute;
  top: 8px;
  right: 10px;
}
.ad h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}
.ad p {
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.ad-cta {
  font-size: 11px;
  color: #fff;
  text-decoration: underline;
  margin-top: 6px;
  display: inline-block;
}

/* Ad brand gradients */
.ad-rnwy     { background: linear-gradient(135deg, #FF6B5E, #E0503F); }
.ad-aicitizen { background: linear-gradient(135deg, #378ADD, #1a5faa); }
.ad-sartoria { background: linear-gradient(135deg, #8B5CF6, #6D3FD0); }
.ad-sbr      { background: linear-gradient(135deg, #10B981, #0a8c63); }
.ad-airights { background: linear-gradient(135deg, #F59E0B, #d48a09); }
.ad-cyberpink { background: linear-gradient(135deg, #EC4899, #c73a7d); }


/* ===== Agent of the day ===== */

.aotd {
  border-radius: 10px;
  padding: 14px;
  background: #FAFAFA;
  margin-bottom: 16px;
}
.aotd-label {
  font-size: 10px;
  font-weight: 600;
  color: #FF6B5E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.aotd-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}
.aotd-meta {
  font-size: 11px;
  color: #999;
}


/* ===== Data rows (preview pages) ===== */

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.data-label { color: #666; }
.data-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
}
.score { font-size: 20px; font-weight: 500; }
.zone {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  color: #fff;
}

/* Trust zone colors */
.zone-clean   { background: #4ade80; }
.zone-warning { background: #f59e0b; }
.zone-danger  { background: #f43f5e; }
.zone-neutral { background: #888; }


/* ===== Alerts (preview pages) ===== */

.sybil-flag {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding: 12px 16px;
  margin: 24px 0;
  font-size: 13px;
  color: #991b1b;
}
.unscored {
  background: #fafafa;
  border-left: 2px solid #ddd;
  padding: 16px;
  margin: 24px 0;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}


/* ===== CTAs ===== */

.cta {
  display: inline-block;
  margin-top: 32px;
  font-size: 15px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}
.cta:hover { color: #555; border-color: #555; }

.back {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
}
.back:hover { color: #111; }


/* ===== Tables ===== */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-weight: 500;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  border-bottom: 2px solid #eee;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
td a { color: #111; text-decoration: underline; text-decoration-color: #ccc; }
td a:hover { text-decoration-color: #111; }


/* ===== Responsive ===== */

@media (max-width: 640px) {
  body { padding: 0 16px; }

  /* Hamburger visible */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    padding: 16px 24px;
    gap: 16px;
    z-index: 100;
    min-width: 180px;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { font-size: 14px; }

  h1 { font-size: 24px; }

  .data-row { font-size: 13px; gap: 12px; }
  .data-value { font-size: 13px; }
  .score { font-size: 18px; }

  table { font-size: 13px; }
  th { font-size: 11px; padding: 6px 8px; }
  td { padding: 8px; }

  .cta { font-size: 14px; }
}
