/**
 * Docs & Knowledge Base - Frontend Styles
 * Premium style inspired design with clean, modern aesthetics
 *
 * @package King_Addons
 */

/* ======================================
   CSS Variables
   ====================================== */
:root {
    --kng-docs-primary: #0066ff;
    --kng-docs-primary-hover: #0052cc;
    --kng-docs-bg: #f5f5f7;
    --kng-docs-surface: #ffffff;
    --kng-docs-text: #1d1d1f;
    --kng-docs-text-secondary: #6e6e73;
    --kng-docs-text-muted: #86868b;
    --kng-docs-border: #e5e5ea;
    --kng-docs-shadow: rgba(0, 0, 0, 0.04);
    --kng-docs-shadow-lg: rgba(0, 0, 0, 0.08);
    --kng-docs-radius: 16px;
    --kng-docs-radius-sm: 12px;
    --kng-docs-radius-xs: 8px;
    --kng-docs-transition: 0.2s ease;
    --kng-docs-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

/* ======================================
   Base Page Styles
   ====================================== */
.kng-docs-page {
    font-family: var(--kng-docs-font);
    background: var(--kng-docs-bg);
    min-height: 100vh;
    padding: 40px 0 80px;
    -webkit-font-smoothing: antialiased;
}

.kng-docs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ======================================
   Hero Section
   ====================================== */
.kng-docs-hero {
    text-align: center;
    padding: 60px 0 40px;
    max-width: 700px;
    margin: 0 auto;
}

.kng-docs-hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--kng-docs-text);
    margin: 0 0 16px;
}

.kng-docs-hero-subtitle {
    font-size: 20px;
    color: var(--kng-docs-text-secondary);
    margin: 0 0 32px;
    line-height: 1.5;
}

/* ======================================
   Search
   ====================================== */
.kng-docs-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.kng-docs-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.kng-docs-search-icon {
    position: absolute;
    left: 20px;
    width: 24px;
    height: 24px;
    color: var(--kng-docs-text-muted);
    pointer-events: none;
}

.kng-docs-search-input {
    width: 100%;
    height: 56px;
    padding: 0 56px;
    font-size: 17px;
    font-family: var(--kng-docs-font);
    border: none;
    border-radius: 28px;
    background: var(--kng-docs-surface);
    box-shadow: 0 2px 20px var(--kng-docs-shadow-lg);
    transition: box-shadow var(--kng-docs-transition);
}

.kng-docs-search-input:focus {
    outline: none;
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.15);
}

.kng-docs-search-input::placeholder {
    color: var(--kng-docs-text-muted);
}

.kng-docs-search-loader {
    position: absolute;
    right: 20px;
}

.kng-docs-search-loader svg {
    width: 24px;
    height: 24px;
    color: var(--kng-docs-primary);
    animation: kng-docs-spin 1s linear infinite;
}

@keyframes kng-docs-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.kng-docs-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    box-shadow: 0 8px 40px var(--kng-docs-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
}

.kng-docs-search-result {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--kng-docs-border);
    transition: background var(--kng-docs-transition);
}

.kng-docs-search-result:last-child {
    border-bottom: none;
}

.kng-docs-search-result:hover {
    background: var(--kng-docs-bg);
}

.kng-docs-search-result-title {
    font-weight: 600;
    color: var(--kng-docs-text);
    margin-bottom: 4px;
}

.kng-docs-search-result-title mark {
    background: rgba(0, 102, 255, 0.15);
    color: var(--kng-docs-primary);
    padding: 0 2px;
    border-radius: 2px;
}

.kng-docs-search-result-category {
    font-size: 13px;
    color: var(--kng-docs-text-muted);
}

.kng-docs-search-empty {
    padding: 32px 20px;
    text-align: center;
    color: var(--kng-docs-text-secondary);
}

/* Category page search */
.kng-docs-search-category {
    margin-bottom: 40px;
}

/* ======================================
   Empty State
   ====================================== */
.kng-docs-empty {
    text-align: center;
    padding: 80px 20px;
}

.kng-docs-empty svg {
    width: 64px;
    height: 64px;
    color: var(--kng-docs-text-muted);
    margin-bottom: 20px;
}

.kng-docs-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin: 0 0 8px;
}

.kng-docs-empty p {
    color: var(--kng-docs-text-secondary);
    margin: 0;
}

/* ======================================
   Categories Grid - Base
   ====================================== */
