/* Styles for Verify Certificate page */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 24px;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Brand header */
.brand {
  display: grid;
  grid-template-columns: 72px auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(56,189,248,.08));
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 16px;
  padding: 16px;
}
.brand__logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}
.brand__logo { width: 60px; height: 60px; object-fit: contain; }
.brand__text { display: grid; gap: 4px; }
.brand__name { font-size: 22px; letter-spacing: 2px; font-weight: 900; color: #0c1d68; }
.brand__tag {
  color: #0f172a;
  opacity: .9;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .4px;
}
.brand__tag .tag-emph {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.brand__tag .tag-by {
  color: #0f172a;
  opacity: .75;
  font-weight: 800;
}

.content {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  color: var(--muted);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.06);
}

.verify-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.field { display: grid; gap: 8px; }
.label { font-size: 14px; font-weight: 700; color: #0f172a; }

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}
.input:focus {
  outline: none;
  border-color: rgba(14, 165, 233, .8);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .18);
}

.actions { display: flex; gap: 12px; align-items: center; padding-top: 8px; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  text-decoration: none;
  font-size: 14px;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #031525; box-shadow: 0 10px 20px rgba(14, 165, 233, .25); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.primary:active { filter: brightness(.95); }
.btn.ghost { background: transparent; color: #0ea5e9; border: 2px solid rgba(14, 165, 233, .4); }
.btn.ghost:hover { border-color: rgba(14, 165, 233, .7); }

.result { margin-top: 20px; padding: 16px; border-radius: 12px; border: 1px solid #e5e7eb; display: grid; gap: 8px; }
.result.valid { border-color: rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .06); }
.result.invalid { border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .06); }

.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .4px; }
.badge.valid { background: rgba(16, 185, 129, .15); color: #065f46; }
.badge.invalid { background: rgba(239, 68, 68, .15); color: #7f1d1d; }
.badge.revoked { background: rgba(239, 68, 68, .15); color: #7f1d1d; }
.badge.not_found { background: rgba(234, 179, 8, .15); color: #713f12; }

/* Detail card */
.detail-card {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(2,6,23,.04);
}
.detail-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef1f5;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .k { font-weight: 800; color: #0f172a; letter-spacing: .3px; }
.detail-row .v { color: #334155; font-weight: 700; }

@media (max-width: 640px) {
  .detail-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 700px) {
  .content { padding: 20px; }
  .brand { grid-template-columns: 56px auto; gap: 12px; padding: 12px; }
  .brand__logo-wrap { width: 56px; height: 56px; }
  .brand__logo { width: 46px; height: 46px; }
  .brand__name { font-size: 18px; letter-spacing: 1px; }
  .brand__tag { font-size: 13px; letter-spacing: .3px; }
  .site-footer { padding: 12px 16px; }
  .site-footer__inner { flex-direction: column; gap: 6px; text-align: center; font-size: 13px; }
}

@media (max-width: 420px) {
  .brand { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .brand__logo-wrap { margin: 0 auto; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 12.5px; }
  .site-footer__inner { font-size: 12.5px; }
}

/* Footer */
.site-footer {
  margin-top: 32px;
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
}
.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: #475569;
  font-weight: 600;
}
.site-footer__powered strong { color: #0ea5e9; }
.site-footer .unit { opacity: .85; }
