/* Documentation Specific Styles */
.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 40px 20px;
    background: white;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

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

.sidebar-section li {
    margin-bottom: 8px;
}

.sidebar-section a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-section a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.sidebar-section a.active {
    background: var(--primary-light);
    color: white;
}

/* Documentation Content */
.docs-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 900px;
}

.docs-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.docs-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 24px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.docs-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.docs-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.docs-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #475569;
}

.docs-content .lead {
    font-size: 20px;
    color: #64748B;
    margin-bottom: 30px;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #475569;
}

/* Info Box */
.info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    font-size: 15px;
}

.info-box strong {
    color: var(--text-dark);
}

/* Code Examples */
.code-example {
    margin: 20px 0;
}

.code-example pre {
    background: #1E293B;
    color: #E2E8F0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.code-example code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-example.bad pre {
    background: #FEF2F2;
    color: #991B1B;
    border: 2px solid #FCA5A5;
}

.code-example h4 {
    margin-bottom: 10px;
}

/* Documentation Table */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.docs-table thead {
    background: var(--light-bg);
}

.docs-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.docs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.docs-table code {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary-dark);
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    overflow-x: auto;
}

.architecture-diagram pre {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-dark);
}

/* Agent Grid */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

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

.agent-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.agent-card p {
    font-size: 14px;
    margin: 0;
}

/* TDD Flow */
.tdd-flow {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.flow-step {
    flex: 1;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.flow-step.red {
    background: #FEF2F2;
    border: 2px solid #FCA5A5;
}

.flow-step.green {
    background: #F0FDF4;
    border: 2px solid #86EFAC;
}

.flow-step.blue {
    background: #EFF6FF;
    border: 2px solid #93C5FD;
}

.flow-step h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.flow-step p {
    margin: 0;
    font-size: 14px;
}

/* SOLID Principles */
.solid-principles {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.principle {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.principle h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.principle p {
    margin: 0;
    font-size: 15px;
}

/* Next Steps */
.next-steps {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 18px;
}

.step-card p {
    color: #64748B;
    margin: 0;
    font-size: 14px;
}

/* Responsive Documentation */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }

    .docs-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 20px;
    }

    .docs-content h1 {
        font-size: 32px;
    }

    .docs-content h2 {
        font-size: 24px;
    }

    .tdd-flow {
        flex-direction: column;
    }

    .agent-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}