/* Documentation Hub Styles */
:root {
    --docs-sidebar-bg: #fcfcfc;
    --docs-sidebar-text: #404040;
    --docs-link-color: #CC0052;
    --docs-header-bg: #f3f3f3;
    --docs-border-color: #e1e4e6;
    --docs-text-main: #333;
    --docs-bg-main: #ffffff;
}

.docs-container {
    display: flex;
    min-height: 100vh;
    gap: 2rem;
    align-items: flex-start;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sidebar */
.docs-sidebar {
    width: 300px;
    background: var(--docs-sidebar-bg);
    border-right: 1px solid var(--docs-border-color);
    padding: 2rem;
    position: sticky;
    top: 90px; /* avoid fixed header overlap */
    height: calc(100vh - 90px);
    overflow-y: auto;
}

/* Main Content */
.docs-main {
    flex: 1;
    padding: 4rem 3rem; /* reduce right padding so main content sits centrally */
    background: var(--docs-bg-main);
}

.docs-content {
    max-width: 900px; /* allow a bit more width for readable content */
}

/* TOC Sidebar (Right) */
.docs-toc {
    width: 250px;
    padding: 4rem 2rem;
    position: sticky;
    top: 90px; /* avoid fixed header overlap */
    height: calc(100vh - 90px);
    background: transparent;
    border-left: 1px solid var(--docs-border-color);
}


.docs-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

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

.docs-nav li {
    margin-bottom: 0.8rem;
}

.docs-nav li a {
    color: var(--docs-sidebar-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.docs-nav li a:hover,
.docs-nav li.active a {
    color: var(--docs-link-color);
    font-weight: 500;
}

/* Main Content */
.docs-main {
    flex: 1;
    padding: 4rem 8rem;
    background: var(--docs-bg-main);
}

.docs-content {
    max-width: 800px;
}

.docs-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--docs-border-color);
    padding-bottom: 2rem;
}

.docs-header h1 {
    font-size: 3.6rem;
    margin-bottom: 1rem;
    color: #111;
}

.docs-meta {
    font-size: 1.2rem;
    color: #777;
    display: flex;
    gap: 2rem;
}

/* Markdown Content Styling */
.docs-article {
    line-height: 1.7;
    font-size: 1.6rem;
    color: var(--docs-text-main);
}

.docs-article h2 {
    font-size: 2.8rem;
    margin: 4rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.docs-article h3 {
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
}

.docs-article p {
    margin-bottom: 2rem;
}

.docs-article ul,
.docs-article ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.docs-article code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-article pre {
    background: #282c34;
    padding: 2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 3rem 0;
}

.docs-article pre code {
    background: transparent;
    padding: 0;
    color: #abb2bf;
}

.docs-article blockquote {
    border-left: 4px solid var(--docs-link-color);
    padding-left: 2rem;
    color: #666;
    margin: 2rem 0;
    font-style: italic;
}

.docs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 3rem 0;
}

.docs-article th,
.docs-article td {
    border: 1px solid var(--docs-border-color);
    padding: 1.2rem;
    text-align: left;
}

.docs-article th {
    background: #f9f9f9;
}

/* TOC Sidebar (Right) */
.docs-toc {
    width: 250px;
    padding: 4rem 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.docs-toc h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #999;
}

.docs-toc ul {
    list-style: none;
    padding: 0;
    font-size: 1.3rem;
}

.docs-toc li {
    margin-bottom: 1rem;
}

.docs-toc a {
    color: #666;
    text-decoration: none;
}

.docs-toc a:hover {
    color: var(--docs-link-color);
}

/* Breadcrumbs */
.docs-breadcrumbs {
    margin-bottom: 2rem;
    font-size: 1.3rem;
    color: #999;
}

.docs-breadcrumbs a {
    color: var(--docs-link-color);
    text-decoration: none;
}

/* Utility */
.badge-status {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-published {
    background: #e6ffed;
    color: #22863a;
}

.badge-draft {
    background: #fff5b1;
    color: #735c0f;
}

/* Responsive */
@media (max-width: 1200px) {
    .docs-toc {
        display: none;
    }

    .docs-main {
        padding: 4rem;
    }
}

@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 2rem;
    }
}