.kng-docs-categories {
    display: grid;
    grid-template-columns: repeat(var(--kng-docs-columns, 3), 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .kng-docs-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kng-docs-categories {
        grid-template-columns: 1fr;
    }
}

/* ======================================
   Layout: Box
   ====================================== */
.kng-docs-category-box {
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    padding: 24px;
    box-shadow: 0 2px 12px var(--kng-docs-shadow);
    transition: transform var(--kng-docs-transition), box-shadow var(--kng-docs-transition);
}

.kng-docs-category-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--kng-docs-shadow-lg);
}

.kng-docs-category-box .kng-docs-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.kng-docs-category-box .kng-docs-category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-color, var(--kng-docs-primary)) 0%, color-mix(in srgb, var(--icon-color, var(--kng-docs-primary)) 80%, #5ac8fa) 100%);
    border-radius: var(--kng-docs-radius-xs);
    flex-shrink: 0;
}

.kng-docs-category-box .kng-docs-category-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.kng-docs-category-box .kng-docs-category-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--kng-docs-text);
    text-decoration: none;
    transition: color var(--kng-docs-transition);
}

.kng-docs-category-box .kng-docs-category-title:hover {
    color: var(--kng-docs-primary);
}

.kng-docs-category-box .kng-docs-category-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--kng-docs-text-muted);
    background: var(--kng-docs-bg);
    padding: 4px 10px;
    border-radius: 20px;
}

.kng-docs-category-box .kng-docs-category-desc {
    font-size: 14px;
    color: var(--kng-docs-text-secondary);
    margin: 0 0 16px;
    line-height: 1.5;
}

.kng-docs-category-box .kng-docs-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kng-docs-category-box .kng-docs-category-list li {
    margin-bottom: 8px;
}

.kng-docs-category-box .kng-docs-category-list a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--kng-docs-text);
    text-decoration: none;
    background: var(--kng-docs-bg);
    border-radius: var(--kng-docs-radius-xs);
    transition: background var(--kng-docs-transition), color var(--kng-docs-transition);
}

.kng-docs-category-box .kng-docs-category-list a:hover {
    background: var(--kng-docs-primary);
    color: #fff;
}

.kng-docs-category-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kng-docs-primary);
    text-decoration: none;
    transition: gap var(--kng-docs-transition);
}

.kng-docs-category-more:hover {
    gap: 8px;
}

.kng-docs-category-more svg {
    width: 16px;
    height: 16px;
}

/* ======================================
   Layout: Card
   ====================================== */
.kng-docs-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    text-decoration: none;
    box-shadow: 0 2px 12px var(--kng-docs-shadow);
    transition: transform var(--kng-docs-transition), box-shadow var(--kng-docs-transition);
}

.kng-docs-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--kng-docs-shadow-lg);
}

.kng-docs-category-card .kng-docs-category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-color, var(--kng-docs-primary)) 0%, color-mix(in srgb, var(--icon-color, var(--kng-docs-primary)) 70%, #5ac8fa) 100%);
    border-radius: 20px;
    margin-bottom: 20px;
}

.kng-docs-category-card .kng-docs-category-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.kng-docs-category-card .kng-docs-category-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin-bottom: 8px;
}

.kng-docs-category-card .kng-docs-category-desc {
    font-size: 14px;
    color: var(--kng-docs-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.kng-docs-category-card .kng-docs-category-count {
    font-size: 13px;
    color: var(--kng-docs-text-muted);
}

/* ======================================
   Layout: Modern
   ====================================== */
.kng-docs-layout-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kng-docs-category-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    text-decoration: none;
    box-shadow: 0 1px 4px var(--kng-docs-shadow);
    transition: transform var(--kng-docs-transition), box-shadow var(--kng-docs-transition);
}

.kng-docs-category-modern:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px var(--kng-docs-shadow-lg);
}

.kng-docs-category-modern .kng-docs-category-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-color, var(--kng-docs-primary)) 0%, color-mix(in srgb, var(--icon-color, var(--kng-docs-primary)) 70%, #5ac8fa) 100%);
    border-radius: 16px;
    flex-shrink: 0;
}

.kng-docs-category-modern .kng-docs-category-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.kng-docs-category-modern .kng-docs-category-content {
    flex: 1;
}

.kng-docs-category-modern .kng-docs-category-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin-bottom: 4px;
}

.kng-docs-category-modern .kng-docs-category-desc {
    font-size: 14px;
    color: var(--kng-docs-text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.kng-docs-category-modern .kng-docs-category-count {
    font-size: 13px;
    color: var(--kng-docs-text-muted);
}

.kng-docs-category-modern .kng-docs-category-arrow {
    width: 20px;
    height: 20px;
    color: var(--kng-docs-text-muted);
    flex-shrink: 0;
}

/* ======================================
   Breadcrumbs
   ====================================== */
.kng-docs-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

.kng-docs-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--kng-docs-text-secondary);
    text-decoration: none;
    transition: color var(--kng-docs-transition);
}

