/* API Reference Components - For API documentation pages */

.api-info {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.api-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.api-info code {
    background: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.api-endpoint {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.endpoint-header {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.method.get {
    background: #dbeafe;
    color: #1e40af;
}

.method.post {
    background: #dcfce7;
    color: #166534;
}

.method.put {
    background: #fef3c7;
    color: #92400e;
}

.method.delete {
    background: #fee2e2;
    color: #dc2626;
}

.url {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-color);
}

.endpoint-content {
    padding: 1.5rem;
}

.endpoint-content h4 {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .url {
        word-break: break-all;
    }
}