﻿/* =========================================================
   Auxilia Trade API Docs — Clean Dark
   ========================================================= */

/* ----------------------------
   Theme
---------------------------- */
:root {
    --bg: #070a12;
    --surface: rgba(255,255,255,.045);
    --surface-strong: rgba(255,255,255,.065);
    --border: rgba(255,255,255,.08);
    --shadow: 0 12px 32px rgba(0,0,0,.45);
    --text: rgba(245,248,255,.92);
    --muted: rgba(195,210,235,.68);
    --accent: #62d0ff;
    --link: #7bd3ff;
    --link-hover: #b6e9ff;
    --code-bg: rgba(255,255,255,.06);
    --code-border: rgba(255,255,255,.12);
    --radius: 14px;
}

/* ----------------------------
   Base
---------------------------- */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* Rhythm */
p, ul, ol, pre, blockquote, table {
    margin: 0 0 14px 0;
}

/* ----------------------------
   Layout
---------------------------- */
.layout {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

.sidebar {
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ----------------------------
   Navigation
---------------------------- */
.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-section {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.nav-title {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
}

    .nav-link:hover {
        background: rgba(255,255,255,.06);
        border-color: var(--border);
    }

    .nav-link.active {
        background: rgba(98,208,255,.12);
        border-color: rgba(98,208,255,.35);
        color: #e6f7ff;
    }

/* ----------------------------
   Typography
---------------------------- */
a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

    a:hover {
        color: var(--link-hover);
        text-decoration: underline;
    }

h1, h2, h3, h4 {
    margin: 22px 0 8px;
    line-height: 1.25;
}

h1 {
    margin-top: 0;
    font-size: 32px;
}

h2 {
    font-size: 22px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 16px;
    color: var(--muted);
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

/* ----------------------------
   Code
---------------------------- */
code {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95em;
}

pre {
    background: rgba(0,0,0,.35);
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
}

    pre code {
        background: transparent;
        border: none;
        padding: 0;
    }

/* ----------------------------
   Lists
---------------------------- */
ul, ol {
    padding-left: 1.2rem;
    margin-left: 0;
}

li {
    margin: 0; /* <-- zgodnie z wymaganiem */
}

/* Level 1 */
ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

    /* Level 2+ → dash */
    ul ul,
    ul ol,
    ol ul,
    ol ol {
        list-style: none;
        padding-left: 1rem;
    }

        ul ul > li::before,
        ul ol > li::before,
        ol ul > li::before,
        ol ol > li::before {
            content: "-";
            margin-right: 6px;
            color: var(--muted);
        }

/* ----------------------------
   Blockquote
---------------------------- */
blockquote {
    margin: 14px 0;
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    color: var(--muted);
}

/* ----------------------------
   Tables
---------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

th {
    text-align: left;
    font-weight: 700;
    color: #eef4ff;
    background: rgba(255,255,255,.05);
}

tr:last-child td {
    border-bottom: 0;
}

/* ----------------------------
   Mobile
---------------------------- */
@media (max-width: 960px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    h1 {
        font-size: 28px;
    }
}
