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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 48px 32px;
    text-align: center;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 32px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
}

.filters-section {
    padding: 24px 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
}

.search-input,
.category-filter {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-input:focus,
.category-filter:focus {
    outline: none;
    border-color: #667eea;
}

.models-section {
    padding: 32px;
}

.models-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #333;
}

.models-container {
    display: grid;
    gap: 16px;
}

.loading {
    text-align: center;
    padding: 48px;
    color: #666;
    font-size: 18px;
}

.model-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.model-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.model-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.model-type {
    display: inline-block;
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.model-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.price-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
}

.price-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.image-pricing-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.image-quality-group {
    background: #f0f4f8;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.quality-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.api-section {
    padding: 32px;
    background: #f8f9fa;
}

.api-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #333;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.code-block h3 {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-block code {
    color: #10b981;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.code-block pre {
    margin-top: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.footer {
    padding: 32px;
    background: #1e293b;
    color: #e2e8f0;
    text-align: center;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.7;
}

.no-results {
    text-align: center;
    padding: 48px;
    color: #666;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .filters-section {
        flex-direction: column;
    }
    
    .model-pricing {
        grid-template-columns: 1fr;
    }
}
