/* LCS-Mar Documentation — Dark Theme */

:root {
    --lcs-accent: #e07028;
    --lcs-accent-dark: #c05820;
    --lcs-accent-light: #f09048;
    --lcs-bg: #060c19;
    --lcs-bg-raised: #0a1020;
    --lcs-bg-surface: #0d1828;
    --lcs-border: rgba(255, 255, 255, 0.08);
    --lcs-text: #d1d5db;
    --lcs-text-light: #9ca3af;
    --sidebar-width: 280px;
    --header-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--lcs-text);
    background: var(--lcs-bg);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(13, 24, 40, 0.4); }
::-webkit-scrollbar-thumb { background: rgba(224, 112, 40, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(224, 112, 40, 0.55); }

.docs-header {
    background: var(--lcs-bg-surface);
    color: white;
    height: var(--header-height);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--lcs-border);
}

.docs-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
    max-width: 100%;
}

.docs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.docs-logo i { font-size: 1.8rem; }

.docs-nav { display: flex; gap: 2rem; list-style: none; }

.docs-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.docs-nav a:hover,
.docs-nav a.active { color: white; }

.back-to-main {
    background: rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.back-to-main:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.docs-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.docs-sidebar {
    width: var(--sidebar-width);
    background: var(--lcs-bg-raised);
    border-right: 1px solid var(--lcs-border);
    position: fixed;
    top: var(--header-height);
    left: 0; bottom: 0;
    overflow-y: auto;
    padding: 2rem 0;
}

.sidebar-section { margin-bottom: 2rem; }

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lcs-text-light);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 0.25rem; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: var(--lcs-text-light);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--lcs-accent-light);
}

.sidebar-menu a.active {
    background: rgba(224, 112, 40, 0.1);
    color: var(--lcs-accent-light);
    border-left-color: var(--lcs-accent);
    font-weight: 600;
}

.sidebar-menu a i {
    margin-right: 0.75rem;
    width: 1.2rem;
    text-align: center;
    color: var(--lcs-accent-light);
}

.docs-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 3rem;
    max-width: 900px;
}

.docs-content h1 { font-size: 2.5rem; color: #e5e7eb; margin-bottom: 0.5rem; font-weight: 700; }
.docs-content h2 { font-size: 1.8rem; color: #e5e7eb; margin-top: 3rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--lcs-border); }
.docs-content h3 { font-size: 1.4rem; color: #d1d5db; margin-top: 2rem; margin-bottom: 1rem; }
.docs-content h4 { font-size: 1.1rem; color: #d1d5db; margin-top: 1.5rem; margin-bottom: 0.75rem; }

.docs-subtitle { font-size: 1.2rem; color: var(--lcs-text-light); margin-bottom: 2rem; }

.docs-content p { margin-bottom: 1rem; line-height: 1.7; }
.docs-content ul, .docs-content ol { margin-bottom: 1rem; padding-left: 2rem; }
.docs-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.docs-content a { color: var(--lcs-accent-light); text-decoration: none; }
.docs-content a:hover { text-decoration: underline; }

.docs-content pre {
    background: var(--lcs-bg-raised);
    border: 1px solid var(--lcs-border);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #c9d1d9;
}

.docs-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.docs-content pre code { background: none; padding: 0; }

.info-box { padding: 1rem 1.5rem; border-radius: 6px; margin: 1.5rem 0; border-left: 4px solid; }
.info-box-note { background: rgba(224, 112, 40, 0.1); border-left-color: var(--lcs-accent); }
.info-box-warning { background: rgba(255, 152, 0, 0.1); border-left-color: #ff9800; }
.info-box-success { background: rgba(76, 175, 80, 0.1); border-left-color: #4caf50; }
.info-box-title { font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; color: #e5e7eb; }

.docs-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.docs-content th { background: var(--lcs-bg-surface); padding: 0.75rem; text-align: left; font-weight: 700; color: var(--lcs-accent-light); border: 1px solid var(--lcs-border); }
.docs-content td { padding: 0.75rem; border: 1px solid var(--lcs-border); }
.docs-content tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }

.formula-block {
    background: var(--lcs-bg-raised);
    border: 1px solid var(--lcs-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.8;
    overflow-x: auto;
}

.formula-block .formula-title {
    font-weight: 700;
    color: var(--lcs-accent-light);
    margin-bottom: 0.75rem;
}

.formula-where {
    font-size: 0.9rem;
    color: var(--lcs-text-light);
    margin-top: 0.5rem;
    line-height: 1.7;
}

.api-endpoint {
    background: var(--lcs-bg-surface);
    border: 1px solid var(--lcs-border);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.api-method { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 4px; font-weight: 700; font-size: 0.85rem; margin-right: 1rem; }
.method-get { background: rgba(46, 125, 50, 0.15); color: #66bb6a; }
.method-post { background: rgba(224, 112, 40, 0.15); color: var(--lcs-accent-light); }
.method-put { background: rgba(245, 124, 0, 0.15); color: #ffa726; }
.method-patch { background: rgba(245, 124, 0, 0.15); color: #ffa726; }
.api-path { font-family: 'SFMono-Regular', monospace; font-size: 1rem; color: #e5e7eb; }
.api-description { margin: 1rem 0; color: var(--lcs-text-light); }

.docs-footer {
    margin-left: var(--sidebar-width);
    padding: 2rem 3rem;
    background: var(--lcs-bg-raised);
    border-top: 1px solid var(--lcs-border);
    text-align: center;
    color: var(--lcs-text-light);
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.feature-card { background: var(--lcs-bg-surface); border: 1px solid var(--lcs-border); border-radius: 8px; padding: 1.5rem; }
.feature-card h4 { color: #e5e7eb; margin-bottom: 0.75rem; margin-top: 0; display: flex; align-items: center; gap: 0.5rem; }
.feature-card ul { list-style: none; padding: 0; margin: 0; }
.feature-card li { padding: 0.25rem 0; font-size: 0.9rem; color: var(--lcs-text-light); }
.feature-card li::before { content: "\2192  "; color: var(--lcs-accent-light); }

.hero-img { width: 100%; border-radius: 8px; border: 1px solid var(--lcs-border); margin: 2rem 0; }

@media (max-width: 1024px) {
    .docs-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .docs-sidebar.open { transform: translateX(0); }
    .docs-main { margin-left: 0; padding: 2rem; }
    .docs-footer { margin-left: 0; }
}

@media (max-width: 768px) {
    .docs-header-content { padding: 0 1rem; }
    .docs-logo { font-size: 1.2rem; }
    .docs-nav { display: none; }
    .docs-main { padding: 1.5rem; }
    .docs-content h1 { font-size: 2rem; }
    .docs-content h2 { font-size: 1.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
}
