/* =========================================
   SOURCEPEPTIDECO — COA PAGE CSS
   Styles for /coa/:slug pages, nav verify link, hero verify CTA.
   Verify-page-specific styles live in verify.css.
   Matches theme.css design tokens exactly.
   ========================================= */

/* ── SAMPLE DATA BANNER ── */
.sample-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(199, 168, 75, 0.12);
  border-bottom: 1px solid rgba(199, 168, 75, 0.3);
  padding: 10px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-dark);
  letter-spacing: 0.03em;
  text-align: center;
}

.sample-icon { font-size: 1rem; }

/* ── NAV VERIFY LINK (shared across all pages) ── */
.nav-verify {
  color: var(--accent-dark) !important;
  font-weight: 600 !important;
}

.nav-verify:hover { color: var(--accent) !important; }

/* ── HERO VERIFY LINK (landing page hero section) ── */
.hero-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(199, 168, 75, 0.4);
  background: rgba(199, 168, 75, 0.08);
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.hero-verify-link:hover {
  background: rgba(199, 168, 75, 0.18);
  border-color: var(--accent);
}

/* ── COA HERO ── */
.coa-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--forest);
  padding-top: 80px;
}

.coa-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.coa-hero-bg .hex-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.coa-hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.coa-hero-bg .orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #2a5a3f, transparent);
  top: -80px;
  right: -80px;
  opacity: 0.3;
}

.coa-hero-bg .orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(199, 168, 75, 0.6), transparent);
  bottom: 40px;
  left: 8%;
  opacity: 0.2;
}

.coa-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* ── COA BREADCRUMB ── */
.coa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.06em;
}

.coa-breadcrumb a {
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.coa-breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep { opacity: 0.4; }

/* ── COA HERO CONTENT ── */
.coa-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--bg);
  margin-bottom: 16px;
}

.coa-compound-label {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 28px;
  font-style: italic;
  max-width: 560px;
}

/* ── BATCH CHIP ── */
.coa-batch-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(199, 168, 75, 0.12);
  border: 1px solid rgba(199, 168, 75, 0.35);
  border-radius: 100px;
  padding: 8px 20px;
}

.batch-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 168, 75, 0.7);
}

.batch-value {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ── COA BODY ── */
.coa-body {
  background: var(--bg);
  padding: clamp(60px, 8vw, 100px) 0;
}

.coa-body-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── META GRID ── */
.coa-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.meta-item {
  background: var(--surface);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meta-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.meta-value {
  font-size: 0.9rem;
  color: var(--forest);
  font-weight: 500;
  line-height: 1.4;
}

.meta-value.mono {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
}

/* ── RESULTS TABLE ── */
.coa-results-section { display: flex; flex-direction: column; gap: 24px; }

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.results-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--forest);
}

.all-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
}

.all-pass-badge::before {
  content: '✓';
  font-weight: 700;
}

.results-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--border-radius);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.results-table thead {
  background: var(--forest);
}

.results-table thead th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--rule);
}

.results-table tbody tr:last-child { border-bottom: none; }

.results-table tbody tr:hover {
  background: var(--surface-2);
}

.results-table td {
  padding: 16px 20px;
  font-size: 0.88rem;
  vertical-align: middle;
}

.test-name {
  font-weight: 500;
  color: var(--forest);
  white-space: nowrap;
}

.test-method {
  color: var(--fg-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.test-result {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-pass {
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid rgba(45, 106, 79, 0.25);
}

.status-fail {
  color: #9b2226;
  background: rgba(155, 34, 38, 0.1);
  border: 1px solid rgba(155, 34, 38, 0.25);
}

/* ── SIGN-OFF ── */
.coa-signoff {
  background: var(--forest);
  border-radius: var(--border-radius);
  padding: 40px;
}

.signoff-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.signoff-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--accent);
}

.signoff-icon svg { width: 100%; height: 100%; }

.signoff-content { display: flex; flex-direction: column; gap: 6px; }

.signoff-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(199, 168, 75, 0.7);
}

.signoff-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--bg);
}

.signoff-date {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.5);
}

/* ── COA ACTIONS ── */
.coa-actions-section {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--rule-heavy);
}

.btn-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-verify-link:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-back-catalog {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.btn-back-catalog:hover { color: var(--fg); }

/* ── MONO UTILITY ── */
.mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .coa-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .coa-hero-content,
  .coa-body-inner {
    padding: 0 24px;
  }

  .coa-meta-grid {
    grid-template-columns: 1fr;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .signoff-inner {
    flex-direction: column;
    gap: 16px;
  }

  .coa-actions-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
