/* Documentation Center Styles - Matching Homepage V2 Dark Theme */
/* Using the same CSS variables and design language as homepage.css */

.documentation-container {
  display: flex;
  min-height: calc(100vh - 120px);
  margin: -32px auto -64px;
  max-width: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--bg-black);
}

/* ============================================ */
/* SIDEBAR */
/* ============================================ */
.documentation-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow-y: auto;
}

.sidebar-header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.sidebar-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-gray);
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-link:hover {
  color: var(--text-white);
  background: rgba(200, 255, 0, 0.03);
  border-color: var(--border);
}

.sidebar-link.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(200, 255, 0, 0.3);
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  transition: transform 0.2s var(--ease-out);
}

.back-link:hover svg {
  transform: translateX(-4px);
}

/* ============================================ */
/* MAIN CONTENT */
/* ============================================ */
.documentation-main {
  flex: 1;
  min-width: 0;
  padding: 48px 72px;
  overflow-y: auto;
  background: var(--bg-black);
}

.documentation-article {
  max-width: 800px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--text-white);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.article-description {
  font-size: 18px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.6;
}

.feature-link {
  margin-bottom: 40px;
}

.feature-path {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.feature-path:hover {
  background: rgba(200, 255, 0, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-path svg {
  transition: transform 0.2s var(--ease-out);
}

.feature-path:hover svg {
  transform: translateX(4px);
}

/* ============================================ */
/* ARTICLE CONTENT */
/* ============================================ */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin: 48px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.5px;
}

.article-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin: 40px 0 16px;
}

.article-content p {
  margin: 0 0 20px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li::before {
  counter-increment: ol-counter;
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--accent);
}

.article-content pre {
  margin: 0 0 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.article-content a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.article-content strong {
  color: var(--text-white);
  font-weight: 600;
}

.article-content blockquote {
  margin: 0 0 24px;
  padding: 20px 24px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* ============================================ */
/* STEP STYLING */
/* ============================================ */
.article-content .step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s var(--ease-out);
}

.article-content .step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-content .step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-black);
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-mono);
  border-radius: 10px;
  flex-shrink: 0;
}

.article-content .step-content h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
}

.article-content .step-content p {
  margin: 0;
  font-size: 15px;
}

/* ============================================ */
/* TIP/NOTE/WARNING BOXES */
/* ============================================ */
.article-content .tip {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(39, 201, 63, 0.08);
  border: 1px solid rgba(39, 201, 63, 0.25);
  border-radius: 12px;
}

.article-content .tip-title {
  font-weight: 700;
  color: #27c93f;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content .tip-title::before {
  content: "✓";
  font-size: 12px;
}

.article-content .warning {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px;
}

.article-content .warning-title {
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-content .warning-title::before {
  content: "⚠";
  font-size: 14px;
}

.article-content .note {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.25);
  border-radius: 12px;
}

.article-content .note-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================ */
/* EMPTY STATE */
/* ============================================ */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 900px) {
  .documentation-container {
    flex-direction: column;
  }

  .documentation-sidebar {
    width: 100%;
    min-width: 100%;
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 16px;
    gap: 8px;
  }

  .sidebar-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 13px;
  }

  .documentation-main {
    padding: 32px 24px;
  }

  .article-header h1 {
    font-size: 26px;
  }
}
