/* XMLA Knowledgebase Styles */

.xmla-kb-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.xmla-kb-hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.xmla-kb-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.xmla-kb-search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.xmla-kb-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    transition: all 0.3s;
}

.xmla-kb-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.xmla-kb-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.xmla-kb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.xmla-kb-section {
    padding: 4rem 0;
}

.xmla-kb-section-light {
    background: #ffffff;
}

.xmla-kb-section-dark {
    background: #f8fafc;
}

.xmla-kb-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.xmla-kb-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.xmla-kb-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.xmla-kb-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.xmla-kb-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.xmla-kb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.xmla-kb-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 1rem;
}

.xmla-kb-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.xmla-kb-card-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.xmla-kb-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.xmla-kb-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.xmla-kb-badge-featured {
    background: #fef3c7;
    color: #92400e;
}

.xmla-kb-badge-category {
    background: #dbeafe;
    color: #1e40af;
}

.xmla-kb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.xmla-kb-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.xmla-kb-breadcrumb a:hover {
    color: #3b82f6;
}

.xmla-kb-breadcrumb-separator {
    color: #cbd5e1;
}

.xmla-kb-article-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.xmla-kb-article-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.xmla-kb-article-excerpt {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.xmla-kb-article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.xmla-kb-article-content {
    max-width: 800px;
    margin: 3rem auto;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

.xmla-kb-article-content h1,
.xmla-kb-article-content h2,
.xmla-kb-article-content h3 {
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.xmla-kb-article-content h1 { font-size: 2rem; }
.xmla-kb-article-content h2 { font-size: 1.75rem; }
.xmla-kb-article-content h3 { font-size: 1.5rem; }

.xmla-kb-article-content p {
    margin-bottom: 1.25rem;
}

.xmla-kb-article-content ul,
.xmla-kb-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.xmla-kb-article-content li {
    margin-bottom: 0.5rem;
}

.xmla-kb-article-content a {
    color: #3b82f6;
    text-decoration: none;
}

.xmla-kb-article-content a:hover {
    text-decoration: underline;
}

.xmla-kb-article-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #dc2626;
}

.xmla-kb-article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.xmla-kb-article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.xmla-kb-article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #64748b;
    font-style: italic;
}

.xmla-kb-support-cta {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.xmla-kb-support-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.xmla-kb-support-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.xmla-kb-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.xmla-kb-support-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.xmla-kb-support-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.xmla-kb-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.xmla-kb-btn-primary {
    background: white;
    color: #3b82f6;
}

.xmla-kb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.xmla-kb-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.xmla-kb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.xmla-kb-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.xmla-kb-related h2 {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .xmla-kb-hero h1 {
        font-size: 2rem;
    }

    .xmla-kb-grid-2,
    .xmla-kb-grid-3,
    .xmla-kb-grid-4 {
        grid-template-columns: 1fr;
    }

    .xmla-kb-article-title {
        font-size: 2rem;
    }

    .xmla-kb-support-grid {
        grid-template-columns: 1fr;
    }
}
