/* Database Share Page — Forensic Theme */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0c0c12;
  color: #e1d9eb;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* ═══ STICKY HEADER ═══ */
.site-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 30px;
  background: #111119;
  border-bottom: 2px solid #3a3a50;
}
.site-bar a { text-decoration: none; }
.bar-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px; font-weight: 700;
  color: #ff5545; letter-spacing: 5px;
}
.bar-sep { color: #3a3a50; font-size: 18px; }
.bar-section {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #b0b0b0; letter-spacing: 2px; text-transform: uppercase;
}
.bar-nav { margin-left: auto; display: flex; gap: 12px; }
.bar-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #a0a0a0; letter-spacing: 1px;
  text-decoration: none; padding: 6px 14px;
  border: 1px solid #3a3a50; border-radius: 4px;
  transition: all 0.2s;
}
.bar-link:hover { color: #fff; border-color: #ff5545; background: #ff554515; }

/* ═══ PAGE LAYOUT ═══ */
.page { max-width: 1400px; margin: 0 auto; padding: 30px; }
.page-title {
  font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.page-subtitle {
  font-size: 16px; color: #b0b0b0; line-height: 1.6; margin-bottom: 24px; max-width: 960px;
}
.page-subtitle strong { color: #ffb732; }

/* ═══ HERO STATS BANNER ═══ */
.stats-banner {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px; padding: 20px;
  background: #111119; border: 1px solid #3a3a50; border-radius: 8px;
}
.stat-item {
  flex: 1 1 140px; text-align: center; padding: 12px;
}
.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px; font-weight: 700; color: #ff5545;
}
.stat-label {
  font-size: 11px; color: #8a8494; letter-spacing: 1px;
  text-transform: uppercase; margin-top: 4px;
}

/* ═══ SECTION BLOCKS ═══ */
.db-section {
  margin-bottom: 40px; background: #111119;
  border: 1px solid #3a3a50; border-radius: 8px; overflow: hidden;
}
.section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px; cursor: pointer;
  background: #161622; border-bottom: 1px solid #3a3a50;
  user-select: none;
}
.section-header:hover { background: #1c1c2e; }
.section-arrow {
  font-size: 12px; color: #8a8494; transition: transform 0.2s;
  width: 16px; text-align: center;
}
.db-section.open > .section-header .section-arrow { transform: rotate(90deg); }
.section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #8a8494; letter-spacing: 3px;
}
.section-title { font-size: 20px; font-weight: 600; color: #fff; }
.section-badge {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #4eecc8; letter-spacing: 1px;
}
.section-body { display: none; padding: 24px; }
.db-section.open > .section-body { display: block; }
.section-desc {
  font-size: 15px; color: #b0b0b0; line-height: 1.7; margin-bottom: 20px;
}
.section-desc strong { color: #ffb732; }
.section-desc code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: #3a86ba; background: #1a1a28;
  padding: 2px 6px; border-radius: 3px;
}

/* ═══ DOWNLOAD CARDS ═══ */
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px; margin-top: 16px;
}
.download-card {
  background: #1a1a28; border: 1px solid #3a3a50; border-radius: 6px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: all 0.2s; display: flex; flex-direction: column; gap: 8px;
}
.download-card:hover { border-color: #4eecc8; background: #1e1e32; }
.download-card.primary {
  border-left: 4px solid #ff5545; grid-column: 1 / -1;
}
.dl-title {
  font-size: 15px; font-weight: 600; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.dl-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 3px; text-transform: uppercase;
}
.dl-badge.zip { background: #4eecc815; color: #4eecc8; }
.dl-badge.dump { background: #ff554515; color: #ff5545; }
.dl-badge.sql { background: #3a86ba15; color: #3a86ba; }
.dl-badge.csv { background: #ffb73215; color: #ffb732; }
.dl-badge.md { background: #b990e615; color: #b990e6; }
.dl-badge.pdf { background: #ff8c4215; color: #ff8c42; }
.dl-badge.sh { background: #4eecc815; color: #4eecc8; }
.dl-badge.pem { background: #ffb73215; color: #ffb732; }
.dl-badge.crt { background: #3a86ba15; color: #3a86ba; }
.dl-badge.xlsx { background: #4eecc815; color: #4eecc8; }
.dl-badge.ots { background: #b990e615; color: #b990e6; }
.dl-desc {
  font-size: 13px; color: #a0a0a0; line-height: 1.5;
}
.dl-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
}
.dl-size { color: #ff5545; font-weight: 600; }
.dl-hash {
  color: #707070; cursor: pointer; transition: color 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.dl-hash:hover { color: #b990e6; }
.dl-hash.copied { color: #4eecc8; }
.dl-actions {
  display: flex; gap: 8px; margin-top: 4px;
}
.dl-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 4px;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  border: 1px solid; display: inline-flex; align-items: center; gap: 6px;
}
.dl-btn.download {
  color: #4eecc8; border-color: #4eecc8; background: transparent;
}
.dl-btn.download:hover { background: #4eecc815; }
.dl-btn.view {
  color: #3a86ba; border-color: #3a86ba; background: transparent;
}
.dl-btn.view:hover { background: #3a86ba15; }

/* ═══ FILE TABLE ═══ */
.file-table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
}
.file-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #8a8494; letter-spacing: 2px;
  text-transform: uppercase; text-align: left;
  padding: 10px 14px; border-bottom: 2px solid #3a3a50;
}
.file-table td {
  padding: 10px 14px; border-bottom: 1px solid #252535;
  font-size: 14px; vertical-align: middle;
}
.file-table tr:hover td { background: #1a1a28; }
.file-table .fname {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: #fff;
}
.file-table .fname a {
  color: #ffb732; text-decoration: none;
}
.file-table .fname a:hover { text-decoration: underline; }
.file-table .fsize {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #ff5545; white-space: nowrap;
}
.file-table .fhash {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #707070; cursor: pointer;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; transition: color 0.2s;
}
.file-table .fhash:hover { color: #b990e6; }
.file-table .fhash.copied { color: #4eecc8; }
.file-table .fdesc { color: #b0b0b0; font-size: 13px; }

/* ═══ CATEGORY SECTIONS (collapsible, inside reports) ═══ */
.cat-section {
  margin-top: 12px; background: #161622;
  border: 1px solid #2a2a3c; border-radius: 6px; overflow: hidden;
}
.cat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; cursor: pointer;
  user-select: none;
}
.cat-header:hover { background: #1c1c2e; }
.cat-arrow {
  font-size: 10px; color: #8a8494; transition: transform 0.2s;
  width: 14px; text-align: center;
}
.cat-section.open > .cat-header .cat-arrow { transform: rotate(90deg); }
.cat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: #8a8494; letter-spacing: 2px;
}
.cat-title { font-size: 15px; font-weight: 600; color: #ffb732; }
.cat-meta {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #a0a0a0;
}
.cat-dl {
  margin-left: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: #4eecc8; text-decoration: none;
  border: 1px solid #4eecc8; border-radius: 3px;
  padding: 2px 8px; letter-spacing: 1px;
  transition: all 0.2s;
}
.cat-dl:hover { background: #4eecc815; }
.cat-body { display: none; padding: 0; }
.cat-section.open > .cat-body { display: block; }

/* ═══ PDF VIEWER OVERLAY ═══ */
.pdf-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: #0c0c12ee;
}
.pdf-overlay.active { display: flex; flex-direction: column; }
.pdf-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 24px; background: #111119;
  border-bottom: 1px solid #3a3a50;
}
.pdf-toolbar-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: #fff; flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdf-toolbar-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #a0a0a0; background: none; border: 1px solid #3a3a50;
  padding: 5px 14px; border-radius: 4px; cursor: pointer;
  transition: all 0.2s;
}
.pdf-toolbar-btn:hover { color: #fff; border-color: #ff5545; }
.pdf-frame { flex: 1; border: none; width: 100%; }

/* ═══ PIPELINE DIAGRAM ═══ */
.pipeline {
  display: flex; align-items: center; gap: 0;
  margin: 20px 0; overflow-x: auto;
}
.pipeline-step {
  flex: 1; min-width: 200px; padding: 16px;
  background: #1a1a28; border: 1px solid #3a3a50; border-radius: 6px;
  text-align: center;
}
.pipeline-step .step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #8a8494; letter-spacing: 2px;
}
.pipeline-step .step-name {
  font-size: 16px; font-weight: 600; color: #ffb732; margin: 6px 0;
}
.pipeline-step .step-desc {
  font-size: 12px; color: #a0a0a0; line-height: 1.5;
}
.pipeline-arrow {
  font-size: 24px; color: #4eecc8; padding: 0 8px; flex-shrink: 0;
}

/* ═══ INFO BOX ═══ */
.info-box {
  background: #1a1a28; border: 1px solid #3a3a50; border-left: 4px solid #3a86ba;
  border-radius: 6px; padding: 16px 20px; margin: 16px 0;
  font-size: 14px; color: #b0b0b0; line-height: 1.6;
}
.info-box strong { color: #3a86ba; }
.info-box code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #4eecc8; background: #0c0c12;
  padding: 2px 6px; border-radius: 3px;
}
.info-box.warning { border-left-color: #ffb732; }
.info-box.warning strong { color: #ffb732; }

/* ═══ CODE BLOCK ═══ */
.code-block {
  background: #0c0c12; border: 1px solid #2a2a3c; border-radius: 6px;
  padding: 14px 18px; margin: 12px 0; overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; line-height: 1.7; color: #b0b0b0;
}
.code-block .cmd { color: #4eecc8; }
.code-block .comment { color: #707070; }
.code-block .string { color: #ffb732; }

/* ═══ SUBSECTION HEADERS ═══ */
.sub-header {
  font-size: 16px; font-weight: 600; color: #fff;
  margin: 24px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid #3a3a50;
}

/* ═══ VERIFICATION TABLE ═══ */
.verify-table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
}
.verify-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: #4eecc8; letter-spacing: 1px;
  text-align: left; padding: 8px 12px;
  border-bottom: 2px solid #3a3a50;
}
.verify-table td {
  padding: 8px 12px; border-bottom: 1px solid #252535;
  font-size: 13px;
}
.verify-table .metric { color: #b0b0b0; }
.verify-table .result {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #4eecc8; font-weight: 600;
}
.verify-table .result.perfect { color: #4eecc8; }
.verify-table .result.note { color: #ffb732; }

/* ═══ SOURCE-FILES SECTION (06) ═══
   Single-column ZIP rows with click-to-copy SHA-256 + download + OTS proof.
   Mirrors /source-files/ page layout, restyled to match database page palette. */
.sf-zip-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sf-zip-card {
  display: flex; align-items: stretch; gap: 14px;
  padding: 14px 16px; background: #1a1a28;
  border: 1px solid #3a3a50; border-radius: 6px;
  transition: all 0.15s;
}
.sf-zip-card:hover { border-color: #4eecc8; background: #1e1e32; }
.sf-zip-icon {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  color: #4eecc8; background: #4eecc815; border: 1px solid #4eecc840;
  padding: 4px 8px; border-radius: 3px; letter-spacing: 1px;
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}
.sf-zip-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sf-zip-titlerow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sf-zip-name {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 600;
  color: #f0f0f0;
}
.sf-zip-size {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600;
  color: #ff5545; flex-shrink: 0;
}
.sf-zip-sub { font-size: 13px; color: #a0a0a0; line-height: 1.4; }
.sf-zip-sub strong { color: #ffb732; }
.sf-zip-hash {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  color: #707070; cursor: pointer; transition: color 0.15s;
  word-break: break-all; align-self: flex-start;
}
.sf-zip-hash:hover { color: #b990e6; }
.sf-zip-hash.copied { color: #4eecc8; }
.sf-zip-actions {
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
  flex-shrink: 0; min-width: 120px;
}
.sf-zip-dl {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; background: transparent;
  color: #4eecc8; border: 1px solid #4eecc8; border-radius: 4px;
  text-decoration: none; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  transition: all 0.15s;
}
.sf-zip-dl:hover { background: #4eecc815; color: #f0f0f0; }
.sf-zip-ots {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px; background: transparent;
  color: #b990e6; border: 1px solid #b990e640; border-radius: 4px;
  text-decoration: none; font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  transition: all 0.15s;
}
.sf-zip-ots:hover { background: #b990e615; border-color: #b990e6; color: #f0f0f0; }

/* ═══ FOOTER ═══ */
.page-footer {
  text-align: center; padding: 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: #707070; letter-spacing: 2px;
  border-top: 1px solid #3a3a50; margin-top: 20px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .stats-banner { gap: 8px; }
  .stat-item { flex: 1 1 100px; padding: 8px; }
  .stat-value { font-size: 18px; }
  .download-grid { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); }
  .bar-nav { display: none; }
  .section-header { padding: 14px 16px; }
  .section-body { padding: 16px; }
  .sf-zip-card { flex-wrap: wrap; }
  .sf-zip-actions { flex-direction: row; min-width: 0; width: 100%; margin-top: 4px; }
  .sf-zip-dl { flex: 1; }
  .sf-zip-ots { padding: 9px 14px; }
}
