/* Documentation Styles - Self-contained CSS for docs pages */

:root {
    --docs-bg-dark: #08090a;
    --docs-text-primary: #FFFFFF;
    --docs-text-secondary: #8A8A8D;
    --docs-text-muted: #6B6B6E;
    --docs-border-color: rgba(255, 255, 255, 0.1);
    --docs-border-hover: rgba(255, 255, 255, 0.2);
    --docs-code-bg: rgba(0, 0, 0, 0.4);
    --docs-code-border: rgba(255, 255, 255, 0.15);
    --docs-link-color: #60A5FA;
    --docs-link-hover: #93C5FD;
    --docs-sidebar-bg: rgba(10, 10, 10, 0.6);
    --docs-sidebar-width: 280px;
    --docs-content-max-width: 900px;
    --docs-tip-bg: rgba(96, 165, 250, 0.1);
    --docs-tip-border: rgba(96, 165, 250, 0.3);
}

/* @todo add docs styles ✓ DONE */

/* Documentation Container */
.docs-container {
    min-height: 100vh;
    position: relative;
    z-index: 10;
    padding-top: 80px; /* Account for fixed header */
}

.docs-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--docs-sidebar-width) 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
}

/* Sidebar Navigation */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--docs-sidebar-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--docs-border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.docs-nav-header h3 {
    color: var(--docs-text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--docs-border-color);
}

.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-item {
    margin-bottom: 0.25rem;
}

.docs-nav-link {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--docs-text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.docs-nav-link:hover {
    color: var(--docs-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.docs-nav-link.current,
.docs-nav-link.active {
    color: var(--docs-text-primary);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.docs-nav-item.current {
    background: rgba(255, 255, 255, 0.05);
}

/* Main Content Area */
.docs-content {
    max-width: var(--docs-content-max-width);
    margin: 0 auto;
    width: 100%;
    background: var(--docs-sidebar-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--docs-border-color);
    border-radius: 1rem;
    padding: 2.5rem;
}

/* Documentation page header - ensure it's not affected by main stylesheet header styles */
.docs-header {
    margin-bottom: 3rem;
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
    z-index: auto;
}

.docs-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--docs-text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.docs-intro {
    font-size: 1.25rem;
    color: var(--docs-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Documentation Body */
.docs-body {
    color: var(--docs-text-primary);
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px; /* For smooth scrolling with fixed header */
}

.docs-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--docs-border-color);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.docs-subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

h4.docs-subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--docs-text-primary);
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

.docs-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--docs-text-secondary);
    margin: 0 0 1.25rem 0;
}

.docs-body p:last-child {
    margin-bottom: 0;
}

/* Lists */
.docs-list {
    margin: 1.25rem 0;
    padding-left: 1.75rem;
    color: var(--docs-text-secondary);
    line-height: 1.8;
}

.docs-list li {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

.docs-list li:last-child {
    margin-bottom: 0;
}

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

/* Ordered lists */
ol.docs-list {
    list-style-type: decimal;
}

ol.docs-list li {
    padding-left: 0.5rem;
}

/* Code Blocks */
.docs-code {
    background: var(--docs-code-bg);
    border: 1px solid var(--docs-code-border);
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-family: 'SF Mono', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9375rem;
    color: var(--docs-text-primary);
    font-weight: 500;
}

.docs-code-block {
    margin: 1.5rem 0;
    background: var(--docs-code-bg);
    border: 1px solid var(--docs-code-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    position: relative;
}

/* Screenshot/Image Blocks */
.docs-screenshot {
    margin: 2rem 0;
    border-radius: 1rem 1rem 0 0;
    overflow: hidden;
    border: 1px solid var(--docs-border-color);
    background: var(--docs-code-bg);
}

.docs-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem 1rem 0 0;
}

.docs-code-block pre {
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.docs-code-block code {
    font-family: 'SF Mono', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #E5E7EB;
    white-space: pre;
    display: block;
}

/* Links */
.docs-link {
    color: var(--docs-link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.docs-link:hover {
    color: var(--docs-link-hover);
    text-decoration: underline;
}

/* Tips and Callouts */
.docs-tip {
    background: var(--docs-tip-bg);
    border: 1px solid var(--docs-tip-border);
    border-left: 4px solid var(--docs-link-color);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--docs-text-secondary);
    line-height: 1.6;
}

.docs-tip strong {
    color: var(--docs-text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .docs-sidebar {
        position: static;
        top: auto;
    }

    .docs-nav-header h3 {
        margin-bottom: 1rem;
    }

    .docs-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .docs-nav-item {
        margin-bottom: 0;
    }

    .docs-nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .docs-content {
        padding: 2rem;
    }

    .docs-title {
        font-size: 2.5rem;
    }

    .docs-intro {
        font-size: 1.125rem;
    }

    .docs-section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding-top: 70px;
    }

    .docs-wrapper {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .docs-content {
        padding: 1.5rem;
    }

    .docs-title {
        font-size: 2rem;
    }

    .docs-intro {
        font-size: 1rem;
    }

    .docs-section-title {
        font-size: 1.5rem;
    }

    .docs-subsection-title {
        font-size: 1.25rem;
    }

    .docs-body p {
        font-size: 1rem;
    }

    .docs-code-block {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .docs-code-block code {
        font-size: 0.875rem;
    }

    .docs-nav-list {
        flex-direction: column;
    }

    .docs-nav-link {
        width: 100%;
    }
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .docs-sidebar {
        display: none;
    }

    .docs-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .docs-content {
        max-width: 100%;
    }

    .docs-code-block {
        page-break-inside: avoid;
    }
}

