/* ================================================
   DEATH2DATA - Site-Wide Styles
   Include on every page: <link rel="stylesheet" href="/css/style.css">
   Updated: Feb 2026 — Inter font, readable colors
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@700&display=swap');

/* ================================================
   RESET & BASE
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --border: #1e1e1e;
  --border-hover: #2a3a2a;
  --green: #00cc44;
  --green-dim: #004d1a;
  --green-hover: #00e64d;
  --red: #cc0000;
  --yellow: #ffaa00;
  --white: #e0e0e0;
  --gray: #b0b0b0;
  --muted: #666666;
  --dim: #444444;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --content-width: 700px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-hover);
  text-decoration: none;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.site-header .logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
  text-decoration: none;
}

.site-header .nav {
  display: flex;
  gap: 28px;
}

.site-header .nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header .nav a:hover,
.site-header .nav a.current {
  color: var(--white);
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .site-header .nav {
    gap: 20px;
  }
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 48px 20px 32px;
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand .logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 2px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-contact a {
  color: var(--muted);
}

.footer-contact a:hover {
  color: var(--gray);
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.page-content {
  flex: 1;
  padding: 48px 20px;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
}

.container.wide {
  max-width: var(--max-width);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 32px;
}

p {
  margin-bottom: 16px;
  color: var(--gray);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--green-hover);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--muted);
  text-decoration: none;
}

/* ================================================
   CARDS
   ================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

/* ================================================
   MANAGE PAGE SPECIFIC
   ================================================ */
.manage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin-bottom: 32px;
}

.manage-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.manage-card h2 {
  margin-bottom: 16px;
}

.manage-card p {
  color: var(--gray);
  margin-bottom: 24px;
}

.manage-card .btn {
  margin-bottom: 16px;
}

.manage-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}

.manage-help {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.manage-help h3 {
  margin-bottom: 20px;
  color: var(--gray);
}

.manage-help details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.manage-help details:last-child {
  border-bottom: none;
}

.manage-help summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.manage-help summary:hover {
  color: var(--green);
}

.manage-help details p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
  padding-left: 16px;
  margin-bottom: 0;
}

/* ================================================
   DOCS PAGE SPECIFIC
   ================================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: 72px;
  height: fit-content;
}

.docs-sidebar h4 {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 24px;
}

.docs-sidebar h4:first-child {
  margin-top: 0;
}

.docs-sidebar a {
  display: block;
  font-size: 13px;
  color: var(--gray);
  padding: 6px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}

.docs-sidebar a:hover,
.docs-sidebar a.current {
  color: var(--white);
  border-left-color: var(--green);
  text-decoration: none;
}

.docs-content {
  max-width: var(--content-width);
}

.docs-content h1 {
  margin-bottom: 8px;
}

.docs-content .doc-updated {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 32px;
}

.docs-content h2 {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.docs-content code {
  background: var(--surface);
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 4px;
}

.docs-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 13px;
}

.docs-content pre code {
  background: none;
  padding: 0;
}

@media (max-width: 800px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
  }
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-gray { color: var(--gray); }
.text-green { color: var(--green); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
