/**
 * Reaver - Documentation Styles
 */

/* Sidebar */
.sidebar-docs {
    padding-left: 1.5rem;
    padding-right: 1rem;
}

.sidebar-docs nav {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-docs ul {
    margin: 0;
    padding: 0;
}

/* Content area */
.docs-content {
    max-width: 780px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.docs-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-medium);
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.docs-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

.docs-content li {
    margin-bottom: 0.25rem;
}

.docs-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.docs-content pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

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

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

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

.docs-content blockquote {
    border-left: 4px solid var(--accent-acid-green);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(204, 255, 0, 0.06);
    border-radius: 0 0.5rem 0.5rem 0;
}

.docs-content blockquote p {
    margin-bottom: 0;
}

.docs-content a {
    color: var(--accent-hot-pink-text);
    text-decoration: underline;
}

.docs-content a:hover {
    color: var(--accent-hot-pink-text-hover);
}

.docs-content hr {
    margin: 2rem 0;
    border-color: var(--border-medium);
}

/* Dark mode overrides */
[data-theme="dark"] .docs-content {
    color: var(--text-primary);
}

[data-theme="dark"] .docs-content code {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .docs-content pre {
    background: #18181b;
    color: #d4d4d8;
}

[data-theme="dark"] .docs-content th {
    background: var(--card-bg);
}

[data-theme="dark"] .docs-content th,
[data-theme="dark"] .docs-content td {
    border-color: var(--border-medium);
}

[data-theme="dark"] .sidebar-docs .bg-success {
    background: rgba(204, 255, 0, 0.1) !important;
}

[data-theme="dark"] .sidebar-docs .text-dark {
    color: #fafafa !important;
}
/* Install command builder (docs / installation) */
.install-cmd-builder {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-medium, #e5e5e5) !important;
    border-radius: 0.75rem;
}

.install-cmd-builder .form-control {
    border-radius: 0.5rem;
}

.install-cmd-pre {
    background: #1a1a2e;
    color: #e8e8f0;
    padding: 1rem 1.25rem;
    padding-right: 5.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    min-height: 4.5rem;
}

.install-cmd-copy {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
}

[data-theme="dark"] .install-cmd-builder {
    background: var(--card-bg, #18181b);
    border-color: var(--border-medium, #3f3f46) !important;
}

[data-theme="dark"] .install-cmd-pre {
    background: #0f0f14;
    color: #d4d4d8;
}
