* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #F8F9FA;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #000;
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Sidebar */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 48px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #E5E7EB;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    color: #6B7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #F3F4F6;
    color: #000;
}

/* Main Content */
.main-content {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    border: 1px solid #E5E7EB;
    min-height: calc(100vh - 200px);
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 24px;
    color: #000;
    border-bottom: 2px solid #F3F4F6;
    padding-bottom: 12px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #000;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #374151;
}

p {
    color: #6B7280;
    margin-bottom: 16px;
    line-height: 1.7;
}

.lead {
    font-size: 18px;
    color: #4B5563;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Endpoint Cards */
.endpoint-card {
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.method-badge {
    background: #10B981;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.endpoint-url {
    background: #F3F4F6;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.endpoint-description {
    color: #6B7280;
    margin-bottom: 24px;
}

/* Parameters Table */
.parameters {
    margin: 24px 0;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.parameter-table th {
    background: #F9FAFB;
    color: #374151;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.parameter-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    color: #6B7280;
    font-size: 14px;
}

.parameter-table tbody tr:last-child td {
    border-bottom: none;
}

.param-name {
    font-family: 'JetBrains Mono', monospace;
    background: #F3F4F6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #374151;
    font-weight: 500;
}

.param-required {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Code Examples */
.code-examples {
    margin: 24px 0;
}

.code-content {
    position: relative;
    background: #1F2937;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #374151;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #374151;
    color: #9CA3AF;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.copy-btn:hover {
    background: #4B5563;
    color: #F3F4F6;
}

.code-content pre {
    padding: 20px;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #F3F4F6;
    background: transparent;
    overflow-x: auto;
    white-space: pre-wrap;
}

/* Response Examples */
.response-example {
    margin: 32px 0;
}

.response-example h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.response-code {
    background: #1F2937;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #374151;
}

.response-code pre {
    padding: 24px;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #F3F4F6;
    overflow-x: auto;
}

/* JSON Syntax Highlighting */
.token.key {
    color: #60A5FA;
}

.token.string {
    color: #34D399;
}

.token.number {
    color: #FBBF24;
}

.token.boolean {
    color: #F87171;
}

/* Quick Start Section */
.quick-start {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.quick-start h3 {
    color: #0369A1;
    margin-top: 0;
    margin-bottom: 12px;
}

.quick-start p {
    color: #0369A1;
    margin-bottom: 16px;
}

.quick-start ol {
    color: #0369A1;
    margin-left: 20px;
}

.quick-start ol li {
    margin-bottom: 8px;
    font-weight: 500;
}

/* Auth Info */
.auth-info {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.auth-info h4 {
    color: #92400E;
    margin-top: 0;
    margin-bottom: 12px;
}

.auth-info p {
    color: #92400E;
    margin-bottom: 0;
}

.auth-info code {
    background: #FBBF24;
    color: #92400E;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

/* Code inline */
code {
    background: #F3F4F6;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
}

/* Lists */
ul, ol {
    margin-bottom: 16px;
}

li {
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 240px 1fr;
        gap: 32px;
    }
    
    .main-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 32px;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .header-nav {
        gap: 16px;
    }
    
    .header-nav a {
        font-size: 14px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .endpoint-card {
        padding: 24px;
    }
    
    .copy-btn {
        position: static;
        margin-bottom: 12px;
        display: inline-block;
    }
    
    .code-content pre {
        font-size: 12px;
    }
} 