.kng-docs-breadcrumb-item:hover {
    color: var(--kng-docs-primary);
}

.kng-docs-breadcrumb-item svg {
    width: 16px;
    height: 16px;
}

.kng-docs-breadcrumb-sep {
    color: var(--kng-docs-text-muted);
}

.kng-docs-breadcrumb-current {
    color: var(--kng-docs-text);
    font-weight: 500;
}

/* ======================================
   Category Page
   ====================================== */
.kng-docs-category-header-section {
    text-align: center;
    padding: 40px 0;
}

.kng-docs-category-icon-large {
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-color, var(--kng-docs-primary)) 0%, color-mix(in srgb, var(--icon-color, var(--kng-docs-primary)) 70%, #5ac8fa) 100%);
    border-radius: 24px;
    margin-bottom: 20px;
}

.kng-docs-category-icon-large svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.kng-docs-category-page-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--kng-docs-text);
    margin: 0 0 12px;
}

.kng-docs-category-page-desc {
    font-size: 17px;
    color: var(--kng-docs-text-secondary);
    margin: 0 0 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.kng-docs-category-page-count {
    font-size: 14px;
    color: var(--kng-docs-text-muted);
}

/* Subcategories */
.kng-docs-subcategories {
    margin-bottom: 40px;
}

.kng-docs-subcategories-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kng-docs-text-muted);
    margin: 0 0 16px;
}

.kng-docs-subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.kng-docs-subcategory-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius-sm);
    text-decoration: none;
    box-shadow: 0 1px 4px var(--kng-docs-shadow);
    transition: transform var(--kng-docs-transition), box-shadow var(--kng-docs-transition);
}

.kng-docs-subcategory-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px var(--kng-docs-shadow-lg);
}

.kng-docs-subcategory-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kng-docs-bg);
    border-radius: var(--kng-docs-radius-xs);
    flex-shrink: 0;
}

.kng-docs-subcategory-icon svg {
    width: 20px;
    height: 20px;
    color: var(--kng-docs-primary);
}

.kng-docs-subcategory-content {
    flex: 1;
}

.kng-docs-subcategory-name {
    display: block;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin-bottom: 2px;
}

.kng-docs-subcategory-count {
    font-size: 13px;
    color: var(--kng-docs-text-muted);
}

.kng-docs-subcategory-arrow {
    width: 16px;
    height: 16px;
    color: var(--kng-docs-text-muted);
    flex-shrink: 0;
}

/* Articles List */
.kng-docs-articles-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--kng-docs-text-muted);
    margin: 0 0 16px;
}

.kng-docs-articles {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    box-shadow: 0 2px 12px var(--kng-docs-shadow);
    overflow: hidden;
}

.kng-docs-article-item {
    border-bottom: 1px solid var(--kng-docs-border);
}

.kng-docs-article-item:last-child {
    border-bottom: none;
}

.kng-docs-article-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    text-decoration: none;
    transition: background var(--kng-docs-transition);
}

.kng-docs-article-link:hover {
    background: var(--kng-docs-bg);
}

.kng-docs-article-icon {
    width: 24px;
    height: 24px;
    color: var(--kng-docs-primary);
    flex-shrink: 0;
}

.kng-docs-article-info {
    flex: 1;
}

.kng-docs-article-item-title {
    display: block;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin-bottom: 4px;
}

.kng-docs-article-excerpt {
    font-size: 14px;
    color: var(--kng-docs-text-secondary);
}

.kng-docs-article-date {
    font-size: 13px;
    color: var(--kng-docs-text-muted);
    flex-shrink: 0;
}

.kng-docs-article-arrow {
    width: 16px;
    height: 16px;
    color: var(--kng-docs-text-muted);
    flex-shrink: 0;
}

/* Pagination */
.kng-docs-pagination {
    margin-top: 32px;
    text-align: center;
}

.kng-docs-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kng-docs-pagination .page-numbers li {
    margin: 0;
}

.kng-docs-pagination .page-numbers a,
.kng-docs-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kng-docs-text);
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius-xs);
    text-decoration: none;
    transition: all var(--kng-docs-transition);
}

.kng-docs-pagination .page-numbers a:hover {
    background: var(--kng-docs-primary);
    color: #fff;
}

.kng-docs-pagination .page-numbers .current {
    background: var(--kng-docs-primary);
    color: #fff;
}

.kng-docs-pagination .page-numbers svg {
    width: 16px;
    height: 16px;
}

