/* Vedika API Documentation Styles */
:root {
    --primary-purple: #667eea;
    --primary-violet: #764ba2;
    --code-bg: #1e1e2e;
    --code-text: #cdd6f4;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --error-red: #ef4444;
    --info-blue: #3b82f6;
}

/* Typography */
body {
    font-family: 'Fragment Mono', 'Fira Code', monospace;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
    background: #fafafa;
    color: #1a1a2e;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Gradient Effects */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-violet) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Code Blocks */
.code-block {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 12px;
    color: var(--code-text);
    font-family: 'Fragment Mono', 'Fira Code', monospace;
    overflow-x: auto;
}

pre[class*="language-"] {
    background: var(--code-bg) !important;
    border-radius: 12px;
    padding: 20px !important;
    margin: 1rem 0;
    overflow-x: auto;
}

code[class*="language-"] {
    font-family: 'Fragment Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
}

/* Inline code */
:not(pre) > code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #7c3aed;
}

/* Method Badges */
.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method-get {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.method-post {
    background-color: #dcfce7;
    color: #15803d;
}

.method-put {
    background-color: #fef3c7;
    color: #b45309;
}

.method-delete {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Endpoint Cards */
.endpoint-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.endpoint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.15);
}

/* Parameter Tables */
.param-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.param-table th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
}

.param-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.param-required {
    color: var(--error-red);
    font-weight: 600;
}

.param-optional {
    color: #6b7280;
}

.param-type {
    font-family: 'Fragment Mono', monospace;
    font-size: 0.75rem;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    color: #7c3aed;
}

/* Response Status */
.response-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-200 {
    background: #dcfce7;
    color: #15803d;
}

.status-400, .status-401, .status-402, .status-429 {
    background: #fee2e2;
    color: #b91c1c;
}

.status-500 {
    background: #fef3c7;
    color: #b45309;
}

/* Sidebar Navigation */
.docs-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.docs-nav-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.docs-nav-item:hover {
    background: #f3f4f6;
    color: var(--primary-purple);
}

.docs-nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary-purple);
    font-weight: 500;
}

/* Pricing Badge */
.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin: 1rem 0;
    display: flex;
    gap: 0.75rem;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.375rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.copy-btn.copied {
    color: var(--success-green);
}

/* Tab Navigation */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--primary-purple);
}

.tab.active {
    color: var(--primary-purple);
    border-bottom-color: var(--primary-purple);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Mobile Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 40;
}

.drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 18rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    padding: 1rem;
    overflow-y: auto;
}

.drawer.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .docs-sidebar {
        display: none;
    }

    pre[class*="language-"] {
        font-size: 0.75rem;
        padding: 1rem !important;
    }

    .param-table {
        font-size: 0.75rem;
    }

    .param-table th,
    .param-table td {
        padding: 0.5rem;
    }
}

/* Syntax Highlighting Overrides */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6272a4;
}

.token.punctuation {
    color: #f8f8f2;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #ff79c6;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #50fa7b;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #bd93f9;
}

.token.function,
.token.class-name {
    color: #f1fa8c;
}

.token.regex,
.token.important,
.token.variable {
    color: #ffb86c;
}

/* Table of Contents */
.toc {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.toc-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
}

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

.toc-list li {
    margin: 0.5rem 0;
}

.toc-list a {
    color: #6b7280;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary-purple);
}

/* Version Badge */
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #dbeafe;
    color: #1d4ed8;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #6b7280;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-purple);
}

.breadcrumb-separator {
    color: #d1d5db;
}
