/* Super-Simple Includes Documentation Site Styles */

/* IBM Plex Sans Font Definitions */
@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Thin.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 100;
    font-display: swap;
    src: url('fonts/IBMPlexSans-ThinItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('fonts/IBMPlexSans-ExtraLight.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 200;
    font-display: swap;
    src: url('fonts/IBMPlexSans-ExtraLightItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/IBMPlexSans-LightItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Italic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 450;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Text.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 450;
    font-display: swap;
    src: url('fonts/IBMPlexSans-TextItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/IBMPlexSans-MediumItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/IBMPlexSans-SemiBoldItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/IBMPlexSans-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'IBMPlexSans';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/IBMPlexSans-BoldItalic.woff2') format('woff2');
}

/* CSS Custom Properties for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --background-color: #fff;
    --sidebar-background: #f8f9fa;
    --sidebar-width: 280px;
    --content-max-width: 900px;
    --header-height: 60px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBMPlexSans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

/* Documentation Layout */
.docs-container {
    display: flex;
    min-height: 100vh;
}

/* Header for docs pages */
.docs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--primary-color);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.docs-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.docs-header a {
    color: white;
    text-decoration: none;
}

.docs-header .version {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.8;
    font-family: var(--mono-font);
}

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

.docs-nav {
    padding: 0 1.5rem;
}

.docs-nav h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-text);
    margin: 1.5rem 0 0.75rem;
}

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

.docs-nav li {
    margin: 0;
}

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

.docs-nav a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.docs-nav a.active {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--accent-color);
    font-weight: 500;
}

/* Main Content Area */
.docs-main {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    flex: 1;
    padding: 3rem;
}

.docs-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Documentation-specific Typography */
.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.docs-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.docs-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.docs-content h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.docs-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

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

.docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}


.docs-content pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Reduce padding for HTML code blocks that have extra blank lines */
.docs-content pre:has(code.language-html) {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Reduce padding for non-language code blocks (directory trees) that have extra blank lines */
.docs-content pre:has(code:not([class*="language-"])) {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.docs-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875rem;
    color: inherit;
    white-space: pre-line;
    display: block;
}

/* Code blocks without language class (like directory trees) need preserved spacing */
.docs-content pre code:not([class*="language-"]) {
    white-space: pre;
}

/* HTML code blocks need proper indentation */
.docs-content pre code.language-html {
    white-space: pre;
}


.docs-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--light-text);
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

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

.docs-content th {
    font-weight: 600;
    background-color: var(--sidebar-background);
}

/* Quick Links Cards */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.link-card {
    background-color: var(--sidebar-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.link-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.link-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.link-card a {
    text-decoration: none;
    color: var(--primary-color);
}

.link-card a:hover {
    color: var(--accent-color);
}

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

/* Lead paragraph styling */
.lead {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Active navigation styling */
.docs-nav a.active,
.docs-nav a[href="index.html"].active {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--accent-color);
    font-weight: 500;
}

/* Improve header styling */
.docs-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Better link styling in content */
.docs-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.docs-content a:hover {
    border-bottom-color: var(--accent-color);
}

/* Code block improvements */
.docs-content pre {
    position: relative;
    background-color: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.docs-content pre code {
    font-family: monospace;
}

/* Language-specific code block classes */
.docs-content pre>code[class*="language-"] {
    display: block;
    overflow-x: auto;
    padding: 1rem;
}

/* Shell/Bash code blocks */
.docs-content .language-bash,
.docs-content .language-sh,
.docs-content .language-shell,
.docs-content .code-shell {
    background-color: #1a1a1a;
    color: #a8e6a8;
}

/* TOML code blocks */
.docs-content .language-toml,
.docs-content .code-toml {
    background-color: #1e1a2e;
    color: #e6a8d8;
}

/* HTML code blocks */
.docs-content .language-html,
.docs-content .language-xml,
.docs-content .code-html {
    background-color: #1a1e1e;
    color: #a8d8e6;
}

/* Generic code block styling */
.docs-content code {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-family: monospace;
    font-size: 1.2em;
}

/* Override background for code inside pre */
.docs-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Improve list spacing */
.docs-content ul li,
.docs-content ol li {
    margin-bottom: 0.75rem;
}

.docs-content ul ul,
.docs-content ol ol,
.docs-content ul ol,
.docs-content ol ul {
    margin-top: 0.5rem;
}

/* Add subtle animations */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Improve mobile navigation */
@media (max-width: 768px) {
    .docs-sidebar {
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .quick-links {
        grid-template-columns: 1fr;
    }
}

/* Better focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Improve table styling */
.docs-content table {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.docs-content tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Errors catalog column widths */
.errors-catalog .col-exit-code {
    width: 3.5em;
    text-align: center;
}

.errors-catalog .col-hint {
    width: 45%;
}

/* Original Layout (for non-docs pages) */
#site-header {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.site-description {
    font-size: 1.1rem;
    color: #ecf0f1;
    margin-bottom: 1rem;
}

/* Navigation */
#main-navigation {
    background-color: #34495e;
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #2c3e50;
}

/* Main content */
#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #34495e;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #34495e;
}

.lead {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul,
ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code and pre */
code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

/* Footer */
#site-footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #3498db;
}

/* Responsive Design for Documentation */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

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

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

    .docs-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
    }

    .docs-main {
        margin-left: 0;
        margin-top: 0;
        padding: 1.5rem;
    }

    .docs-header {
        position: static;
        padding: 1rem 1.5rem;
    }

    .docs-content h1 {
        font-size: 2rem;
    }

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

    .docs-content h3 {
        font-size: 1.25rem;
    }
}

/* Original Layout (for non-docs pages) */

/* Responsive design for original layout */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    #content h1 {
        font-size: 2rem;
    }

    #content h2 {
        font-size: 1.5rem;
    }
}