/* ======================================
   Single Article
   ====================================== */
.kng-docs-single-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.kng-docs-single-layout.has-sidebar {
    grid-template-columns: 280px 1fr;
}

@media (max-width: 992px) {
    .kng-docs-single-layout.has-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.kng-docs-sidebar {
    position: relative;
}

.kng-docs-sidebar-inner {
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    padding: 24px;
    box-shadow: 0 2px 12px var(--kng-docs-shadow);
}

.kng-docs-sidebar.is-sticky .kng-docs-sidebar-inner {
    position: sticky;
    top: 100px;
}

.kng-docs-sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--kng-docs-border);
}

.kng-docs-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kng-docs-sidebar-list li {
    margin-bottom: 4px;
}

.kng-docs-sidebar-list a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--kng-docs-text-secondary);
    text-decoration: none;
    border-radius: var(--kng-docs-radius-xs);
    transition: all var(--kng-docs-transition);
}

.kng-docs-sidebar-list a:hover {
    color: var(--kng-docs-text);
    background: var(--kng-docs-bg);
}

.kng-docs-sidebar-list li.is-current a {
    color: var(--kng-docs-primary);
    background: rgba(0, 102, 255, 0.08);
    font-weight: 500;
}

.kng-docs-sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kng-docs-sidebar-count {
    font-size: 12px;
    color: var(--kng-docs-text-muted);
    background: var(--kng-docs-bg);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Article */
.kng-docs-article {
    background: var(--kng-docs-surface);
    border-radius: var(--kng-docs-radius);
    padding: 40px;
    box-shadow: 0 2px 12px var(--kng-docs-shadow);
}

@media (max-width: 640px) {
    .kng-docs-article {
        padding: 24px;
    }
}

.kng-docs-article-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.kng-docs-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--kng-docs-text-secondary);
    background: var(--kng-docs-bg);
    border: none;
    border-radius: var(--kng-docs-radius-xs);
    cursor: pointer;
    transition: all var(--kng-docs-transition);
}

.kng-docs-print-btn:hover {
    color: var(--kng-docs-text);
    background: var(--kng-docs-border);
}

.kng-docs-print-btn svg {
    width: 16px;
    height: 16px;
}

.kng-docs-article-header {
    margin-bottom: 32px;
}

.kng-docs-article-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--kng-docs-text);
    margin: 0 0 16px;
    line-height: 1.3;
}

.kng-docs-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.kng-docs-article-date,
.kng-docs-article-reading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--kng-docs-text-muted);
}

.kng-docs-article-date svg,
.kng-docs-article-reading svg {
    width: 16px;
    height: 16px;
}

/* Table of Contents */
.kng-docs-toc {
    background: var(--kng-docs-bg);
    border-radius: var(--kng-docs-radius-sm);
    padding: 20px 24px;
    margin-bottom: 32px;
}

.kng-docs-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin: 0 0 12px;
}

.kng-docs-toc-title svg {
    width: 18px;
    height: 18px;
}

.kng-docs-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kng-docs-toc-item {
    margin-bottom: 6px;
}

.kng-docs-toc-item a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--kng-docs-text-secondary);
    text-decoration: none;
    transition: color var(--kng-docs-transition);
}

.kng-docs-toc-item a:hover {
    color: var(--kng-docs-primary);
}

.kng-docs-toc-h3 {
    padding-left: 16px;
}

.kng-docs-toc-h4 {
    padding-left: 32px;
}

/* Floating TOC */
.kng-docs-toc-floating {
    display: none;
}

@media (min-width: 1400px) {
    .kng-docs-single-layout:not(.has-sidebar) {
        position: relative;
    }
    
    .kng-docs-toc-floating {
        display: block;
        position: absolute;
        left: calc(100% + 40px);
        top: 0;
        width: 240px;
    }
    
    .kng-docs-toc-floating.is-sticky .kng-docs-toc-floating-inner {
        position: sticky;
        top: 100px;
    }
    
    .kng-docs-toc-floating-inner {
        background: var(--kng-docs-surface);
        border-radius: var(--kng-docs-radius);
        padding: 20px;
        box-shadow: 0 2px 12px var(--kng-docs-shadow);
    }
    
    .kng-docs-toc-floating .kng-docs-toc-title {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--kng-docs-text-muted);
    }
    
    .kng-docs-toc-floating .kng-docs-toc-item a {
        font-size: 13px;
    }
}

/* Article Content */
.kng-docs-article-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--kng-docs-text);
}

.kng-docs-article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-top: 20px;
    color: var(--kng-docs-text);
}

