/* ==================== DOCUMENTATION 2 - LIGHT MODERN THEME ==================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Light Theme Colors */
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f4f6;
    --bg-elevated: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Brand Colors - Trading Theme */
    --accent-primary: #0ea5e9;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    --accent-glow: rgba(14, 165, 233, 0.4);
    
    /* Success/Error */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    
    /* Spacing */
    --nav-height: 56px;
    --sidebar-width: 280px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.08);
}

.language-switch {
    display: flex;
    margin-left: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 2px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ==================== DOCUMENTATION LAYOUT ==================== */
.docs-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

/* ==================== SIDEBAR ==================== */
.docs-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition-base);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
}

.sidebar-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-close svg {
    width: 18px;
    height: 18px;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 16px 8px;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.sidebar-search:focus-within {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.sidebar-search svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

.sidebar-nav {
    padding: 8px 0 24px;
}

.nav-section {
    margin-bottom: 4px;
}

.nav-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-section-title:hover {
    background: var(--bg-tertiary);
}

.nav-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.nav-section-title .chevron {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

.nav-section.open .nav-section-title .chevron {
    transform: rotate(180deg);
}

.nav-section-items {
    display: none;
    list-style: none;
    padding: 4px 0;
}

.nav-section.open .nav-section-items {
    display: block;
}

.nav-section-items li {
    margin: 0;
}

.nav-section-items a {
    display: block;
    padding: 8px 16px 8px 48px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-section-items a:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-section-items a.active {
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.06);
    border-left-color: var(--accent-primary);
}

/* Sidebar Toggle Button (Mobile) */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: all var(--transition-base);
}

.sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ==================== MAIN CONTENT ==================== */
.docs-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px 48px 80px;
    max-width: calc(100% - var(--sidebar-width));
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== DOCUMENTATION ARTICLE ==================== */
.docs-article {
    max-width: 800px;
}

.doc-section {
    padding-top: 24px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.doc-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.doc-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.doc-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.doc-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.doc-section .lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.placeholder-text {
    font-style: italic;
    color: var(--text-muted);
}

/* ==================== CALLOUT BOXES ==================== */
.callout {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 12px;
    border-left: 4px solid;
}

.callout-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.callout-icon svg {
    width: 100%;
    height: 100%;
}

.callout-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.callout-content p {
    font-size: 14px;
    margin: 0;
    color: inherit;
    opacity: 0.9;
}

.callout-info {
    background: var(--info-light);
    border-color: var(--info);
    color: #1e40af;
}

.callout-info .callout-icon {
    color: var(--info);
}

.callout-tip {
    background: var(--success-light);
    border-color: var(--success);
    color: #065f46;
}

.callout-tip .callout-icon {
    color: var(--success);
}

.callout-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #92400e;
}

.callout-warning .callout-icon {
    color: var(--warning);
}

.callout-error {
    background: var(--error-light);
    border-color: var(--error);
    color: #991b1b;
}

.callout-error .callout-icon {
    color: var(--error);
}

/* ==================== FEATURE LIST ==================== */
.feature-list {
    list-style: none;
    margin: 16px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-list li svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== STEPS LIST ==================== */
.steps-list {
    list-style: none;
    margin: 24px 0;
    counter-reset: none;
}

.steps-list li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.steps-list li:last-child {
    border-bottom: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 6px;
}

.step-content p {
    margin: 0;
    font-size: 14px;
}

/* ==================== INFO GRID ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.info-card {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.info-card:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.info-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 10px;
    margin-bottom: 12px;
}

.info-card-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.info-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-card p {
    font-size: 13px;
    margin: 0;
    color: var(--text-muted);
}

/* ==================== CODE BLOCKS ==================== */
.code-block {
    margin: 20px 0;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: inherit;
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.code-block pre {
    margin: 0;
    padding: 16px 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Inline code */
.doc-section code:not(.code-block code) {
    padding: 2px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
}

/* ==================== TABLES ==================== */
.docs-table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.docs-table th,
.docs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.docs-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.docs-table th:first-child {
    border-radius: 8px 0 0 0;
}

.docs-table th:last-child {
    border-radius: 0 8px 0 0;
}

.docs-table td {
    color: var(--text-secondary);
}

.docs-table tr:hover td {
    background: var(--bg-tertiary);
}

/* ==================== SETTINGS LIST ==================== */
.settings-list {
    margin: 20px 0;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 8px;
}

.setting-name {
    font-weight: 600;
    font-size: 14px;
}

.setting-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.docs-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.docs-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
    }
    
    .docs-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .docs-content {
        margin-left: 0;
        max-width: 100%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .doc-section h1 {
        font-size: 26px;
    }
    
    .doc-section h2 {
        font-size: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-table {
        font-size: 13px;
    }
    
    .docs-table th,
    .docs-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .docs-content {
        padding: 16px;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .callout {
        flex-direction: column;
        gap: 10px;
    }
    
    .steps-list li {
        flex-direction: column;
        gap: 12px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

