/**
 * Documentation Page Styles
 *
 * @package Velarium
 */

/* Docs Layout */
.docs-layout {
    display: flex;
    padding-top: 73px;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-tree {
    list-style: none;
}

.sidebar-tree li {
    position: relative;
    list-style: none;
}

.sidebar-tree li::marker {
    content: none;
}

.sidebar-tree a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-tree a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.sidebar-tree a.active {
    color: var(--text-primary);
    background: var(--accent-dim);
    border-left-color: var(--accent);
}

.sidebar-tree .coming-soon {
    color: var(--text-muted);
    cursor: default;
}

.sidebar-tree .coming-soon:hover {
    background: transparent;
    color: var(--text-muted);
}

.coming-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: auto;
}

/* Collapsible sections */
.tree-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.tree-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tree-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.tree-toggle.open svg {
    transform: rotate(90deg);
}

.tree-children {
    display: none;
    padding-left: 1.375rem;
    list-style: none;
}

.tree-children li {
    list-style: none;
}

.tree-children li::marker {
    content: none;
}

.tree-children.open {
    display: block;
}

/* Docs Content */
.docs-content {
    flex: 1;
    padding: 3rem 4rem;
    max-width: 900px;
}

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

.docs-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.wip-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.docs-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.docs-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Doc Sections */
.doc-section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.docs-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.docs-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.docs-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.docs-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        display: none;
    }

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