/* MetaMock Internal Docs - Enhanced Styling with Inter Font */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    flex: 1;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

/* Auth Card */
.auth-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Docs Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.doc-card {
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.doc-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.doc-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.doc-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Docs List */
.docs-list {
    margin-top: 2rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.doc-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: translateX(4px);
}

.doc-icon {
    font-size: 1.5rem;
}

.doc-name {
    font-weight: 500;
    font-size: 1.05rem;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem;
    font-size: 1.1rem;
}

.lead {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Doc Layout - Two Column */
.doc-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

.doc-sidebar {
    width: 280px;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--bg-secondary);
}

.doc-sidebar h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-sidebar .toc ul {
    list-style: none;
    padding-left: 0;
}

.doc-sidebar .toc > ul > li {
    margin-bottom: 0.5rem;
}

.doc-sidebar .toc ul ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
    border-left: 1px solid var(--border);
}

.doc-sidebar .toc li {
    margin-bottom: 0.35rem;
}

.doc-sidebar .toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.15s;
}

.doc-sidebar .toc a:hover {
    color: var(--primary);
}

.doc-sidebar .toc > ul > li > a {
    font-weight: 500;
    color: var(--text);
}

.doc-content {
    flex: 1;
    padding: 2.5rem 4rem;
    max-width: 900px;
    min-width: 0;
}

/* Prose - Markdown Content */
.prose {
    font-size: 1.1rem;
    line-height: 1.8;
}

.prose h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.02em;
    color: var(--text);
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: -0.01em;
    color: var(--text);
}

.prose h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.prose h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--text);
}

.prose ul, .prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.prose li::marker {
    color: var(--text-muted);
}

.prose a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.prose a:hover {
    border-bottom-color: var(--primary);
}

.prose strong {
    font-weight: 600;
    color: var(--text);
}

.prose code {
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
    color: #e11d48;
    font-weight: 500;
}

.prose pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 1px solid #1e293b;
}

.prose pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1rem;
}

.prose th, .prose td {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}

.prose th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.prose tr:hover {
    background: var(--bg-secondary);
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--text);
    font-style: normal;
}

.prose blockquote p {
    margin-bottom: 0;
}

.prose blockquote strong {
    color: var(--text);
}

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

.prose img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Info boxes */
.prose blockquote p:first-child strong:first-child {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--primary);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--bg-secondary);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .doc-content {
        padding: 2rem;
    }

    .doc-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .navbar {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .doc-layout {
        flex-direction: column;
    }

    .doc-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    .doc-content {
        padding: 1.5rem;
    }

    .prose {
        font-size: 1rem;
    }

    .prose h1 {
        font-size: 1.75rem;
    }

    .prose h2 {
        font-size: 1.4rem;
    }

    .prose h3 {
        font-size: 1.2rem;
    }

    .prose pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}
