/* SectorFlow Documentation Site Styles */

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

:root {
    --primary-blue: #3b82f6;
    --dark-bg: #0f172a;
    --darker-bg: #0a0e1a;
    --sidebar-bg: #1e293b;
    --content-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --code-bg: #f1f5f9;
    --link-color: #3b82f6;
    --link-hover: #2563eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--content-bg);
    padding-top: 73px; /* Reserve space for the fixed header */
}

/* Header */
.docs-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensure header is on top */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.docs-header .logo img {
    height: 40px;
}

.docs-header .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.docs-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.docs-header nav a:hover {
    color: var(--primary-blue);
}

/* Layout */
.docs-layout {
    display: flex;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 73px;
    bottom: 0;
    overflow-y: auto;
}

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

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

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

.docs-sidebar a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.docs-sidebar a:hover {
    color: var(--primary-blue);
    background: #f1f5f9;
}

.docs-sidebar a.active {
    color: var(--primary-blue);
    background: #eff6ff;
    border-left-color: var(--primary-blue);
    font-weight: 500;
}

/* Main Content */
.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 0.5rem 3rem 2rem 3rem;
    max-width: 900px;
}

.docs-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.docs-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.docs-content ul, .docs-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.docs-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.docs-content a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.docs-content a:hover {
    border-bottom-color: var(--link-color);
}

.docs-content code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.875em;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #e11d48;
}

.docs-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.docs-content em {
    font-style: italic;
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Last Updated */
.last-updated {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.875rem;
    font-style: italic;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
        background: white;
    }

    .docs-sidebar.active {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .docs-header {
        padding: 1rem;
    }

    .docs-header nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .docs-content h1 {
        font-size: 2rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
    }

    .docs-content {
        padding: 1.5rem 1rem;
    }
}
