/* 
    Saka-NLP Docs Styles 📚
    Specialized for docs.html
*/

body {
    display: flex;
}

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

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.sidebar-brand span {
    color: var(--primary);
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-group-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-bottom: 0.2rem;
}

.nav-link:hover {
    background-color: var(--surface-hover);
    color: var(--accent);
}

.nav-link.active {
    background-color: rgba(168, 32, 32, 0.1);
    color: var(--primary);
    font-weight: 500;
    border-left: 2px solid var(--primary);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem 4rem;
    max-width: 1000px;
}

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

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.page-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Documentation Sections */
.docs-section {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.docs-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.method-signature {
    font-family: var(--font-mono);
    background-color: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #d1d5db;
}

.method-signature span.keyword {
    color: #f27c7c;
}

.method-signature span.method {
    color: #66d9ef;
}

.method-signature span.type {
    color: #a6e22e;
}

/* Parameters Table */
.param-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.param-table th,
.param-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.param-table th {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
}

.param-table td code {
    background-color: var(--surface);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent);
}

/* Mobile Responsiveness for Docs */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 2rem;
    }
}