import Link from "next/link"
import { Languages } from "lucide-react"
import { Button } from "@/components/ui/button"

export function SiteHeader() {
  return (
    <header className="sticky top-0 z-50 w-full border-b border-border/50 bg-background/80 backdrop-blur-lg">
      <div className="mx-auto flex h-14 max-w-5xl items-center justify-between px-6">
        <Link href="/" className="flex items-center gap-2">
          <div className="flex size-8 items-center justify-center rounded-lg bg-primary">
            <Languages className="size-4 text-primary-foreground" />
          </div>
          <span className="text-base font-semibold tracking-tight text-foreground">
            Wordly
          </span>
        </Link>

        <nav className="hidden items-center gap-1 md:flex">
          <Button variant="ghost" size="sm" asChild>
            <Link href="/pricing">Pricing</Link>
          </Button>
          <Button variant="ghost" size="sm" asChild>
            <Link href="/pricing#api">API Access</Link>
          </Button>
          <div className="mx-2 h-4 w-px bg-border" />
          <Button variant="outline" size="sm" asChild>
            <Link href="/dashboard">Login</Link>
          </Button>
        </nav>

        <div className="md:hidden">
          <Button variant="outline" size="sm" asChild>
            <Link href="/dashboard">Login</Link>
          </Button>
        </div>
      </div>
    </header>
  )
}
