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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 1rem 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f0f6fc;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav a:hover {
    color: #58a6ff;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

h2 {
    color: #f0f6fc;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #30363d;
}

p {
    margin-bottom: 1rem;
    color: #8b949e;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #30363d;
}

.table-note {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #161b22;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #30363d;
}

th {
    background: #21262d;
    font-weight: 600;
    color: #f0f6fc;
    font-size: 0.9rem;
    white-space: nowrap;
}

td {
    font-size: 0.85rem;
}

tr:hover {
    background: #21262d;
}

.provider {
    font-weight: 600;
    color: #58a6ff;
}

.model {
    color: #f0f6fc;
}

.yes {
    color: #3fb950;
}

.no {
    color: #f85149;
}

.free {
    color: #d29922;
}

.latency {
    color: #a371f7;
}

/* Code Blocks */
.code-tabs {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #30363d;
}

.tab-btn {
    background: none;
    border: none;
    color: #8b949e;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: #58a6ff;
    border-bottom-color: #58a6ff;
}

.code-block {
    position: relative;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #30363d;
    background: #21262d;
    border-radius: 6px 6px 0 0;
}

.code-lang {
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 500;
}

.copy-btn {
    background: #238636;
    border: 1px solid #2ea043;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #2ea043;
}

.copy-btn.copied {
    background: #3fb950;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
}

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #c9d1d9;
    line-height: 1.45;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    th, td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
