/* Documentation Page Styles */
:root {
    --bg-primary: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;
    --accent: #4c82fb;
    --accent-hover: #3b6fd8;
    --border: rgba(255, 255, 255, 0.1);
    --green: #22c55e;
    --gold: #f59e0b;
    --red: #ef4444;
}

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

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.docs-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.launch-btn {
    padding: 10px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.launch-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Container */
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 73px);
}

/* Sidebar */
.docs-sidebar {
    padding: 40px 20px;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.nav-link {
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent);
    background: rgba(76, 130, 251, 0.1);
    border-left: 3px solid var(--accent);
    padding-left: 9px;
}

/* Content */
.docs-content {
    padding: 60px 80px;
    max-width: 900px;
}

.doc-section {
    margin-bottom: 80px;
}

.doc-section h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.doc-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 40px;
}

.doc-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 32px;
}

.doc-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lead {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.doc-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.doc-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.doc-section li strong {
    color: var(--text-primary);
}

/* Info Boxes */
.info-box, .warning-box, .success-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
}

.info-box {
    background: rgba(76, 130, 251, 0.1);
    border: 1px solid rgba(76, 130, 251, 0.3);
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.info-box .iconify {
    font-size: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.warning-box .iconify {
    font-size: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.success-box .iconify {
    font-size: 24px;
    color: var(--green);
    flex-shrink: 0;
}

.info-box strong, .warning-box strong, .success-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-box p, .warning-box p, .success-box p {
    margin: 0;
    font-size: 14px;
}

/* Code Blocks */
.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block code, code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #10b981;
    white-space: pre;
}

/* Steps */
.step-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}

.step {
    display: flex;
    gap: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
}

.step-simple {
    padding: 16px 20px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 16px;
}

/* Workflow */
.workflow {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.workflow-step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.workflow-icon {
    width: 56px;
    height: 56px;
    background: rgba(76, 130, 251, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workflow-icon .iconify,
.workflow-icon iconify-icon {
    font-size: 28px;
    color: var(--accent);
}

.workflow-content h4 {
    margin-top: 0;
}

.workflow-content ul {
    margin-top: 12px;
}

/* Settings Example */
.settings-example {
    background: var(--bg-elevated);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.setting-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.setting-item:last-child {
    border-bottom: none;
}

/* Trade Flow */
.trade-flow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    overflow-x: auto;
}

.flow-item {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.flow-arrow {
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
}

/* Agent Cards */
.agent-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.agent-doc-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.agent-header img {
    width: 48px;
    height: 48px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.agent-trait {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(76, 130, 251, 0.1);
    border: 1px solid rgba(76, 130, 251, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.agent-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Tech Breakdown */
.tech-breakdown {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}

.tech-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Fee Table */
.fee-table {
    margin: 24px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.fee-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 24px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row.header {
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fee-row div {
    color: var(--text-secondary);
}

.fee-row.header div {
    color: var(--text-primary);
}

/* Revenue */
.revenue-breakdown {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}

.revenue-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.example-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 14px;
}

.example-box p {
    margin: 4px 0;
}

.distribution-chart {
    margin-top: 16px;
}

.distribution-bar {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* FAQ */
.faq-item {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.faq-item h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    margin: 0;
}

/* Chat Examples */
.chat-examples {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-example, .chat-response {
    padding: 16px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 14px;
}

.chat-example strong {
    color: var(--text-primary);
}

.chat-response {
    border-left: 3px solid var(--accent);
}

/* Feature Highlight */
.feature-highlight {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 32px 0;
}

.feature-highlight h3 {
    margin-top: 0;
}

/* CTA */
.docs-cta {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(76, 130, 251, 0.3);
    border-radius: 16px;
    margin-top: 60px;
}

.docs-cta h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.docs-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Scrollbar */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .docs-content {
        padding: 40px 24px;
    }
    
    .agent-docs-grid {
        grid-template-columns: 1fr;
    }
}

