/* Documentation Page Styles */

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
    padding-top: 4rem;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.logo {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--muted);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.docs-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.sidebar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-purple);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.25rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.sidebar-nav a:hover {
    color: var(--text);
}

.sidebar-nav a.active {
    color: #a855f7;
    font-weight: 500;
}

.content {
    background: rgba(20, 12, 36, 0.48);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 10;
}

.content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 1rem 0;
}

.content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a855f7;
    margin: 1.5rem 0 0.75rem 0;
}

.content p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content ul, .content ol {
    color: var(--muted);
    margin: 1rem 0 1rem 1.5rem;
    line-height: 1.6;
}

.content li {
    margin-bottom: 0.5rem;
}

.code-block {
    background: rgba(5, 3, 12, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e5e7eb;
    overflow-x: auto;
    position: relative;
}

.inline-code {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.endpoint-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-strong);
}

.endpoint-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.endpoint-method {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.endpoint-desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .docs-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 1rem;
        padding-top: 4rem;
    }
}
