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

:root {
    --primary: #E86F5F;
    --primary-dark: #d55b4d;
    --bg: #0A0E17;
    --bg-alt: #12161F;
    --text: #E8E8E8;
    --text-dim: #9BA3AF;
    --border: #2A2E37;
    --code-bg: #1A1E27;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Documentation Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar */
.docs-sidebar {
    background: var(--bg-alt);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.docs-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 2rem;
}

.docs-logo span:first-child {
    font-size: 1.8rem;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.docs-nav-section {
    margin-bottom: 1.5rem;
}

.docs-nav-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.docs-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.docs-nav-link:hover {
    background: rgba(232, 111, 95, 0.1);
    color: var(--primary);
}

.docs-nav-link.active {
    background: rgba(232, 111, 95, 0.15);
    color: var(--primary);
    font-weight: 500;
}

/* Main Content */
.docs-main {
    padding: 3rem 4rem;
    max-width: 800px;
}

.docs-header {
    margin-bottom: 3rem;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.docs-breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: var(--primary);
}

.docs-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-description {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.docs-content {
    color: var(--text);
}

.docs-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.docs-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.docs-content p {
    margin: 1rem 0;
    color: var(--text-dim);
    line-height: 1.8;
}

.docs-content ul, .docs-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.docs-content li {
    margin: 0.5rem 0;
    color: var(--text-dim);
}

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

.docs-content code {
    background: var(--code-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.docs-content pre {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

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

/* Table of Contents */
.docs-toc {
    position: sticky;
    top: 2rem;
    padding: 1.5rem;
    height: fit-content;
}

.docs-toc h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.docs-toc ul {
    list-style: none;
}

.docs-toc a {
    display: block;
    padding: 0.35rem 0;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    transition: all 0.2s;
}

.docs-toc a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
}

.docs-toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Callouts */
.callout {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.callout-warning {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: var(--warning);
}

.callout-success {
    background: rgba(74, 222, 128, 0.1);
    border-left-color: var(--success);
}

.callout-error {
    background: rgba(248, 113, 113, 0.1);
    border-left-color: var(--error);
}

.callout h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Navigation Buttons */
.docs-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.docs-nav-button {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    flex: 0 0 48%;
}

.docs-nav-button:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.docs-nav-button span:first-child {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.docs-nav-button span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.docs-nav-button.next {
    align-items: flex-end;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.feature-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
}

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

    .docs-sidebar, .docs-toc {
        display: none;
    }

    .docs-main {
        padding: 2rem 1.5rem;
    }
}
