/* Documentation Styles */

.docs-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.docs-sidebar {
    width: 280px;
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--background-alt);
}

.docs-nav h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 24px 0 12px;
}

.docs-nav h4:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin: 4px 0;
}

.docs-nav a {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s;
}

.docs-nav a:hover {
    background: var(--border);
}

.docs-nav a.active {
    background: var(--primary);
    color: white;
}

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

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.docs-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.docs-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

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

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

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

.docs-content pre {
    background: var(--secondary);
    color: #e5e7eb;
    padding: 20px;
    border-radius: var(--radius);
    margin: 16px 0;
    overflow-x: auto;
}

.docs-content code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
}

.docs-content p code {
    background: var(--background-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.intro-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 32px;
    border-left: 4px solid var(--primary);
}

.intro-box p {
    margin: 0;
    font-size: 1.1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border);
}

.comparison-table th {
    background: var(--background-alt);
    font-weight: 600;
}

.comparison-table td:first-child {
    font-weight: 500;
}

.next-steps {
    margin-top: 48px;
    padding: 32px;
    background: var(--background-alt);
    border-radius: var(--radius);
}

.next-steps h3 {
    margin-top: 0;
    margin-bottom: 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.card {
    display: block;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.card h4 {
    margin-bottom: 8px;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* API Docs specific */
.api-endpoint {
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
    overflow: hidden;
}

.api-endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.api-method {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.api-method-get { background: #d1fae5; color: #065f46; }
.api-method-post { background: #dbeafe; color: #1e40af; }
.api-method-put { background: #fef3c7; color: #92400e; }
.api-method-delete { background: #fee2e2; color: #991b1b; }

.api-path {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
}

.api-endpoint-body {
    padding: 20px;
}

.api-params {
    width: 100%;
    font-size: 14px;
}

.api-params th {
    text-align: left;
    padding: 8px 0;
    color: var(--text-muted);
    font-weight: 500;
}

.api-params td {
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.param-name {
    font-family: monospace;
    color: var(--primary-dark);
}

.param-type {
    color: var(--text-muted);
    font-size: 12px;
}

.param-required {
    color: var(--danger);
    font-size: 11px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .docs-layout {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .docs-content {
        padding: 24px;
    }
}
