/* docs.css — page-specific rules (shared rules in common.css) */

:root {
            --primary-color: #2563eb;
            --primary-dark: #1d4ed8;
            --gradient-start: #3b82f6;
            --gradient-end: #8b5cf6;
        }

body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

.navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 16px 0;
        }

.navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.navbar .nav-link {
            font-weight: 500;
            color: #475569;
            padding: 8px 16px !important;
            transition: color 0.3s ease;
        }

.btn-get-started {
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            color: white;
        }

.btn-get-started:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
        }

.hero-section {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
            padding: 80px 0 60px;
            text-align: center;
        }

.hero-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 1rem;
        }

.hero-subtitle {
            font-size: 1.125rem;
            color: #64748b;
            max-width: 600px;
            margin: 0 auto;
        }

.docs-container {
            display: flex;
            min-height: calc(100vh - 200px);
        }

.docs-sidebar {
            width: 280px;
            background: #f8fafc;
            border-right: 1px solid #e2e8f0;
            padding: 30px 0;
            position: sticky;
            top: 76px;
            height: calc(100vh - 76px);
            overflow-y: auto;
        }

.sidebar-section {
            margin-bottom: 24px;
            padding: 0 20px;
        }

.sidebar-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #94a3b8;
            margin-bottom: 12px;
        }

.sidebar-nav {
            list-style: none;
            padding: 0;
            margin: 0;
        }

.sidebar-nav li {
            margin-bottom: 4px;
        }

.sidebar-nav a {
            display: block;
            padding: 8px 12px;
            color: #475569;
            text-decoration: none;
            border-radius: 6px;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

.sidebar-nav a:hover {
            background: #e2e8f0;
            color: #1e293b;
        }

.sidebar-nav a.active {
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            color: white;
        }

.docs-content {
            flex: 1;
            padding: 40px 60px;
            max-width: 900px;
        }

.docs-section {
            margin-bottom: 60px;
        }

.docs-section h2 {
            font-size: 1.75rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 2px solid #e2e8f0;
        }

.docs-section h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: #334155;
            margin-top: 32px;
            margin-bottom: 12px;
        }

.docs-section p {
            color: #475569;
            line-height: 1.7;
            margin-bottom: 16px;
        }

.docs-section ul, .docs-section ol {
            color: #475569;
            line-height: 1.7;
            margin-bottom: 16px;
            padding-left: 24px;
        }

.docs-section li {
            margin-bottom: 8px;
        }

.code-block {
            background: #1e293b;
            border-radius: 12px;
            overflow: hidden;
            margin: 20px 0;
        }

.code-header {
            background: #334155;
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

.code-lang {
            color: #94a3b8;
            font-size: 0.8rem;
            font-weight: 600;
        }

.code-copy {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s;
        }

.code-copy:hover {
            background: rgba(255,255,255,0.1);
            color: white;
        }

.code-block pre {
            margin: 0;
            padding: 20px;
            overflow-x: auto;
        }

.code-block code {
            color: #e2e8f0;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 0.875rem;
            line-height: 1.6;
        }

.docs-section code:not(pre code) {
            background: #f1f5f9;
            color: #e11d48;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.875em;
        }

.info-box {
            padding: 16px 20px;
            border-radius: 10px;
            margin: 20px 0;
            display: flex;
            gap: 12px;
        }

.info-box i {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

.info-box.tip {
            background: #ecfdf5;
            border-left: 4px solid #10b981;
            color: #065f46;
        }

.info-box.tip i { color: #10b981; }

.info-box.warning {
            background: #fffbeb;
            border-left: 4px solid #f59e0b;
            color: #92400e;
        }

.info-box.warning i { color: #f59e0b; }

.info-box.info {
            background: #eff6ff;
            border-left: 4px solid #3b82f6;
            color: #1e40af;
        }

.info-box.info i { color: #3b82f6; }

.docs-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            font-size: 0.9rem;
        }

.docs-table th {
            background: #f8fafc;
            padding: 12px 16px;
            text-align: left;
            font-weight: 600;
            color: #334155;
            border-bottom: 2px solid #e2e8f0;
        }

.docs-table td {
            padding: 12px 16px;
            border-bottom: 1px solid #e2e8f0;
            color: #475569;
        }

.docs-table tr:hover {
            background: #f8fafc;
        }

.param-required {
            background: #fee2e2;
            color: #991b1b;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            text-transform: uppercase;
        }

.param-optional {
            background: #e0f2fe;
            color: #0369a1;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            text-transform: uppercase;
        }

@media (max-width: 992px) {
            .docs-sidebar {
                display: none;
            }

            .docs-content {
                padding: 30px 20px;
            }

            .hero-title {
                font-size: 2rem;
            }

            .footer .row > div {
                text-align: center !important;
            }

            .footer-social {
                justify-content: center;
                margin-top: 16px;
            }

            .footer-links-inline {
                margin: 16px 0;
            }
        }

.mobile-sidebar-toggle {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            z-index: 1000;
        }

@media (max-width: 992px) {
            .mobile-sidebar-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

.token-keyword { color: #c678dd; }

.token-string { color: #98c379; }

.token-comment { color: #5c6370; }

.token-function { color: #61afef; }

.token-number { color: #d19a66; }
