/* Basic dark theme for Org HTML export */
:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --accent: #4a90e2;
  --code-bg: #333;
  --border: #404040;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

#content {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }

p, ul, ol, pre, blockquote {
  margin-bottom: 1.5rem;
}

ul, ol {
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

code {
  background: var(--code-bg);
  color: #f8f8f2;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Fira Code', 'Monaco', monospace;
}

pre {
  background: var(--code-bg);
  color: var(--text-primary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border);
}

pre code {
  background: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-primary);
  padding: 1rem 1.5rem;
  border-radius: 4px;
}

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

a:hover {
  text-decoration: underline;
}

.toc {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

#table-of-contents ul {
  list-style: none;
  padding-left: 0;
}

#table-of-contents a {
  color: var(--text-secondary);
}

#table-of-contents a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  #content {
    padding: 1rem;
  }
}
