/* ============================================
   Documentation Page Styles
   ============================================ */

.docs-page {
    background: var(--bg-primary);
}

/* Header */
.docs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.docs-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.docs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.docs-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.docs-logo .logo-text {
    font-size: 20px;
    font-weight: 700;
}

.docs-logo .logo-text span {
    color: var(--accent-primary);
}

.docs-header-nav {
    display: flex;
    gap: 30px;
}

.docs-header-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.docs-header-link:hover,
.docs-header-link.active {
    color: var(--accent-primary);
}

.docs-header-actions {
    display: flex;
    gap: 12px;
}

/* Docs Buttons */
.docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.docs-btn.primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.docs-btn.primary:hover {
    background: #00b894;
    transform: translateY(-1px);
}

.docs-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.docs-btn.secondary:hover {
    border-color: var(--accent-primary);
}

.docs-btn.large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Docs Layout */
.docs-wrapper {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 70px;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: fixed;
    left: max(0px, calc((100vw - 1600px) / 2));
    top: 70px;
    bottom: 0;
    padding: 30px 20px;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.docs-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
}

.docs-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.docs-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    outline: none;
}

.docs-search input::placeholder {
    color: var(--text-muted);
}

.docs-nav-section {
    margin-bottom: 25px;
}

.docs-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.docs-nav-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.docs-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.docs-nav-link.active {
    color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.1);
}

/* Main Content */
.docs-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    min-width: 0;
}

.docs-article {
    flex: 1;
    max-width: 800px;
    padding: 40px 60px;
    min-width: 0;
}

/* Table of Contents */
.docs-toc {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding: 0 30px;
    display: none;
}

@media (min-width: 1200px) {
    .docs-toc {
        display: block;
    }
}

.docs-toc-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.docs-toc-link {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid var(--border-color);
    padding-left: 15px;
    margin-left: -2px;
    transition: all 0.2s;
}

.docs-toc-link:hover {
    color: var(--text-primary);
}

.docs-toc-link.active {
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

/* Typography */
.docs-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.docs-section h2 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
}

.docs-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
}

.docs-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.docs-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-lead {
    font-size: 18px;
    color: var(--text-primary) !important;
    line-height: 1.6;
}

/* Lists */
.docs-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.docs-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* Code Blocks */
.code-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-primary);
}

/* Callouts */
.docs-callout {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 24px 0;
}

.docs-callout.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.docs-callout.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.docs-callout.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.callout-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.callout-content strong {
    display: block;
    margin-bottom: 4px;
}

.callout-content p {
    margin: 0;
    color: var(--text-secondary);
}

.callout-content a {
    color: var(--accent-primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Steps */
.docs-steps {
    margin: 30px 0;
}

.docs-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin-top: 6px;
}

.step-content p {
    margin-bottom: 12px;
}

/* Footer */
.docs-footer {
    border-top: 1px solid var(--border-color);
    margin-left: 280px;
}

.docs-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-footer-left {
    color: var(--text-muted);
    font-size: 14px;
}

.docs-footer-right {
    display: flex;
    gap: 25px;
}

.docs-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.docs-footer-link:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 900px) {
    .docs-sidebar {
        display: none;
    }
    
    .docs-content {
        margin-left: 0;
    }
    
    .docs-article {
        padding: 30px 20px;
    }
    
    .docs-footer {
        margin-left: 0;
    }
    
    .docs-footer-inner {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Images */
.docs-image-container {
    margin: 25px 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.docs-image {
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.docs-image-caption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Ordered Lists */
.docs-ordered-list {
    counter-reset: docs-counter;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.docs-ordered-list li {
    counter-increment: docs-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.docs-ordered-list li::before {
    content: counter(docs-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Settings Table */
.settings-table {
    margin: 25px 0;
    overflow-x: auto;
}

.settings-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.settings-table th,
.settings-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.settings-table th {
    background: var(--bg-card);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.settings-table td {
    color: var(--text-secondary);
}

.settings-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.checked {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.checked::before {
    content: '✓';
}

.status-badge.unchecked {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-badge.unchecked::before {
    content: '✗';
}

/* Command Grid */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 25px 0;
}

.command-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 18px;
    transition: all 0.2s;
}

.command-card:hover {
    border-color: var(--accent-primary);
}

.command-card code {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.command-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Command Table */
.command-table {
    margin: 25px 0;
    overflow-x: auto;
}

.command-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.command-table th,
.command-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.command-table th {
    background: var(--bg-card);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.command-table td {
    color: var(--text-secondary);
    font-size: 14px;
}

.command-table td code {
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent-primary);
    white-space: nowrap;
}

.command-table tr:last-child td {
    border-bottom: none;
}

/* Premium Badge Inline */
.premium-badge-inline {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-warning);
    margin-left: 10px;
    vertical-align: middle;
}

/* Gold Callout */
.docs-callout.gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.docs-callout.gold .docs-list li::before {
    background: var(--accent-warning);
}

/* Hint text */
.docs-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Warning callout */
.docs-callout.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* TOC sub items */
.docs-toc-link.sub {
    padding-left: 25px;
    font-size: 12px;
}
}