/* :root variables are inherited from ../../website/style.css */

/* Resets and body styles inherited from style.css */

/* Layout */
.docs-container {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 24px 0;
    z-index: 10;
}

.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: var(--bg-base);
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 10px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

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

.sidebar-nav a.active {
    color: var(--accent);
    background: var(--bg-elevated);
    border-left-color: var(--accent);
}

.sidebar-nav .nav-section {
    padding: 16px 24px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Main Content */
.docs-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px 60px;
    max-width: 1000px;
}

/* Header */
.docs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
}

.docs-header .logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.docs-header .logo span {
    color: var(--accent);
}

.docs-header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.docs-header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.docs-header-nav a:hover {
    color: var(--accent);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    color: var(--accent);
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.nav-dropdown-menu a span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-button {
    background: var(--bg-hover);
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    font-weight: 500;
}

.auth-button:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.auth-button.primary {
    background: var(--accent);
    color: white;
}

.auth-button.primary:hover {
    background: var(--accent-hover);
}

/* Footer */
.docs-footer {
    padding: 40px;
    border-top: 1px solid var(--border);
    margin-left: 280px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 12px;
    text-align: right;
}

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

    .auth-buttons {
        display: none;
    }

    .docs-footer {
        margin-left: 0;
        padding: 30px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-copyright {
        text-align: center;
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    padding-top: 20px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Content */
.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.docs-content h1 span {
    color: var(--accent);
}

.docs-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.docs-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}

.docs-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.docs-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* Code Blocks */
pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.6;
}

code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

pre code {
    color: var(--text);
    display: block;
}

code:not(pre code) {
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.9em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

table thead {
    background: var(--bg-elevated);
}

table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover {
    background: var(--bg-hover);
}

/* Feature Matrix Tables */
.support-full {
    color: var(--success);
    font-weight: 600;
    text-align: center;
}

.support-partial {
    color: var(--warning);
    font-weight: 600;
    text-align: center;
}

.support-none {
    color: var(--error);
    font-weight: 600;
    text-align: center;
}

.support-manual {
    color: var(--accent);
    font-weight: 600;
    text-align: center;
}

.feature-name {
    font-weight: 600;
    color: var(--text);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 24px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--accent);
    color: var(--text-secondary);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border-left-color: var(--warning);
    color: var(--text-secondary);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: var(--success);
    color: var(--text-secondary);
}

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

    .docs-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 300px;
    }

    .docs-main {
        margin-left: 0;
        padding: 24px 20px;
    }

    .docs-header {
        padding: 0 20px;
    }

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

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

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px 12px;
    }
}

/* Syntax Highlighting */
.hljs {
    background: var(--bg-elevated) !important;
    color: var(--text) !important;
}

.hljs-keyword {
    color: #c792ea;
}

.hljs-string {
    color: #c3e88d;
}

.hljs-number {
    color: #f78c6c;
}

.hljs-comment {
    color: var(--text-muted);
    font-style: italic;
}

.hljs-function {
    color: #82aaff;
}

.hljs-variable {
    color: #ffcb6b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    border-radius: var(--radius);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent);
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.modal h2 span {
    color: var(--accent);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-button {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.submit-button:hover {
    background: var(--accent-hover);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}