import { PublicLayout } from '@/components/layout/public-layout'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
import Link from 'next/link'
import { Button } from '@/components/ui/button'

export default function APIDocsPage() {
  return (
    <PublicLayout>
      <div className="min-h-screen bg-studio-black py-24 px-4">
        <div className="mx-auto max-w-4xl">
          <h1 className="mb-8 text-4xl font-bold text-white">API Reference</h1>
          
          <div className="space-y-6">
            <Card>
              <CardHeader>
                <CardTitle className="text-white">GraphQL API</CardTitle>
                <CardDescription>
                  Comprehensive GraphQL API with real-time subscriptions
                </CardDescription>
              </CardHeader>
              <CardContent>
                <p className="text-gray-300 mb-4">
                  Our GraphQL API provides a flexible, type-safe interface for querying and mutating 
                  infrastructure resources, with built-in authentication and real-time subscriptions.
                </p>
                <Button variant="outline" asChild>
                  <Link href="/docs/api/graphql">View GraphQL Schema →</Link>
                </Button>
              </CardContent>
            </Card>

            <Card>
              <CardHeader>
                <CardTitle className="text-white">REST API</CardTitle>
                <CardDescription>
                  Traditional REST endpoints for resource management
                </CardDescription>
              </CardHeader>
              <CardContent>
                <p className="text-gray-300 mb-4">
                  RESTful API endpoints following standard HTTP conventions for managing 
                  resources, with comprehensive OpenAPI documentation.
                </p>
                <Button variant="outline" asChild>
                  <Link href="/docs/api/rest">View REST API Docs →</Link>
                </Button>
              </CardContent>
            </Card>

            <Card>
              <CardHeader>
                <CardTitle className="text-white">SDKs</CardTitle>
                <CardDescription>
                  Client libraries for popular programming languages
                </CardDescription>
              </CardHeader>
              <CardContent>
                <p className="text-gray-300 mb-4">
                  Official SDKs for TypeScript, Python, Go, and more, with type definitions 
                  and comprehensive examples.
                </p>
                <Button variant="outline" asChild>
                  <Link href="/docs/api/sdks">View SDK Documentation →</Link>
                </Button>
              </CardContent>
            </Card>
          </div>
        </div>
      </div>
    </PublicLayout>
  )
}

