/* ITSOLERA Certificate Verifier – verifier.css */

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

#itsolera-verifier {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  color: #1a1a1a;
}

/* ── Header ── */
.itsol-header {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.itsol-logo { height: 52px; max-width: 240px; object-fit: contain; }
.itsol-header-divider { width: 100%; height: 1px; background: #e5e7eb; }
.itsol-header-title { font-size: 17px; font-weight: 600; color: #111; }
.itsol-header-sub   { font-size: 13px; color: #6b7280; max-width: 460px; line-height: 1.5; }

/* ── Search card ── */
.itsol-search-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.itsol-search-label { font-size: 13px; color: #6b7280; margin-bottom: 8px; }
.itsol-search-row   { display: flex; gap: 10px; flex-wrap: wrap; }

.itsol-search-row input {
  flex: 1;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  color: #111;
  background: #fafafa;
}
.itsol-search-row input:focus {
  border-color: #185FA5;
  box-shadow: 0 0 0 3px rgba(24,95,165,.12);
  background: #fff;
}

.itsol-search-row button {
  padding: 10px 20px;
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .1s;
}
.itsol-search-row button:hover  { background: #0C447C; }
.itsol-search-row button:active { transform: scale(.97); }
.itsol-search-row button:disabled { opacity: .6; cursor: not-allowed; }

.itsol-hint { margin-top: 8px; font-size: 11px; color: #9ca3af; }

/* ── Verified banner ── */
@keyframes itsol-fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.itsol-verified-banner {
  display: flex; align-items: center; gap: 12px;
  background: #eaf3de; border: 1px solid #639922;
  border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1rem;
  animation: itsol-fadeUp .35s ease both;
}
.itsol-v-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #3B6D11;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.itsol-v-icon svg { width: 15px; height: 15px; }
.itsol-v-main { font-size: 14px; font-weight: 600; color: #27500A; }
.itsol-v-sub  { font-size: 12px; color: #3B6D11; margin-top: 2px; }

/* ── Result card ── */
.itsol-result-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  animation: itsol-fadeUp .4s ease both;
}

.itsol-student-header {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 1.1rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid #f0f0f0;
}
.itsol-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: #dbeafe; color: #1e40af;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.itsol-student-name { font-size: 20px; font-weight: 700; color: #111; }
.itsol-student-ref  { font-size: 11px; color: #9ca3af; font-family: monospace; margin-top: 3px; }

/* ── Info grid ── */
.itsol-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 1.2rem;
}
.itsol-info-cell {
  background: #f9fafb; border: 1px solid #f0f0f0;
  border-radius: 10px; padding: .85rem 1rem;
}
.itsol-info-label {
  font-size: 10px; color: #9ca3af;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px;
}
.itsol-info-value { font-size: 14px; font-weight: 600; color: #111; word-break: break-word; }

/* ── Card footer ── */
.itsol-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 1rem; border-top: 1px solid #f0f0f0;
}
.itsol-issued-by { display: flex; align-items: center; gap: 10px; }
.itsol-issued-by img { height: 28px; object-fit: contain; }
.itsol-issued-label { font-size: 11px; color: #9ca3af; }

/* ── Stamp ── */
@keyframes itsol-stampIn {
  0%   { transform: scale(2.2) rotate(-12deg); opacity: 0; }
  65%  { transform: scale(.92) rotate(2deg);   opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
.itsol-stamp {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2.5px solid #3B6D11;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: itsol-stampIn .55s cubic-bezier(.22,1,.36,1) both;
  animation-delay: .42s; opacity: 0; flex-shrink: 0;
}
.itsol-stamp-top  { font-size: 7px;  font-weight: 700; color: #3B6D11; text-transform: uppercase; letter-spacing: .1em; }
.itsol-stamp-tick { font-size: 22px; color: #3B6D11; line-height: 1.2; }
.itsol-stamp-bot  { font-size: 6.5px; font-weight: 700; color: #3B6D11; text-transform: uppercase; letter-spacing: .08em; }

/* ── Action buttons ── */
.itsol-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.itsol-btn-ghost {
  padding: 8px 14px; background: transparent;
  color: #6b7280; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 12px; cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.itsol-btn-ghost:hover { background: #f3f4f6; }

.itsol-email-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: transparent;
  color: #185FA5; border: 1px solid #185FA5;
  border-radius: 8px; font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .15s; cursor: pointer;
}
.itsol-email-btn:hover { background: #eff6ff; }
.itsol-email-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Error ── */
.itsol-error-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fef2f2; border: 1px solid #f87171;
  border-radius: 10px; padding: .85rem 1rem;
  animation: itsol-fadeUp .3s ease both;
}
.itsol-e-icon {
  width: 28px; height: 28px; border-radius: 50%; background: #dc2626;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0; margin-top: 1px;
}
.itsol-e-main { font-size: 14px; font-weight: 600; color: #991b1b; }
.itsol-e-sub  { font-size: 12px; color: #dc2626; margin-top: 3px; line-height: 1.5; }

/* ── Loading ── */
.itsol-loading {
  text-align: center; padding: 2rem;
  font-size: 14px; color: #6b7280;
  animation: itsol-fadeUp .3s ease both;
}
.itsol-spinner {
  display: inline-block; width: 22px; height: 22px;
  border: 2px solid #e5e7eb; border-top-color: #185FA5;
  border-radius: 50%; animation: itsol-spin .7s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes itsol-spin { to { transform: rotate(360deg); } }

/* ── Contact & footer ── */
.itsol-contact-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 14px; padding: 1rem 1.5rem; margin-top: 1rem;
}
.itsol-contact-title { font-size: 14px; font-weight: 600; color: #111; }
.itsol-contact-sub   { font-size: 12px; color: #6b7280; margin-top: 2px; }

.itsol-footer {
  text-align: center; margin-top: 1.5rem;
  font-size: 11px; color: #9ca3af; line-height: 1.9;
}

/* ── Confetti ── */
@keyframes itsol-confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(120px) rotate(400deg); opacity: 0; }
}
.itsol-cp {
  position: fixed; width: 8px; height: 8px;
  border-radius: 2px; pointer-events: none;
  animation: itsol-confettiFall linear forwards;
  z-index: 9999;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .itsol-info-grid { grid-template-columns: 1fr 1fr; }
  .itsol-student-header { flex-direction: column; align-items: flex-start; }
  .itsol-stamp { align-self: flex-end; }
  .itsol-card-footer { flex-direction: column; align-items: flex-start; }
}
