/* Documentation Page Styles */

.docs-container {
    min-height: 100vh;
    background: var(--bg-dark);
    padding-top: 0;
    height: 100vh;
    overflow: hidden;
}

.docs-header {
    display: none;
}

.docs-search {
    display: none;
}

/* Advanced Search Results */
.search-results {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

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

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

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-category {
    font-size: 0.75rem;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.search-result-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.search-highlight {
    background: rgba(102, 126, 234, 0.3);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Docs Content Layout - Full Screen Below Navbar */
.docs-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 1.5rem 0;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    height: calc(100vh - 164px);
}

/* Sidebar - Independent Scroll (Hidden Scrollbar) */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 164px);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.docs-sidebar::-webkit-scrollbar {
    display: none;
}

.docs-sidebar-section {
    margin-bottom: 2rem;
}

.docs-sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.docs-sidebar-links {
    list-style: none;
}

.docs-sidebar-links li {
    margin-bottom: 0.5rem;
}

.docs-sidebar-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.docs-sidebar-links a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.docs-sidebar-links a.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Main Content - Independent Scroll (Hidden Scrollbar) */
.docs-content {
    min-width: 0;
    overflow-y: auto;
    height: calc(100vh - 164px);
    padding-right: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.docs-content::-webkit-scrollbar {
    display: none;
}

.docs-article {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1rem;
}

.docs-article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.docs-article h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.docs-article h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.docs-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.docs-article ul,
.docs-article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.docs-article li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.docs-article code {
    padding: 0.25rem 0.5rem;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary);
}

.docs-article pre {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.docs-article pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
}

/* Info Boxes */
.info-box {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.info-box.note {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
}

.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.info-box.tip {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Command Example */
.command-example {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.command-example-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.command-example code {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.command-example-description {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Breadcrumbs */
.docs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.docs-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.docs-breadcrumbs a:hover {
    color: var(--primary);
}

/* Quick Links Grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.quick-link-card {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quick-link-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.quick-link-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
        height: auto;
        padding: 80px 1rem 1rem;
    }
    
    .docs-sidebar {
        position: static;
        height: auto;
        overflow-y: visible;
        display: none;
    }
    
    .docs-content {
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }
    
    .docs-article {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .docs-article h1 {
        font-size: 2rem;
    }
    
    .docs-article h2 {
        font-size: 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}