/* Attestiq — Verifier page styles */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f7f9;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ── Header ── */

header {
  background: #0c3d22;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.wordmark-sub {
  font-size: 0.85rem;
  opacity: 0.65;
  font-weight: 400;
}

/* ── Main ── */

main {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #555;
  line-height: 1.65;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ── Input row ── */

.input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

#id-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: monospace;
  background: white;
  transition: border-color 0.15s;
}

#id-input:focus {
  outline: none;
  border-color: #0c3d22;
}

#verify-btn {
  padding: 0.75rem 1.5rem;
  background: #0c3d22;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: background 0.15s;
}

#verify-btn:hover   { background: #0a3320; }
#verify-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Result card ── */

.result {
  padding: 1.5rem;
  border-radius: 8px;
  animation: fadein 0.2s ease;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

/* found + cert valid */
.result.ok {
  background: #f0faf4;
  border: 1.5px solid #2d9d5a;
}
.result.ok strong { color: #1a7a4a; }

/* not found + absence proof valid */
.result.absent {
  background: #f4f7fd;
  border: 1.5px solid #4a6fa5;
}
.result.absent strong { color: #2d4d8a; }

/* cert check failed or network error */
.result.fail {
  background: #fff5f5;
  border: 1.5px solid #d9534f;
}
.result.fail strong { color: #b02a2a; }

/* ── Receipt table ── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

th {
  text-align: left;
  padding: 0.35rem 0.75rem 0.35rem 0;
  color: #555;
  font-weight: 500;
  width: 140px;
  vertical-align: top;
}

td {
  padding: 0.35rem 0;
  color: #1a1a1a;
  word-break: break-all;
}

.mono {
  font-family: monospace;
  font-size: 0.78rem;
  color: #444;
}

/* ── Footer note ── */

.note {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  border-top: 1px solid #d4edda;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.result.absent .note { border-top-color: #c2d5ee; }

/* ── Misc ── */

p { margin-top: 0.5rem; line-height: 1.6; font-size: 0.95rem; }
