/* Doc Pages Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --royal-blue: #3a79f7;
  --royal-blue-soft: #5b8eff;
  --electric-violet: #8a7cff;
  --neon-blue: #3ad0ff;
  --text-main: #f0f5ff;
  --text-muted: #a0b2d6;
  --bg-dark-1: #0a1020;
  --bg-dark-2: #0f1930;
  --glass-bg: rgba(18, 30, 60, 0.5);
  --glass-border: rgba(58, 208, 255, 0.2);
  --glass-border-hover: rgba(58, 208, 255, 0.5);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background: var(--bg-dark-1);
  padding-top: 70px;
}

a {
  text-decoration: none;
  color: var(--royal-blue-soft);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--neon-blue);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 0 20px;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  padding: 4px 8px;
  background: #ffffff;
  border-radius: 8px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 10px;
  list-style: none;
}

.nav-menu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu li a:hover {
  background: var(--bg-dark-1);
  color: var(--text-main);
}

/* Doc Page Layout */
.doc-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--royal-blue-soft);
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.back-link:hover {
  background: rgba(18, 30, 60, 0.8);
  border-color: var(--neon-blue);
  transform: translateX(-4px);
}

.doc-nav h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.doc-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-nav ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.doc-nav ul li a:hover {
  background: var(--glass-bg);
  padding-left: 16px;
}

/* Main Content */
.doc-content {
  max-width: 900px;
}

.doc-content h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(120deg, var(--royal-blue-soft), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.doc-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 48px 0 20px;
  color: var(--text-main);
}

.doc-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-main);
}

.doc-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--royal-blue-soft);
}

.doc-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.doc-content ul,
.doc-content ol {
  margin: 16px 0 16px 24px;
  color: var(--text-muted);
}

.doc-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Code Blocks */
.code-block {
  background: rgba(10, 16, 32, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

.code-block p {
  margin-bottom: 8px;
  color: var(--text-main);
}

pre {
  background: rgba(10, 16, 32, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--neon-blue);
  background: rgba(58, 208, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

pre code {
  background: none;
  padding: 0;
  color: var(--text-main);
}

/* Info Boxes */
.info-box,
.tip-box,
.warning-box,
.success-box {
  padding: 20px;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  border-left: 4px solid;
}

.info-box {
  background: rgba(58, 121, 247, 0.1);
  border-color: var(--royal-blue-soft);
}

.tip-box {
  background: rgba(58, 208, 255, 0.1);
  border-color: var(--neon-blue);
}

.warning-box {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
}

.success-box {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

.info-box strong,
.tip-box strong,
.warning-box strong,
.success-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
}

/* Next Steps Grid */
.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.next-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  display: block;
}

.next-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.next-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--royal-blue-soft);
}

.next-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
.doc-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
  .doc-page {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doc-sidebar {
    position: static;
  }

  .doc-content h1 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .next-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .doc-content h1 {
    font-size: 2rem;
  }

  .doc-content h2 {
    font-size: 1.5rem;
  }

  .nav-menu {
    display: none;
  }
}
