/* whitepaper.css — NovaReelOS Whitepaper v1.0 styles.
   Owns: layout (two-column with sticky TOC), hero, sections, cards, tables, architecture diagram, metrics.
   Does NOT own: sidebar, app-shell layout (see sidebar.css). */

/* ── Layout: two-column with sticky TOC ────────────────── */
.wp-layout {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}
.wp-toc {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 2.5rem 1.25rem 2rem 1.5rem;
  border-right: 1px solid #1A1A1A;
  background: #000;
}
.wp-toc-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1A1A1A;
}
.wp-toc-link {
  display: block;
  font-size: 0.8125rem;
  color: #888;
  text-decoration: none;
  padding: 0.4rem 0 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.wp-toc-link:hover {
  color: #ccc;
}
.wp-toc-link.active {
  color: #FF4D6D;
  border-left-color: #FF4D6D;
  font-weight: 600;
}

.wp-content {
  flex: 1;
  min-width: 0;
  max-width: 820px;
  padding: 3rem 2.5rem 5rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.wp-hero {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1A1A1A;
}
.wp-badge {
  display: inline-block;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,77,109,0.08);
  color: #FF4D6D;
  border: 1px solid rgba(255,77,109,0.25);
  border-radius: 4px;
  padding: 4px 14px;
  margin-bottom: 1.5rem;
}
.wp-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.wp-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #FF4D6D;
  margin: 0 0 1rem;
}
.wp-version {
  display: inline-block;
  font-size: 0.8125rem;
  color: #666;
}

/* ── Sections ──────────────────────────────────────────── */
.wp-section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}
.wp-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FF4D6D;
  color: #000;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.wp-section h2 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FF4D6D;
  margin: 0 0 1rem;
}
.wp-section h3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin: 1.25rem 0 0.5rem;
}
.wp-section p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #ccc;
  margin: 0 0 1rem;
}
.wp-section strong { color: #fff; }

/* ── Metrics Row ─────────────────────────────────────── */
.wp-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.wp-metric {
  background: #1A1A1A;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #2A2A2A;
}
.wp-metric-value {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #FF4D6D;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.wp-metric-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}
.wp-metric-desc {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

/* ── Cards ─────────────────────────────────────────────── */
.wp-card {
  background: #1A1A1A;
  border-left: 3px solid #FF4D6D;
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.wp-card h3 { margin-top: 0; }
.wp-card p { margin-bottom: 0.5rem; }

/* ── Lists ─────────────────────────────────────────────── */
.wp-list {
  color: #ccc;
  line-height: 1.75;
  padding-left: 1.25rem;
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
}
.wp-list li { margin-bottom: 0.25rem; }
.wp-list strong { color: #fff; }

/* ── Split Bar ───────────────────────────────────────── */
.wp-split-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 48px;
  margin: 1.5rem 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}
.wp-split-creator {
  width: 45%;
  background: #00F2EA;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-split-platform {
  width: 55%;
  background: #FF4D6D;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Surface Tags ────────────────────────────────────── */
.wp-surface-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}
.wp-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255,77,109,0.08);
  color: #FF4D6D;
  border: 1px solid rgba(255,77,109,0.2);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ── Solution Grid ───────────────────────────────────── */
.wp-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.wp-solution-item {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s;
}
.wp-solution-item:hover {
  border-color: #FF4D6D;
}
.wp-solution-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #FF4D6D;
}
.wp-solution-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

/* ── Architecture Diagram ────────────────────────────── */
.wp-architecture {
  margin: 1.5rem 0;
}
.wp-arch-item {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wp-arch-label {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #FF4D6D;
  white-space: nowrap;
  min-width: 180px;
}
.wp-arch-desc {
  font-size: 0.8125rem;
  color: #888;
}
.wp-arch-arrow {
  text-align: center;
  color: #FF4D6D;
  font-size: 1.25rem;
  padding: 0.25rem 0;
}

/* ── Event Properties ────────────────────────────────── */
.wp-event-props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.wp-event-prop {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.wp-event-prop-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.wp-event-prop-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.wp-event-prop-desc {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

/* ── Payout Features ─────────────────────────────────── */
.wp-payout-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.wp-payout-features .wp-card {
  margin-bottom: 0;
}

/* ── Safety Grid ─────────────────────────────────────── */
.wp-safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.wp-safety-item {
  background: #1A1A1A;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  padding: 1.25rem;
}
.wp-safety-item strong {
  display: block;
  font-size: 0.875rem;
  color: #FF4D6D;
  margin-bottom: 0.375rem;
}
.wp-safety-item p {
  font-size: 0.8125rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

/* ── Table ─────────────────────────────────────────────── */
.wp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.wp-table th,
.wp-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #1A1A1A;
}
.wp-table th {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  background: #0D0D0D;
}
.wp-table td { color: #ccc; }
.wp-table td strong { color: #fff; }

/* ── Divider ──────────────────────────────────────────── */
.wp-divider {
  height: 1px;
  background: #1A1A1A;
  border: none;
  margin: 0 0 3rem;
}

/* ── Footer ──────────────────────────────────────────── */
.wp-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1A1A1A;
}
.wp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.wp-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #1A1A1A;
  color: #FF4D6D;
  border: 1px solid #2A2A2A;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.wp-footer-link:hover {
  background: #222;
  border-color: #FF4D6D;
}
.wp-footer-link svg { flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .wp-toc { display: none; }
  .wp-content { padding: 2rem 1.5rem 4rem; }
  .wp-payout-features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wp-content { padding: 1.5rem 1rem 3rem; }
  .wp-metrics-row { grid-template-columns: 1fr; }
  .wp-solution-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-event-props { grid-template-columns: 1fr; }
  .wp-safety-grid { grid-template-columns: 1fr; }
  .wp-split-bar { height: 40px; font-size: 0.75rem; }
  .wp-table th, .wp-table td { padding: 0.5rem 0.625rem; font-size: 0.8125rem; }
  .wp-footer-links { flex-direction: column; }
  .wp-arch-item { flex-direction: column; gap: 0.25rem; text-align: center; }
  .wp-arch-label { min-width: auto; }
}
