@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --scv-navy:   #0f172a;
  --scv-blue:   #1d4ed8;
  --scv-light:  #eff6ff;
  --scv-border: #e2e8f0;
  --scv-radius: 18px;
}

.scv-verifier {
  max-width: 620px;
  margin: 48px auto;
  font-family: 'DM Sans', sans-serif;
}

/* HEADER */
.scv-verifier__header {
  text-align: center;
  margin-bottom: 40px;
}
.scv-logo {
  max-height: 80px;
  margin-bottom: 14px;
  object-fit: contain;
}
.scv-verifier__header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--scv-navy);
  margin: 0 0 6px;
  line-height: 1.15;
}
.scv-subtitle {
  color: #64748b;
  font-size: .95rem;
  margin: 0;
  font-style: italic;
}

/* LOOKUP FORM */
.scv-verifier__form {
  background: #fff;
  border: 1px solid var(--scv-border);
  border-radius: var(--scv-radius);
  padding: 36px 32px 28px;
  box-shadow: 0 6px 32px rgba(15,23,42,.07);
}
.scv-verifier__form label {
  display: block;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #475569;
  margin-bottom: 12px;
}
.scv-input-row {
  display: flex;
  gap: 10px;
}
.scv-input-row input {
  flex: 1;
  padding: 15px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  letter-spacing: .06em;
  border: 2px solid var(--scv-border);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  color: var(--scv-navy);
}
.scv-input-row input:focus {
  border-color: var(--scv-blue);
  box-shadow: 0 0 0 4px rgba(29,78,216,.1);
}
.scv-input-row button {
  background: var(--scv-blue);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(29,78,216,.25);
}
.scv-input-row button:hover  { background: #1e40af; box-shadow: 0 6px 18px rgba(29,78,216,.35); }
.scv-input-row button:active { transform: scale(.97); }
.scv-input-row button:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; }
.scv-hint { color: #94a3b8; font-size: .82rem; margin: 12px 0 0; }

/* RESULT */
.scv-result {
  margin-top: 28px;
  animation: scv-up .35s cubic-bezier(.22,1,.36,1);
}
@keyframes scv-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CERTIFICATE CARD */
.scv-card {
  background: #fff;
  border-radius: var(--scv-radius);
  border: 1px solid var(--scv-border);
  box-shadow: 0 6px 32px rgba(15,23,42,.08);
  overflow: hidden;
}

/* Top accent bar */
.scv-card__accent {
  height: 6px;
  background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
}

.scv-card__body { padding: 28px 28px 24px; }

.scv-card__institute-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.scv-card__inst-logo { max-height: 36px; border-radius: 4px; }
.scv-card__inst-name { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; }

.scv-card__name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--scv-navy);
  margin: 0 0 4px;
  line-height: 1.2;
}
.scv-card__course {
  color: #475569;
  font-size: 1rem;
  margin: 0 0 24px;
  font-style: italic;
}

/* Fields grid */
.scv-card__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 480px) { .scv-card__fields { grid-template-columns: 1fr; } }

.scv-field {
  background: #f8fafc;
  border: 1px solid var(--scv-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.scv-field__label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}
.scv-field__value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--scv-navy);
  font-family: 'JetBrains Mono', monospace;
}

/* Certificate file section */
.scv-cert-section {
  border-top: 1px solid var(--scv-border);
  padding-top: 20px;
  margin-top: 4px;
}
.scv-cert-section__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 12px;
}
.scv-cert-section img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--scv-border);
  display: block;
  margin-bottom: 12px;
}
.scv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--scv-blue);
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(29,78,216,.22);
}
.scv-download-btn:hover { background: #1e40af; box-shadow: 0 6px 16px rgba(29,78,216,.32); }

/* ERROR */
.scv-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--scv-radius);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.scv-error__icon { font-size: 2rem; flex-shrink: 0; }
.scv-error h3 { margin: 0 0 6px; color: #dc2626; font-size: 1.1rem; }
.scv-error p  { margin: 0; color: #7f1d1d; font-size: .9rem; line-height: 1.5; }

/* LOADING */
.scv-loading { text-align: center; padding: 40px; color: #94a3b8; }
.scv-spinner {
  display: inline-block;
  width: 30px; height: 30px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--scv-blue);
  border-radius: 50%;
  animation: scv-spin .7s linear infinite;
  margin-bottom: 10px;
}
@keyframes scv-spin { to { transform: rotate(360deg); } }
