/* Documentation Specific Styles */

.docs-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
}

.docs-nav {
    padding: 0 1.5rem;
}

.docs-nav-section {
    margin-bottom: 2rem;
}

.docs-nav-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.docs-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav-section li {
    margin-bottom: 0.5rem;
}

.docs-nav-section a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

.docs-nav-section a:hover,
.docs-nav-section a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Content */
.docs-content {
    padding: 3rem;
    max-width: 900px;
}

.docs-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.docs-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.docs-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.docs-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Version Badge */
.version-badge {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.stable {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
}

.badge.enterprise {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.version {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Info Boxes */
.info-box {
    background: var(--surface);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box.warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.info-box.error {
    border-left-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.info-box h3,
.info-box h4 {
    margin-top: 0;
    color: var(--text-primary);
}

.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Code Blocks */
.code-block {
    background: var(--background-dark);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 1.5rem 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.language-python .keyword { color: #c678dd; }
.language-python .string { color: #98c379; }
.language-python .comment { color: #5c6370; font-style: italic; }
.language-python .function { color: #61afef; }

.language-bash { color: #98c379; }
.language-yaml .key { color: #61afef; }
.language-yaml .value { color: #98c379; }

.language-dockerfile .keyword { color: #c678dd; }
.language-dockerfile .string { color: #98c379; }

/* Architecture Diagram Simple */
.architecture-diagram-simple {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.arch-layer {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.arch-layer:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.arch-layer.highlight {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--primary-color);
}

.arch-layer.core {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.arch-layer h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.arch-layer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.arch-arrow {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.tech-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.tech-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--surface);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--surface);
}

.comparison-table {
    margin: 2rem 0;
}

td.success {
    color: var(--success);
    font-weight: 600;
}

td.warning {
    color: var(--warning);
    font-weight: 600;
}

td.error {
    color: var(--error);
    font-weight: 600;
}

/* Footer Navigation */
.docs-footer-nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 2px solid var(--border-color);
}

.docs-footer-nav a {
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

.docs-footer-nav a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-home {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    border-color: var(--primary-color);
}

/* Lists */
.docs-section ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.docs-section li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-section li strong {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-main {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .docs-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .docs-section h1 {
        font-size: 2rem;
    }

    .docs-section h2 {
        font-size: 1.5rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .docs-footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem;
    }
}
