:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #2d3436;
    --bg: #f8f9fa;
    --code-bg: #1e1e1e;
    --border: #dee2e6;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--secondary);
    line-height: 1.7;
}

.page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary), #ff8c5a);
    color: white;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* Badges */
.badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-info {
    background: #cce5ff;
    color: #004085;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

/* Sections */
section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Code */
pre {
    background: var(--code-bg);
    color: #d4d4d4;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
}

.inline-code {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #e83e8c;
}

/* Syntax highlighting (basic) */
.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; }
.function { color: #dcdcaa; }
.number { color: #b5cea8; }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.feature-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #636e72;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #ff8c5a);
    color: white;
    border-radius: 8px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.feature-row:hover {
    background: var(--bg);
}

.feature-row .check {
    color: var(--success);
    font-size: 1.1rem;
}

/* New Features */
.new-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.new-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid var(--warning);
}

.new-badge {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.start-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg);
    font-weight: 600;
    color: var(--secondary);
}

tr:hover {
    background: #f8f9fa;
}

/* Notes & Tips */
.note {
    background: #fff3cd;
    border-left: 4px solid var(--warning);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.note-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #856404;
}

.tip {
    background: #d4edda;
    border-left: 4px solid var(--success);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #155724;
}

.warning {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #721c24;
}

/* More Link */
.more-link {
    margin-top: 1rem;
    text-align: right;
}

.more-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.more-link a:hover {
    text-decoration: underline;
}

/* Method Badges */
.method {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
}

.method-get { background: #61affe; color: white; }
.method-post { background: #49cc90; color: white; }
.method-put { background: #fca130; color: white; }
.method-delete { background: #f93e3e; color: white; }
.method-patch { background: #50e3c2; color: white; }
.method-head { background: #9012fe; color: white; }
.method-options { background: #0d5aa7; color: white; }

/* Parameters Table */
.params-table {
    font-size: 0.9rem;
}

.params-table code {
    background: #e9ecef;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.param-required {
    color: #dc3545;
    font-weight: 600;
}

.param-optional {
    color: #6c757d;
}

/* Example Section */
.example {
    background: var(--bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.example-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-title::before {
    content: "💡";
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--primary);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* API Reference */
.api-method {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.api-method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.api-method-body {
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page {
        padding: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    section {
        padding: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .start-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}

