/* Documentation Specific Styles */

.docs-container {
    display: flex;
    margin-top: 64px;
    height: calc(100vh - 64px);
    background: var(--background);
}

.docs-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    flex-shrink: 0;
}

.toc {
    padding: 24px 16px;
}

.toc-header {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 12px;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.toc-item {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.toc-item:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.toc-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 500;
}

.toc-sub {
    padding-left: 28px;
    font-size: 13px;
}

.docs-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 48px 48px 48px;
    max-width: 900px;
}

/* Hero Section */
.docs-hero {
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.docs-hero h1 {
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.docs-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

/* Sections */
.docs-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px;
}

.docs-section h2 {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.5px;
}

.docs-section h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.docs-section h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.docs-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.docs-section ul,
.docs-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.docs-section li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.copy-btn {
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--background);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Inline Code */
:not(pre) > code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #e8f4fd;
    border-left: 4px solid #1967d2;
    border-radius: 4px;
    margin: 24px 0;
}

.info-box svg {
    flex-shrink: 0;
    color: #1967d2;
}

.info-box strong {
    color: #1967d2;
}

.info-box a {
    color: #1967d2;
    text-decoration: none;
    border-bottom: 1px solid #1967d2;
}

.info-box a:hover {
    border-bottom: 2px solid #1967d2;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card svg {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Lists */
.feature-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.numbered-list {
    counter-reset: item;
    list-style: none;
    margin-left: 0;
}

.numbered-list li {
    counter-increment: item;
    padding-left: 36px;
    position: relative;
    margin-bottom: 16px;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* API Table */
.api-table {
    overflow-x: auto;
    margin: 24px 0;
}

.api-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.api-table thead {
    background: var(--surface);
}

.api-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

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

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

.api-table tbody tr:hover {
    background: var(--surface);
}

/* Keyword Grid */
.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.keyword-card {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
.docs-footer {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

.docs-footer p {
    margin: 8px 0;
}

.docs-footer a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
}

.docs-footer a:hover {
    border-bottom: 2px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-sidebar {
        width: 240px;
    }
    
    .docs-content {
        padding: 0 32px 32px 32px;
    }
}

@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .toc {
        padding: 16px;
    }
    
    .toc-item {
        display: inline-block;
        margin-right: 8px;
    }
    
    .docs-content {
        padding: 0 24px 24px 24px;
    }
    
    .docs-hero h1 {
        font-size: 36px;
    }
    
    .docs-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .keyword-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .docs-content {
        padding: 0 16px 16px 16px;
    }
    
    .docs-hero {
        padding: 32px 0;
    }
    
    .docs-hero h1 {
        font-size: 28px;
    }
    
    .docs-section h2 {
        font-size: 24px;
    }
    
    .docs-section h3 {
        font-size: 20px;
    }
}
.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
a {
    text-decoration: none;
}