/* Documentation Components - Reusable CSS for docs pages */

/* Base Article Styles */
.docs-article {
    max-width: 900px;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.docs-article h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.docs-article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.docs-article h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.docs-article ul, .docs-article ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.docs-article li {
    margin-bottom: 0.5rem;
}

/* Info Boxes */
.info-box {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    margin: 0 0 1rem 0;
    color: #0c4a6e;
    font-size: 1rem;
}

.info-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* Code Blocks */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    line-height: 1.4;
}

.code-block.success {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0c4a6e;
}

/* Next Steps Grid */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    display: block;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.next-step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    color: inherit;
    text-decoration: none;
}

.next-step-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.next-step-card p {
    margin: 0 0 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.duration {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sidebar Navigation Enhancements */
.docs-sidebar {
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: 2rem 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.nav-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.nav-section h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.nav-section h3 a:hover {
    color: var(--primary-color);
}

.nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-section li {
    margin: 0;
}

.nav-section li a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-section li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.nav-section li a.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .docs-article {
        max-width: 100%;
    }
    
    .next-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}