/* public/css/docs.css */

:root {
  --sidebar-w: 280px;
  --header-h: 80px;
  --bg-main: #050505;
  --bg-sidebar: rgba(10, 10, 10, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --accent: #0070f3;
  --code-bg: #0a0a0a;
  --code-color: #e0e0e0;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.docs-sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  height: calc(100vh - var(--header-h));
  position: fixed;
  top: var(--header-h);
  left: 0;
  overflow-y: auto;
  padding: 2.5rem 1.5rem;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 5px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.docs-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.docs-sidebar li {
  margin-bottom: 0.25rem;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  margin-bottom: 0.25rem;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.docs-sidebar a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.docs-sidebar a i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Content Styling */
.docs-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 4rem 4rem 4rem 5rem;
  max-width: 1200px;
  min-height: calc(100vh - var(--header-h));
}

.docs-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.docs-content .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.docs-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.5px;
}

.docs-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.docs-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Code Blocks */
.custom-tabs {
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0a0a0a;
}

.custom-tab-list {
  display: flex;
  background: #000;
  border-bottom: 1px solid var(--border);
}

.custom-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-right: 1px solid var(--border);
}

.custom-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.custom-tab-btn.active {
  background: #0a0a0a;
  color: var(--accent);
}

pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 5;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.info-box {
  background: rgba(0, 112, 243, 0.05);
  border: 1px solid rgba(0, 112, 243, 0.2);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text);
}

@media (max-width: 768px) {
  .docs-sidebar {
    display: none;
  }
  .docs-content {
    margin-left: 0;
    padding: 2rem 1rem;
  }
}