/* NebusAI Internal Documentation Styles */
/* Engineering Team Design System */

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #dc2626;
    --accent-light: #ef4444;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-darker: #020617;

    /* Warning/Internal Colors */
    --warning-bg: #fef3c7;
    --warning-border: #f59e0b;
    --warning-text: #92400e;

    /* Border Colors */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: 0.3s ease;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 40px;
    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.internal-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

/* Access Banner */
.access-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.access-banner a {
    color: #fecaca;
    text-decoration: underline;
    margin-left: 0.5rem;
}

.access-banner a:hover {
    color: white;
}

/* Hero */
.hero {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Access Note */
.access-note {
    background: var(--warning-bg);
    border: 2px solid var(--warning-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
}

.access-note h3 {
    color: var(--warning-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.access-note p {
    color: #78350f;
    font-size: 0.9375rem;
    margin: 0;
}

.access-note a {
    color: var(--primary);
    font-weight: 600;
}

/* API Overview */
.api-overview {
    padding: 4rem 0;
    background: var(--bg-light);
}

.api-overview h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.api-card {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.api-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.api-card > p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.api-card ul {
    margin-bottom: 1.25rem;
}

.api-card li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
}

.api-card li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
    font-family: monospace;
}

.api-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.api-link:hover {
    color: var(--primary-dark);
}

/* Quick Start */
.quick-start {
    padding: 4rem 0;
    background: var(--bg-white);
}

.quick-start h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

pre {
    background: var(--bg-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
}

code {
    font-family: 'SF Mono', 'Fira Code', 'Monaco', 'Inconsolata', monospace;
}

/* Resources */
.resources {
    padding: 4rem 0;
    background: var(--bg-light);
}

.resources h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Footer */
footer {
    background: var(--bg-darker);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

footer p:first-child {
    color: white;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .api-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .api-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .access-banner {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

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

    .api-card {
        padding: 1.25rem;
    }
}
