/* Knowledge Base Styles */

.kb-header {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.kb-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.kb-search {
    max-width: 600px;
    margin: 2rem auto 0;
}

.kb-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.kb-content {
    padding: 3rem 0;
}

.kb-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.kb-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.kb-sidebar h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.kb-categories {
    list-style: none;
}

.kb-categories li {
    margin-bottom: 0.5rem;
}

.kb-categories a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.kb-categories a:hover,
.kb-categories a.active {
    background: var(--bg-alt);
    color: var(--primary);
}

.kb-main {
    max-width: 800px;
}

.kb-section {
    margin-bottom: 4rem;
}

.kb-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.kb-article {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.kb-article h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.kb-article h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.kb-article ul, .kb-article ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.kb-article li {
    margin-bottom: 0.5rem;
}

.kb-article pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.kb-article code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.kb-article p code {
    background: var(--bg-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--primary);
}

.info-box {
    background: #dbeafe;
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--highlight);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.integration-card {
    background: var(--bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
}

.integration-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.integration-card ul {
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
    .kb-layout {
        grid-template-columns: 1fr;
    }
    
    .kb-sidebar {
        position: static;
        border-bottom: 1px solid var(--border);
        padding-bottom: 2rem;
    }
    
    .kb-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .kb-header h1 {
        font-size: 2rem;
    }
    
    .kb-article {
        padding: 1.5rem;
    }
    
    .integration-grid {
        grid-template-columns: 1fr;
    }
}
