{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ds-footer-mega",
  "title": "Footer Mega",
  "description": "Rodapé institucional completo com múltiplas colunas de links, apresentação de missão, newsletter e barra inferior.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "@lema-ds/ds-social-links",
    "@lema-ds/ds-footer-newsletter",
    "@lema-ds/ds-system-status-badge",
    "@lema-ds/ds-app-store-badges",
    "@lema-ds/ds-footer-bottom-bar",
    "@lema-ds/ds-footer-menu",
    "@lema-ds/ui-i18n"
  ],
  "files": [
    {
      "path": "components/ds/ds-footer-mega.tsx",
      "content": "import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\nimport { type UILocale } from \"@/lib/ui-i18n\"\nimport { SocialLinks, type SocialLinkItem } from \"./ds-social-links\"\nimport { FooterNewsletter } from \"./ds-footer-newsletter\"\nimport {\n  SystemStatusBadge,\n  type SystemHealthStatus,\n} from \"./ds-system-status-badge\"\nimport { AppStoreBadges } from \"./ds-app-store-badges\"\nimport { FooterBottomBar, type LegalLinkItem } from \"./ds-footer-bottom-bar\"\nimport { FooterMenu, type FooterGroupData } from \"./ds-footer-menu\"\n\n// ── Types ──\n\nexport interface FooterMegaProps\n  extends\n    React.HTMLAttributes<HTMLElement>,\n    VariantProps<typeof footerMegaVariants> {\n  brand?: React.ReactNode\n  description?: string\n  columns: FooterGroupData[]\n  socialLinks?: SocialLinkItem[]\n  showNewsletter?: boolean\n  newsletterTitle?: string\n  newsletterDescription?: string\n  onSubscribe?: (email: string) => Promise<boolean | void> | void\n  showAppBadges?: boolean\n  appStoreUrl?: string\n  googlePlayUrl?: string\n  showStatusBadge?: boolean\n  status?: SystemHealthStatus\n  statusUptime?: string\n  statusHref?: string\n  brandName?: string\n  legalLinks?: LegalLinkItem[]\n  locale?: UILocale\n}\n\n// ── Variants ──\n\nexport const footerMegaVariants = cva(\n  \"w-full border-t border-border bg-background pt-16 pb-12\",\n  {\n    variants: {\n      tone: {\n        plain: \"\",\n        card: \"bg-card/50\",\n      },\n    },\n    defaultVariants: {\n      tone: \"plain\",\n    },\n  }\n)\n\n// ── Component ──\n\nexport const FooterMega = React.forwardRef<HTMLElement, FooterMegaProps>(\n  (\n    {\n      brand,\n      description = \"Advanced Engineering and Media Laboratory of the Federal University of Paraíba. Developing innovative digital solutions with accessibility and precision.\",\n      columns,\n      socialLinks = [\n        { platform: \"github\", href: \"https://github.com\" },\n        { platform: \"x\", href: \"https://x.com\" },\n        { platform: \"linkedin\", href: \"https://linkedin.com\" },\n        { platform: \"youtube\", href: \"https://youtube.com\" },\n      ],\n      showNewsletter = true,\n      newsletterTitle,\n      newsletterDescription,\n      onSubscribe,\n      showAppBadges = false,\n      appStoreUrl,\n      googlePlayUrl,\n      showStatusBadge = true,\n      status = \"operational\",\n      statusUptime = \"99.98%\",\n      statusHref = \"https://status.ufpb.br\",\n      brandName = \"LEMA - UFPB\",\n      legalLinks,\n      locale = \"en-US\",\n      tone = \"plain\",\n      className,\n      ...props\n    },\n    ref\n  ) => {\n    return (\n      <footer\n        ref={ref}\n        className={cn(footerMegaVariants({ tone }), className)}\n        {...props}\n      >\n        <div className=\"mx-auto flex max-w-7xl flex-col gap-12 px-4 sm:px-6 lg:px-8\">\n          {/* Main 12-column grid */}\n          <div className=\"grid grid-cols-1 gap-12 lg:grid-cols-12 lg:gap-8\">\n            {/* Col 1: Brand & Mission (4 cols) */}\n            <div className=\"flex flex-col gap-4 lg:col-span-4\">\n              {brand && (\n                <div className=\"flex items-center gap-2 font-bold text-foreground\">\n                  {brand}\n                </div>\n              )}\n\n              {description && (\n                <p className=\"max-w-sm text-xs leading-relaxed text-muted-foreground\">\n                  {description}\n                </p>\n              )}\n\n              {socialLinks.length > 0 && (\n                <div className=\"mt-1\">\n                  <SocialLinks\n                    links={socialLinks}\n                    variant=\"outline\"\n                    size=\"sm\"\n                    shape=\"circle\"\n                  />\n                </div>\n              )}\n\n              {showStatusBadge && (\n                <div className=\"mt-2\">\n                  <SystemStatusBadge\n                    status={status}\n                    uptime={statusUptime}\n                    href={statusHref}\n                    size=\"sm\"\n                    locale={locale}\n                  />\n                </div>\n              )}\n            </div>\n\n            {/* Col 2: Navigation link columns (5 cols) */}\n            <div className=\"lg:col-span-5\">\n              <FooterMenu data={columns} locale={locale} size=\"sm\" />\n            </div>\n\n            {/* Col 3: Newsletter & Downloads (3 cols) */}\n            {(showNewsletter || showAppBadges) && (\n              <div className=\"flex flex-col gap-6 lg:col-span-3\">\n                {showNewsletter && (\n                  <FooterNewsletter\n                    layout=\"stacked\"\n                    title={newsletterTitle}\n                    description={newsletterDescription}\n                    onSubscribe={onSubscribe}\n                    locale={locale}\n                  />\n                )}\n\n                {showAppBadges && (\n                  <div className=\"flex flex-col gap-2\">\n                    <span className=\"text-xs font-semibold text-foreground\">\n                      Mobile App\n                    </span>\n                    <AppStoreBadges\n                      links={[\n                        ...(appStoreUrl\n                          ? [{ href: appStoreUrl, store: \"apple\" as const }]\n                          : []),\n                        ...(googlePlayUrl\n                          ? [{ href: googlePlayUrl, store: \"google\" as const }]\n                          : []),\n                      ]}\n                    />\n                  </div>\n                )}\n              </div>\n            )}\n          </div>\n\n          {/* Bottom Bar */}\n          <FooterBottomBar\n            brandName={brandName}\n            legalLinks={legalLinks}\n            locale={locale}\n          />\n        </div>\n      </footer>\n    )\n  }\n)\nFooterMega.displayName = \"FooterMega\"\n",
      "type": "registry:ui"
    }
  ],
  "categories": [
    "footer"
  ],
  "type": "registry:block"
}
