/* ── DOCS STYLES ── */
/* Inherits from ../styles.css base variables */

:root {
  --accent:   #BF9966;
  --accent-light: #D4A86A;
  --accent-10: rgba(191,153,102,0.10);
  --accent-15: rgba(191,153,102,0.15);
  --accent-20: rgba(191,153,102,0.20);
  --accent-25: rgba(191,153,102,0.25);
  --bg:       #0c0c0c;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.10);
  --text:     #ffffff;
  --muted:    rgba(255,255,255,0.45);
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:   16px;
  --sidebar-w: 240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--accent); transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── LAYOUT ── */
.docs-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.docs-sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  background: rgba(14,14,14,0.98);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 20px 0;
  z-index: 10;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px 20px;
  font-weight: 700; font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-brand img {
  width: 22px; height: 22px;
  border-radius: 5px;
}
.sidebar-section {
  padding: 8px 20px 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.sidebar-link {
  display: block;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.sidebar-link.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: rgba(191,153,102,0.06);
}

/* ── MAIN CONTENT ── */
.docs-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 48px 60px 80px;
  max-width: 800px;
}
.docs-main h1 {
  font-size: 32px; font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.docs-main .subtitle {
  font-size: 16px; color: var(--muted);
  margin-bottom: 40px;
}
.docs-main h2 {
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.docs-main h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.docs-main h3 {
  font-size: 17px; font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-main p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 16px;
}
.docs-main ul, .docs-main ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.docs-main li {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 6px;
}
.docs-main strong {
  color: var(--text);
  font-weight: 600;
}
.docs-main code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--accent);
}
.docs-main pre {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}
.docs-main pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.docs-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.docs-main th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.docs-main td {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.docs-main .callout {
  background: var(--accent-10);
  border: 1px solid var(--accent-20);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.docs-main .callout p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}
.docs-main .callout strong {
  color: var(--accent);
}
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 12px; font-weight: 600;
  font-family: -apple-system, sans-serif;
  color: var(--text);
  min-width: 22px;
}

/* ── DOCS LANDING PAGE ── */
.docs-hero {
  text-align: center;
  padding: 20px 0 48px;
}
.docs-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(191,153,102,0.15);
}
.docs-hero h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #BF9966 0%, #D4A86A 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.docs-hero .subtitle {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 0;
}

/* CARDS GRID */
.docs-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}
.docs-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
}
.docs-card:hover {
  border-color: var(--accent-25);
  background: rgba(191,153,102,0.05);
  transform: translateY(-1px);
  opacity: 1;
}
.docs-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-10);
  color: var(--accent);
}
.docs-card-content {
  flex: 1;
  min-width: 0;
}
.docs-card-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text);
}
.docs-card-content p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.docs-card-arrow {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.docs-card:hover .docs-card-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .docs-sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .docs-main {
    margin-left: 0;
    padding: 32px 20px 60px;
  }
  .docs-cards {
    grid-template-columns: 1fr;
  }
  .docs-hero h1 {
    font-size: 28px;
  }
}
