* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #e4e4e7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid #27272a;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fafafa;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.1em;
    color: #a1a1aa;
    font-weight: 400;
}

.toc-container {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}

.toc-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s ease;
}

.toc-header:hover {
    background: #1c1c1f;
}

.toc-header span:first-child {
    font-weight: 600;
    color: #fafafa;
    font-size: 0.95em;
}

.toc-toggle {
    color: #a1a1aa;
    transition: transform 0.2s ease;
    font-size: 0.8em;
}

.toc-toggle.open {
    transform: rotate(-180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #27272a;
}

.toc-content.open {
    max-height: 300px;
}

.toc-item {
    display: block;
    padding: 12px 20px;
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-item:hover {
    background: #1c1c1f;
    color: #e4e4e7;
    border-left-color: #6366f1;
}

.endpoint-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.endpoint-card:hover {
    border-color: #3f3f46;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.method-badge {
    background: #6366f1;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.endpoint-url {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9em;
    flex: 1;
    min-width: 200px;
    border: 1px solid #27272a;
    color: #e4e4e7;
    font-weight: 500;
}

.endpoint-description {
    color: #a1a1aa;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95em;
}

.section-title {
    color: #fafafa;
    font-weight: 600;
    margin: 28px 0 16px 0;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.params-list {
    list-style: none;
    margin: 16px 0;
}

.params-list li {
    padding: 12px 0;
    border-bottom: 1px solid #27272a;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.params-list li:last-child {
    border-bottom: none;
}

.param-name {
    font-family: 'Courier New', monospace;
    background: #27272a;
    color: #e4e4e7;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.param-required {
    background: #dc2626;
    color: white;
}

.param-optional {
    background: #16a34a;
    color: white;
}

.param-desc {
    color: #a1a1aa;
    line-height: 1.5;
    font-size: 0.9em;
}

.code-block {
    background: #0a0a0a;
    color: #e4e4e7;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
    border: 1px solid #27272a;
    position: relative;
}

.code-block::before {
    content: 'JSON';
    position: absolute;
    top: 12px;
    right: 16px;
    color: #52525b;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.json-key {
    color: #818cf8;
}

.json-string {
    color: #34d399;
}

.json-number {
    color: #fbbf24;
}

.copy-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #4f46e5;
}

.copy-btn:active {
    transform: scale(0.98);
}

.footer {
    text-align: center;
    padding: 60px 20px 40px;
    color: #71717a;
    margin-top: 60px;
    border-top: 1px solid #27272a;
}

.footer p {
    margin: 8px 0;
    font-size: 0.9em;
}

.footer a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #e4e4e7;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .endpoint-header {
        flex-direction: column;
        align-items: stretch;
    }

    .endpoint-url {
        min-width: 100%;
    }
}
