/* ============================================================
   ALGT Certificate Verification — style.css
   Faithful recreation of the original Manus site
   ============================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: #1e293b;          /* slate-800 */
  background: #f8fafc;     /* slate-50 */
  min-height: 100vh;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Page Wrapper (gradient bg) ---------- */
.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 896px;      /* ~4xl in Tailwind */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---------- HEADER ---------- */
.site-header {
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;   /* slate-200 */
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Brand (shield + text) */
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shield-icon {
  color: #1a2e5a;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.shield-icon svg {
  width: 32px;
  height: 32px;
}

.header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;     /* text-lg */
  font-weight: 700;
  color: #1a2e5a;
  line-height: 1.3;
}

.header-subtitle {
  font-size: 0.75rem;      /* text-xs */
  color: #94a3b8;          /* slate-400 */
  margin-top: 1px;
}

/* Verified badge */
.verified-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ecfdf5;   /* emerald-50 */
  border: 1px solid #a7f3d0;   /* emerald-200 */
  border-radius: 9999px;
  padding: 0.375rem 1rem;
}

.verified-badge .check-icon {
  color: #059669;   /* emerald-600 */
  flex-shrink: 0;
}

.verified-badge span {
  font-size: 0.875rem;    /* text-sm */
  font-weight: 600;
  color: #047857;         /* emerald-700 */
  letter-spacing: 0.02em;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.content-wrapper {
  max-width: 56rem;   /* max-w-4xl */
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Certificate Number Section ---------- */
.cert-number-section {
  text-align: center;
  margin-bottom: 2rem;
}

.cert-label {
  font-size: 0.75rem;       /* text-xs */
  color: #94a3b8;           /* slate-400 */
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.cert-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;      /* text-3xl */
  font-weight: 700;
  color: #1a2e5a;
  line-height: 1.2;
}

.cert-full-id {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* ---------- Image Card ---------- */
.image-card {
  background-color: #ffffff;
  border-radius: 0.75rem;   /* rounded-xl */
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08), 0 1px 4px 0 rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;   /* slate-100 */
  overflow: hidden;
  margin-bottom: 2rem;
}

.image-card-inner {
  padding: 1.5rem;
}

.cert-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

/* ---------- Details Card ---------- */
.details-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08), 0 1px 4px 0 rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  overflow: hidden;
}

.details-header {
  background-color: #1a2e5a;
  padding: 1rem 1.5rem;
}

.details-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.details-body {
  padding: 1.5rem;
}

/* ---------- Details Table ---------- */
.details-table {
  width: 100%;
  border-collapse: collapse;
}

.table-row {
  border-bottom: 1px solid #f1f5f9;   /* slate-100 */
}

.table-row--last {
  border-bottom: none;
}

.table-label {
  padding: 0.75rem 1rem 0.75rem 0;
  font-size: 0.75rem;      /* text-xs */
  font-weight: 500;
  color: #94a3b8;          /* slate-400 */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 33%;
  vertical-align: middle;
}

.table-value {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;          /* slate-800 */
  vertical-align: middle;
}

/* Treatment badge */
.treatment-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #ecfdf5;    /* emerald-50 */
  border: 1px solid #a7f3d0;    /* emerald-200 */
  color: #047857;               /* emerald-700 */
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.treatment-badge svg {
  flex-shrink: 0;
}

/* ---------- Footer Note ---------- */
.footer-note {
  margin-top: 2rem;
  text-align: center;
}

.footer-note p {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-note p + p {
  margin-top: 0.25rem;
}

.footer-link {
  color: #1a2e5a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.15s ease;
}

.footer-link:hover {
  opacity: 0.75;
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 640px) {

  .header-title {
    font-size: 0.95rem;
  }

  .header-subtitle {
    font-size: 0.65rem;
  }

  .verified-badge {
    padding: 0.3rem 0.75rem;
  }

  .verified-badge span {
    font-size: 0.75rem;
  }

  .cert-number {
    font-size: 1.5rem;
  }

  .image-card-inner {
    padding: 1rem;
  }

  .details-body {
    padding: 1rem;
  }

  .table-label {
    font-size: 0.65rem;
    padding-right: 0.5rem;
  }

  .table-value {
    font-size: 0.875rem;
  }
}