.kng-docs-article-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--kng-docs-text);
}

.kng-docs-article-content h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--kng-docs-text);
}

.kng-docs-article-content p {
    margin: 0 0 16px;
}

.kng-docs-article-content a {
    color: var(--kng-docs-primary);
    text-decoration: none;
}

.kng-docs-article-content a:hover {
    text-decoration: underline;
}

.kng-docs-article-content ul,
.kng-docs-article-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.kng-docs-article-content li {
    margin-bottom: 8px;
}

.kng-docs-article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: var(--kng-docs-radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

.kng-docs-article-content code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.9em;
    background: var(--kng-docs-bg);
    padding: 2px 6px;
    border-radius: 4px;
}

.kng-docs-article-content pre code {
    background: none;
    padding: 0;
}

.kng-docs-article-content blockquote {
    margin: 0 0 16px;
    padding: 16px 20px;
    background: var(--kng-docs-bg);
    border-left: 4px solid var(--kng-docs-primary);
    border-radius: 0 var(--kng-docs-radius-xs) var(--kng-docs-radius-xs) 0;
}

.kng-docs-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.kng-docs-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--kng-docs-radius-sm);
    margin: 16px 0;
}

.kng-docs-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
}

.kng-docs-article-content th,
.kng-docs-article-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--kng-docs-border);
}

.kng-docs-article-content th {
    font-weight: 600;
    background: var(--kng-docs-bg);
}

/* Feedback */
.kng-docs-feedback {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--kng-docs-border);
    text-align: center;
}

.kng-docs-feedback-question {
    font-size: 16px;
    font-weight: 500;
    color: var(--kng-docs-text);
    margin: 0 0 16px;
}

.kng-docs-feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.kng-docs-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--kng-docs-text);
    background: var(--kng-docs-bg);
    border: none;
    border-radius: var(--kng-docs-radius-xs);
    cursor: pointer;
    transition: all var(--kng-docs-transition);
}

.kng-docs-feedback-btn:hover {
    background: var(--kng-docs-border);
}

.kng-docs-feedback-btn svg {
    width: 18px;
    height: 18px;
}

.kng-docs-feedback-yes:hover {
    background: #d1fae5;
    color: #065f46;
}

.kng-docs-feedback-no:hover {
    background: #fee2e2;
    color: #991b1b;
}

.kng-docs-feedback-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #059669;
}

.kng-docs-feedback-thanks svg {
    width: 20px;
    height: 20px;
}

/* Related Articles */
.kng-docs-related {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--kng-docs-border);
}

.kng-docs-related-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--kng-docs-text);
    margin: 0 0 16px;
}

.kng-docs-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.kng-docs-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--kng-docs-bg);
    border-radius: var(--kng-docs-radius-xs);
    text-decoration: none;
    transition: all var(--kng-docs-transition);
}

.kng-docs-related-item:hover {
    background: var(--kng-docs-border);
}

.kng-docs-related-item-title {
    font-weight: 500;
    color: var(--kng-docs-text);
}

.kng-docs-related-item svg {
    width: 16px;
    height: 16px;
    color: var(--kng-docs-text-muted);
    flex-shrink: 0;
}

/* Navigation */
.kng-docs-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--kng-docs-border);
}

@media (max-width: 640px) {
    .kng-docs-navigation {
        grid-template-columns: 1fr;
    }
}

.kng-docs-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--kng-docs-bg);
    border-radius: var(--kng-docs-radius-sm);
    text-decoration: none;
    transition: all var(--kng-docs-transition);
}

.kng-docs-nav-item:hover {
    background: var(--kng-docs-border);
}

.kng-docs-nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--kng-docs-text-muted);
    flex-shrink: 0;
}

.kng-docs-nav-next {
    text-align: right;
    justify-content: flex-end;
}

.kng-docs-nav-label {
    display: block;
    font-size: 13px;
    color: var(--kng-docs-text-muted);
    margin-bottom: 4px;
}

.kng-docs-nav-title {
    display: block;
    font-weight: 500;
    color: var(--kng-docs-text);
}

/* ======================================
   Print Styles
   ====================================== */
@media print {
    .kng-docs-page {
        background: #fff;
        padding: 0;
    }
    
    .kng-docs-sidebar,
    .kng-docs-search,
    .kng-docs-breadcrumbs,
    .kng-docs-article-actions,
    .kng-docs-feedback,
    .kng-docs-related,
    .kng-docs-navigation,
    .kng-docs-toc-floating {
        display: none !important;
    }
    
    .kng-docs-article {
        box-shadow: none;
        padding: 0;
    }
}
