import type { Section } from "@/types/builder";
import { generateId } from "@/store/builder-store";

export const premiumPricingTable: Section = {
  id: `section-${generateId("section")}`,
  type: "regular",
  rows: [
    {
      id: `row-${generateId("row")}`,
      columns: [
        {
          id: `column-${generateId("column")}`,
          width: 100,
          elements: [
            {
              id: `element-${generateId("element")}-1`,
              type: "heading",
              content: "Choose Your Perfect Plan",
              settings: {
                fontSize: 48,
                fontWeight: "800",
                textAlign: "center",
                marginBottom: 16,
                color: "#0f172a",
              },
            },
            {
              id: `element-${generateId("element")}-2`,
              type: "text",
              content: "Start free and scale as you grow",
              settings: {
                fontSize: 18,
                textAlign: "center",
                marginBottom: 60,
                color: "#64748b",
              },
            },
          ],
          nestingLevel: 1,
        },
      ],
    },
    {
      id: `row-${generateId("row")}-pricing`,
      columns: [
        {
          id: `column-${generateId("column")}-1`,
          width: 33.33,
          elements: [
            {
              id: `element-${generateId("element")}-3`,
              type: "text",
              content: "Starter",
              settings: {
                fontSize: 24,
                fontWeight: "700",
                textAlign: "center",
                marginBottom: 16,
                color: "#1e293b",
              },
            },
            {
              id: `element-${generateId("element")}-4`,
              type: "text",
              content: "$19",
              settings: {
                fontSize: 48,
                fontWeight: "800",
                textAlign: "center",
                marginBottom: 8,
                color: "#3b82f6",
              },
            },
            {
              id: `element-${generateId("element")}-5`,
              type: "text",
              content: "per month",
              settings: {
                fontSize: 16,
                textAlign: "center",
                marginBottom: 32,
                color: "#64748b",
              },
            },
            {
              id: `element-${generateId("element")}-6`,
              type: "text",
              content:
                "Perfect for getting started\n• 5 Projects\n• 10GB Storage\n• Email Support\n• Basic Analytics",
              settings: {
                fontSize: 16,
                textAlign: "left",
                marginBottom: 32,
                color: "#64748b",
                lineHeight: 1.8,
              },
            },
            {
              id: `element-${generateId("element")}-7`,
              type: "button",
              content: "Get Started",
              settings: {
                backgroundColor: "#3b82f6",
                color: "#ffffff",
                paddingTop: 12,
                paddingRight: 32,
                paddingBottom: 12,
                paddingLeft: 32,
                borderRadius: 8,
                fontSize: 16,
                fontWeight: "600",
                textAlign: "center",
                display: "block",
                marginLeft: "auto",
                marginRight: "auto",
                border: "none",
                cursor: "pointer",
              },
            },
          ],
          settings: {
            backgroundColor: "#ffffff",
            borderRadius: 16,
            paddingTop: 40,
            paddingRight: 32,
            paddingBottom: 40,
            paddingLeft: 32,
            marginRight: 16,
            borderWidth: 1,
            borderStyle: "solid",
            borderColor: "#e2e8f0",
          },
          nestingLevel: 1,
        },
        {
          id: `column-${generateId("column")}-2`,
          width: 33.33,
          elements: [
            {
              id: `element-${generateId("element")}-8`,
              type: "text",
              content: "Pro",
              settings: {
                fontSize: 24,
                fontWeight: "700",
                textAlign: "center",
                marginBottom: 16,
                color: "#ffffff",
              },
            },
            {
              id: `element-${generateId("element")}-9`,
              type: "text",
              content: "$49",
              settings: {
                fontSize: 48,
                fontWeight: "800",
                textAlign: "center",
                marginBottom: 8,
                color: "#ffffff",
              },
            },
            {
              id: `element-${generateId("element")}-10`,
              type: "text",
              content: "per month",
              settings: {
                fontSize: 16,
                textAlign: "center",
                marginBottom: 32,
                color: "#e2e8f0",
              },
            },
            {
              id: `element-${generateId("element")}-11`,
              type: "text",
              content:
                "Most popular choice\n• 25 Projects\n• 100GB Storage\n• Priority Support\n• Advanced Analytics\n• Custom Integrations",
              settings: {
                fontSize: 16,
                textAlign: "left",
                marginBottom: 32,
                color: "#e2e8f0",
                lineHeight: 1.8,
              },
            },
            {
              id: `element-${generateId("element")}-12`,
              type: "button",
              content: "Start Free Trial",
              settings: {
                backgroundColor: "#ffffff",
                color: "#3b82f6",
                paddingTop: 12,
                paddingRight: 32,
                paddingBottom: 12,
                paddingLeft: 32,
                borderRadius: 8,
                fontSize: 16,
                fontWeight: "600",
                textAlign: "center",
                display: "block",
                marginLeft: "auto",
                marginRight: "auto",
                border: "none",
                cursor: "pointer",
              },
            },
          ],
          settings: {
            backgroundColor: "#3b82f6",
            borderRadius: 16,
            paddingTop: 40,
            paddingRight: 32,
            paddingBottom: 40,
            paddingLeft: 32,
            marginRight: 8,
            marginLeft: 8,
          },
          nestingLevel: 1,
        },
        {
          id: `column-${generateId("column")}-3`,
          width: 33.33,
          elements: [
            {
              id: `element-${generateId("element")}-13`,
              type: "text",
              content: "Enterprise",
              settings: {
                fontSize: 24,
                fontWeight: "700",
                textAlign: "center",
                marginBottom: 16,
                color: "#1e293b",
              },
            },
            {
              id: `element-${generateId("element")}-14`,
              type: "text",
              content: "$99",
              settings: {
                fontSize: 48,
                fontWeight: "800",
                textAlign: "center",
                marginBottom: 8,
                color: "#7c3aed",
              },
            },
            {
              id: `element-${generateId("element")}-15`,
              type: "text",
              content: "per month",
              settings: {
                fontSize: 16,
                textAlign: "center",
                marginBottom: 32,
                color: "#64748b",
              },
            },
            {
              id: `element-${generateId("element")}-16`,
              type: "text",
              content:
                "For large teams\n• Unlimited Projects\n• 1TB Storage\n• 24/7 Phone Support\n• Custom Analytics\n• White Label\n• API Access",
              settings: {
                fontSize: 16,
                textAlign: "left",
                marginBottom: 32,
                color: "#64748b",
                lineHeight: 1.8,
              },
            },
            {
              id: `element-${generateId("element")}-17`,
              type: "button",
              content: "Contact Sales",
              settings: {
                backgroundColor: "#7c3aed",
                color: "#ffffff",
                paddingTop: 12,
                paddingRight: 32,
                paddingBottom: 12,
                paddingLeft: 32,
                borderRadius: 8,
                fontSize: 16,
                fontWeight: "600",
                textAlign: "center",
                display: "block",
                marginLeft: "auto",
                marginRight: "auto",
                border: "none",
                cursor: "pointer",
              },
            },
          ],
          settings: {
            backgroundColor: "#ffffff",
            borderRadius: 16,
            paddingTop: 40,
            paddingRight: 32,
            paddingBottom: 40,
            paddingLeft: 32,
            marginLeft: 16,
            borderWidth: 1,
            borderStyle: "solid",
            borderColor: "#e2e8f0",
          },
          nestingLevel: 1,
        },
      ],
    },
  ],
  settings: {
    paddingTop: 120,
    paddingRight: 24,
    paddingBottom: 120,
    paddingLeft: 24,
    backgroundColor: "#f8fafc",
  },
  name: "Premium Pricing Table",
  description: "Elegant 3-tier pricing table with featured plan highlight",
  category: "pricing",
};
