/* NicheHunter Documentation Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.logo img {
  width: 28px;
  height: 28px;
}

.logo span {
  color: #666;
  font-weight: 400;
}

nav a {
  color: #666;
  text-decoration: none;
  margin-left: 24px;
  font-size: 14px;
}

nav a:hover {
  color: #1a1a1a;
}

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Docs Grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 60px 0;
}

.doc-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #e5e5e5;
  transition: all 0.2s;
}

.doc-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.doc-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.doc-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.doc-card h3 a:hover {
  color: #6366f1;
}

.doc-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
}

/* Documentation Layout */
.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 48px;
  padding: 40px 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 12px;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 8px;
}

.sidebar a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
}

.sidebar a:hover,
.sidebar a.active {
  background: #f3f4f6;
  color: #1a1a1a;
}

/* Content */
.content {
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  border: 1px solid #e5e5e5;
}

.content h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.content .subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
}

.content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

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

.content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.content p {
  margin-bottom: 16px;
  color: #444;
}

.content ul,
.content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
  color: #444;
}

.content a {
  color: #6366f1;
}

.content a:hover {
  text-decoration: underline;
}

.content a.btn {
  color: #fff;
  text-decoration: none;
}

.content a.btn:hover {
  color: #fff;
  text-decoration: none;
}

.content code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 14px;
}

.content pre {
  background: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.content pre code {
  background: none;
  padding: 0;
  color: #fff;
}

/* Callouts */
.callout {
  background: #f0f9ff;
  border-left: 4px solid #6366f1;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}

.callout.warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

.callout.success {
  background: #f0fdf4;
  border-color: #22c55e;
}

.callout p {
  margin: 0;
}

/* Steps */
.steps {
  counter-reset: step;
}

.steps .step {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}

.steps .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
}

.btn:hover {
  background: #4f46e5;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
}

footer p {
  opacity: 0.7;
  font-size: 14px;
}

/* 404 Page */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-content h1 {
  font-size: 120px;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1;
}

.error-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.error-content p {
  color: #666;
  margin-bottom: 24px;
  max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .content {
    padding: 24px;
  }
}
