/*
 * TruMedia — Verifier-Styling
 * Schweizer Stil: schwarz/weiss, viel Whitespace, klare Hierarchie.
 * Mobile-first, responsive bis Desktop.
 */

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: #f9fafb;
  color: #111;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Topbar ───────────────────────────────────────────────────────── */
.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 18px;
  color: #111;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo strong {
  font-weight: 700;
}
.tagline {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

/* ─── Main ─────────────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hidden {
  display: none !important;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.lead {
  color: #4b5563;
  font-size: 14px;
}
code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* ─── Drop-Zone ────────────────────────────────────────────────────── */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  background: #fff;
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.dropzone:hover {
  border-color: #9ca3af;
  background: #fafafa;
}
.dropzone.dragover {
  border-color: #111;
  background: #f3f4f6;
}
.dropzone-icon {
  font-size: 48px;
  line-height: 1;
}
.dropzone-title {
  font-size: 18px;
  font-weight: 600;
}
.dropzone-sub {
  font-size: 13px;
  color: #6b7280;
}

.info-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: #4b5563;
}
.info-box strong {
  color: #111;
  display: block;
  margin-bottom: 4px;
}

/* ─── Loading ──────────────────────────────────────────────────────── */
#loading-section {
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
  gap: 16px;
}
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Banner ───────────────────────────────────────────────────────── */
.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  color: #fff;
}
.banner strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.banner span {
  font-size: 13px;
  opacity: 0.95;
  flex: 1;
}
.banner-ok { background: #10b981; }
.banner-fail { background: #dc2626; }
.banner-info { background: #111; }

/* ─── Blocks (allgemein) ───────────────────────────────────────────── */
.block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}
.block-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ─── Code Block ───────────────────────────────────────────────────── */
.code-block {
  text-align: center;
  padding: 18px;
}
.code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #111;
}

/* ─── Status Block ─────────────────────────────────────────────────── */
.status-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.icon-ok { color: #10b981; }
.icon-fail { color: #dc2626; }
.status-label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.status-value {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}
.value-ok { color: #10b981; }
.value-fail { color: #dc2626; }

/* ─── Meta Block ───────────────────────────────────────────────────── */
.meta-block {
  padding: 0;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
}
.meta-row:last-child { border-bottom: none; }
.meta-label {
  color: #6b7280;
  font-weight: 500;
}
.meta-value {
  color: #111;
  text-align: right;
}

/* ─── GPS Block ────────────────────────────────────────────────────── */
.gps-coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.gps-link {
  display: inline-block;
  font-size: 12px;
  color: #111;
  text-decoration: none;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  margin-top: 4px;
}
.gps-link:hover { background: #e5e7eb; }
.gps-mocked-warning {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #b45309;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
}

/* ─── Data Block (Hash etc.) ───────────────────────────────────────── */
.mono-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  color: #111;
}
.mono-ok { color: #10b981; }
.mono-fail { color: #dc2626; }

/* ─── Buttons ──────────────────────────────────────────────────────── */
.primary-button {
  background: #000;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.primary-button:hover {
  opacity: 0.85;
}

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}
.footer a {
  color: #111;
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer-note {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 20px; }
  .dropzone { padding: 36px 16px; }
  .dropzone-icon { font-size: 40px; }
  .dropzone-title { font-size: 16px; }
  .banner strong { font-size: 18px; }
}
