/* Brandoradm & Brandor Documentation / Knowledge Base Styles */
body.docs-body {
    background-color: #0b0f19;
    color: #f8fafc;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.docs-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem 1.5rem;
}

/* Docs Hero */
.docs-hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3.5rem auto;
}

.docs-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-intro {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Docs Search Bar */
.docs-search {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.docs-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
    transition: color 0.2s ease;
}

.docs-search .form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.95rem 1.25rem 0.95rem 3.25rem;
    color: #ffffff;
    font-size: 1.02rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.docs-search .form-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 12px 30px -5px rgba(0, 0, 0, 0.6);
    background: #0f172a;
}

.docs-search .form-input:focus + .docs-search-icon {
    color: #38bdf8;
}

/* Category Cards Grid */
.docs-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.docs-cat-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.docs-cat-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.08);
}

.docs-cat-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-cat-head .icon-sm {
    width: 22px;
    height: 22px;
    color: #38bdf8;
    flex-shrink: 0;
}

.docs-cat-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.docs-cat-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
}

.docs-cat-links a:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    padding-left: 0.65rem;
}

.docs-cat-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Article Reader View Styles */
.docs-layout-container {
    display: flex;
    gap: 2.5rem;
    max-width: 1360px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 1rem;
}

.docs-content {
    flex: 1;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 2.5rem;
    min-height: 600px;
}

.docs-content h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.docs-content h2, .docs-content h3, .docs-content h4 {
    color: #f8fafc;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
}

.docs-content p, .docs-content li {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}

.docs-content code {
    background: rgba(0, 0, 0, 0.4);
    color: #38bdf8;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.docs-content pre {
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.docs-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #38bdf8;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .docs-cats {
        grid-template-columns: 1fr;
    }
    .docs-layout-container {
        flex-direction: column;
    }
    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
}
