/* AI Body Scan API Documentation Styles */
/* Industry Standard API Documentation Design */

:root {
    --primary: #6366f1;
    --Mint: #C6FF00;
    --Lemon: #C6FF00;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --blue: #3b82f6;
    --radius: 8px;
    --radius-lg: 12px;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    overflow-y: auto;
    padding: 24px 0;
    z-index: 100;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.sidebar .logo span {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px 12px;
}

.nav-section a {
    display: block;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-section a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-section a.active {
    background: var(--primary);
    color: white;
}

/* Main Content */
.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 0 48px 48px;
    max-width: 1400px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 50;
    margin: 0 -48px;
    padding: 16px 48px;
}

.search input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    width: 320px;
    color: var(--text-primary);
    font-size: 14px;
}

.search input::placeholder {
    color: var(--text-muted);
}

.search input:focus {
    outline: none;
    border-color: var(--primary);
}

.top-bar .links {
    display: flex;
    gap: 24px;
}

.top-bar .links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.top-bar .links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-light), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.badge.primary {
    background: var(--primary);
    border-color: var(--primary);
}

/* Code Block */
.code-block {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #e6edf3;
}

.code-block .comment {
    color: var(--text-muted);
}

.code-block .copy {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
}

.code-block .copy:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 60px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-card .icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Integration Cards */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.integration-card .lang-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.integration-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.integration-card pre {
    background: var(--bg-dark);
    padding: 12px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.integration-card a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

/* Use Cases */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.use-case {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.use-case h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.use-case h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 4px 12px;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.pricing-card .price {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    margin: 24px 0;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.pricing-card button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pricing-card button:hover {
    background: var(--primary-dark);
}

/* Sections */
section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* API Reference Tables */
.endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
}

.method {
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
}

.method.get {
    background: #22c55e20;
    color: #22c55e;
}

.method.post {
    background: #3b82f620;
    color: #3b82f6;
}

.method.put {
    background: #eab30820;
    color: #eab308;
}

.method.delete {
    background: #ef444420;
    color: #ef4444;
}

.path {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.endpoint-body {
    padding: 24px;
    border-top: 1px solid var(--border);
}

/* Response Examples */
.response-example {
    background: #0d1117;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
}

.response-example pre {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #e6edf3;
    overflow-x: auto;
}

.json-key {
    color: #7ee787;
}

.json-string {
    color: #a5d6ff;
}

.json-number {
    color: #79c0ff;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    margin-top: 80px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 32px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

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

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .content {
        margin-left: 0;
        padding: 0 24px 48px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}
