/* TruthLens — styles.css. Zero external assets. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  line-height: 1.55;
}

.site-header {
  background: #1e293b;
  color: #f8fafc;
  padding: 2rem 1rem 1.75rem;
  text-align: center;
}

.site-header h1 {
  margin: 0 0 0.4rem;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.05rem;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.card h2 { margin-top: 0.25rem; }

label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

textarea {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  resize: vertical;
}

textarea:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  background: #ffffff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #1e293b;
  color: #f8fafc;
  cursor: pointer;
}

button:hover { background: #334155; }

button#analyze-btn {
  background: #2563eb;
  border-color: #2563eb;
}

button#analyze-btn:hover { background: #1d4ed8; }

#score-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0.5rem 0;
}

#score-value {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: #1e293b;
}

#score-grade {
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
}

#report-findings, #report-passed, #kane-runs {
  list-style: none;
  padding-left: 0;
}

#report-findings li, #report-passed li, #kane-runs li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}

#report-findings li:last-child, #report-passed li:last-child, #kane-runs li:last-child {
  border-bottom: none;
}

.group-heading {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #64748b;
  padding-top: 0.9rem !important;
}

.finding code {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  word-break: break-word;
}

.line-ref { color: #64748b; font-size: 0.9em; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  vertical-align: middle;
}

.badge-issue { background: #fee2e2; color: #b91c1c; }
.badge-note { background: #fef3c7; color: #b45309; }
.badge-passed { background: #dcfce7; color: #15803d; text-transform: none; }
.badge-pending { background: #e2e8f0; color: #475569; }
.badge-pass { background: #dcfce7; color: #15803d; }
.badge-fail { background: #fee2e2; color: #b91c1c; }

footer {
  text-align: center;
  color: #64748b;
  padding: 0 1rem 2rem;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .site-header h1 { font-size: 1.45rem; }
  .card { padding: 1rem; }
  #score-value { font-size: 2.6rem; }
  button { flex: 1 1 100%; }
}
