/* Scam Site Detector — deliberately plain, old-school WordPress-era styling.
   No frameworks, no external fonts, no CDNs. Just simple, readable HTML. */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #e9e9e4;
  color: #222;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

/* Header bar */
.header {
  background: #2e4a62;
  color: #fff;
  margin: 0 -12px 18px;
  padding: 14px 18px;
  border-bottom: 4px solid #1d3346;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav a {
  color: #cfe0ee;
  text-decoration: none;
  margin-left: 16px;
  font-size: 13px;
}
.nav a:hover { color: #fff; text-decoration: underline; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid #bcbcb4;
  border-radius: 3px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 #d7d7cf;
}

h1 { font-size: 22px; margin: 0 0 10px; color: #223; }
h2 { font-size: 17px; margin: 0 0 10px; color: #2e4a62;
     border-bottom: 1px solid #e2e2da; padding-bottom: 5px; }
.lead { color: #333; margin-top: 0; }
.hint { font-size: 13px; color: #666; }
.muted { color: #777; }
.crumb { margin: 0 0 8px; font-size: 13px; }
.crumb a, .hint a { color: #2e4a62; }

/* Search form */
.scanform { display: flex; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.scanform input[type=text] {
  flex: 1 1 320px;
  padding: 10px 12px;
  border: 1px solid #999;
  border-radius: 3px;
  font-size: 15px;
  background: #fcfcf9;
}
.scanform input[type=submit] {
  padding: 10px 18px;
  background: #3a7a3a;
  color: #fff;
  border: 1px solid #2c5f2c;
  border-radius: 3px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}
.scanform input[type=submit]:hover { background: #316531; }
.scanform input[type=submit]:disabled { background: #888; border-color:#777; cursor: default; }

.alert {
  background: #fbeaea;
  border: 1px solid #d9a2a2;
  color: #8a2020;
  padding: 10px 12px;
  border-radius: 3px;
  margin: 10px 0;
}

/* Verdict banner */
.verdict {
  border: 2px solid #999;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 6px 0 12px;
  text-align: center;
}
.verdict-level { font-size: 24px; font-weight: bold; }
.verdict-score { font-size: 14px; margin-top: 2px; }
.result-domain { word-break: break-all; }
.summary { font-size: 16px; }

/* Risk levels (muted, readable) */
.level-low      { background: #e8f4e8; border-color: #6aa06a; color: #205020; }
.level-medium   { background: #fbf4e0; border-color: #c9a94a; color: #6d5410; }
.level-high     { background: #fdeede; border-color: #d68a3a; color: #7a3f0c; }
.level-critical { background: #fbe3e1; border-color: #cc4b3f; color: #7c1c14; }

/* Pills in listings */
.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #999;
}

/* Tables */
table { border-collapse: collapse; width: 100%; }
.facts th, .facts td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e2e2da; vertical-align: top; }
.facts th { width: 38%; color: #444; font-weight: bold; background: #f7f7f2; }
.listing th, .listing td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e2e2da; }
.listing th { background: #f0f0e8; color: #444; font-size: 13px; }
.listing a { color: #2e4a62; text-decoration: none; }
.listing a:hover { text-decoration: underline; }

/* Lists */
ul.flags, ul.positives, ul.siblings { margin: 6px 0; padding-left: 22px; }
ul.flags li { margin-bottom: 6px; }
ul.siblings li { font-family: "Courier New", monospace; font-size: 13px; }
.advice ul { padding-left: 22px; }
.advice li { margin-bottom: 5px; }

/* Footer */
.footer {
  margin-top: 22px;
  padding: 14px 4px 0;
  border-top: 1px solid #c4c4bc;
  font-size: 12px;
  color: #555;
}
.footer p { margin: 6px 0; }

/* Let long content (tables/URLs) scroll inside its box instead of the page. */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ *
   Mobile / small screens
 * ------------------------------------------------------------------ */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .page { padding: 0 10px 32px; }

  /* Header stacks; nav wraps under the brand */
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 -10px 16px;
    padding: 12px 14px;
  }
  .brand { font-size: 18px; }
  .nav { display: flex; flex-wrap: wrap; }
  .nav a { margin-left: 0; margin-right: 16px; padding: 4px 0; font-size: 14px; }

  .card { padding: 14px 14px; }
  h1 { font-size: 20px; }
  h2 { font-size: 16px; }
  .verdict-level { font-size: 21px; }

  /* Full-width, thumb-friendly form controls.
     16px font stops iOS Safari from zooming in on focus. */
  .scanform { gap: 10px; }
  .scanform input[type=text],
  .scanform input[type=submit] {
    flex: 1 1 100%;
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
  }

  /* Listing tables collapse: each row becomes a stacked, labelled card. */
  .listing thead { position: absolute; left: -9999px; }   /* visually hide header */
  .listing, .listing tbody, .listing tr, .listing td { display: block; width: 100%; }
  .listing tr {
    border: 1px solid #d7d7cf;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fcfcf9;
  }
  .listing td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 9px 12px;
    text-align: right;
    border-bottom: 1px solid #ececec;
  }
  .listing tr td:last-child { border-bottom: none; }
  .listing td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #555;
    text-align: left;
    flex: 0 0 auto;
  }
  .listing td a { word-break: break-all; }

  /* Key/value facts: give the value more room */
  .facts th, .facts td { padding: 8px 8px; }
  .facts th { width: 44%; }
}
