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

export const startupHero: 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: "The Future of Crypto Trading is Here",
              settings: {
                fontSize: 76,
                fontWeight: "900",
                textAlign: "center",
                paddingTop: 0,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 32,
                marginLeft: 0,
                color: { light: "white", dark: "white" },
                lineHeight: 1.05,
                letterSpacing: "-0.03em",
                // Advanced settings - animations
                enableAnimation: true,
                animationType: "slideUp",
                animationDuration: 1.2,
                animationDelay: 0.2,
                animationEasing: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
                animationFillMode: "forwards",
                transformOrigin: "center bottom",
              },
            },
            {
              id: `element-${generateId("element")}-2`,
              type: "text",
              content:
                "Join 50,000+ traders who've maximized their crypto profits with our advanced trading platform. Start trading Bitcoin, Ethereum, and 1000+ cryptocurrencies today.",
              settings: {
                fontSize: 24,
                fontWeight: "400",
                textAlign: "center",
                paddingTop: 0,
                paddingRight: 24,
                paddingBottom: 0,
                paddingLeft: 24,
                marginTop: 0,
                marginRight: "auto",
                marginBottom: 56,
                marginLeft: "auto",
                color: {
                  light: "rgba(255,255,255,0.9)",
                  dark: "rgba(255,255,255,0.9)",
                },
                lineHeight: 1.65,
                maxWidth: "720px",
                // Advanced settings
                enableAnimation: true,
                animationType: "fadeIn",
                animationDuration: 1,
                animationDelay: 0.6,
                animationEasing: "ease-out",
                animationFillMode: "forwards",
              },
            },
            {
              id: `element-${generateId("element")}-3`,
              type: "button",
              content: "Start Trading Now",
              settings: {
                backgroundColor: "#ffffff",
                hoverBackgroundColor: "rgba(255,255,255,0.95)",
                color: "#1a1a1a",
                hoverColor: "#000000",
                fontSize: 20,
                fontWeight: "700",
                textAlign: "center",
                paddingTop: 20,
                paddingRight: 48,
                paddingBottom: 20,
                paddingLeft: 48,
                marginTop: 0,
                marginRight: 12,
                marginBottom: 20,
                marginLeft: 0,
                borderRadius: 16,
                boxShadow: "0 12px 48px rgba(255, 255, 255, 0.3)",
                minWidth: "220px",
                enableAnimation: true,
                animationType: "zoomIn",
                animationDuration: 0.8,
                animationDelay: 1,
                animationEasing: "cubic-bezier(0.68, -0.55, 0.265, 1.55)",
                animationFillMode: "forwards",
                transitionProperty: "all",
                transitionDuration: 0.3,
                transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
                hoverEffect: "elevate",
                hoverEffectIntensity: 1.8,
              },
            },
            {
              id: `element-${generateId("element")}-4`,
              type: "button",
              content: "View Markets",
              settings: {
                backgroundColor: "transparent",
                borderColor: "rgba(255,255,255,0.8)",
                borderWidth: 2,
                borderStyle: "solid",
                hoverBackgroundColor: "rgba(255,255,255,0.15)",
                hoverBorderColor: "#ffffff",
                color: "#ffffff",
                hoverColor: "#ffffff",
                fontSize: 18,
                fontWeight: "500",
                textAlign: "center",
                paddingTop: 20,
                paddingRight: 40,
                paddingBottom: 20,
                paddingLeft: 40,
                marginTop: 0,
                marginRight: 0,
                marginBottom: 20,
                marginLeft: 12,
                borderRadius: 16,
                minWidth: "200px",
                enableAnimation: true,
                animationType: "slideLeft",
                animationDuration: 0.8,
                animationDelay: 1.2,
                animationEasing: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
                animationFillMode: "forwards",
                transitionProperty: "all",
                transitionDuration: 0.3,
                transitionTimingFunction: "ease-out",
                hoverEffect: "glow",
                hoverEffectIntensity: 1.5,
              },
            },
            {
              id: `element-${generateId("element")}-5`,
              type: "text",
              content:
                "⭐ ⭐ ⭐ ⭐ ⭐ Trusted by 50,000+ crypto traders • $0 trading fees for first month",
              settings: {
                fontSize: 16,
                fontWeight: "400",
                textAlign: "center",
                paddingTop: 48,
                paddingRight: 0,
                paddingBottom: 0,
                paddingLeft: 0,
                marginTop: 32,
                marginRight: 0,
                marginBottom: 0,
                marginLeft: 0,
                color: {
                  light: "rgba(255,255,255,0.85)",
                  dark: "rgba(255,255,255,0.85)",
                },
                lineHeight: 1.5,
                borderTopWidth: 1,
                borderTopStyle: "solid",
                borderTopColor: {
                  light: "rgba(255,255,255,0.2)",
                  dark: "rgba(255,255,255,0.2)",
                },
                enableAnimation: true,
                animationType: "fadeIn",
                animationDuration: 1,
                animationDelay: 1.6,
                animationEasing: "ease-out",
                animationFillMode: "forwards",
              },
            },
          ],
          settings: {
            paddingTop: 120,
            paddingRight: 32,
            paddingBottom: 120,
            paddingLeft: 32,
            textAlign: "center",
            position: "relative",
            background:
              "linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2)",
            backgroundSize: "400% 400%",
            minHeight: "100vh",
            display: "flex",
            flexDirection: "column",
            alignItems: "center",
            justifyContent: "center",
          },
          nestingLevel: 1,
        },
      ],
      settings: {
        paddingTop: 0,
        paddingRight: 0,
        paddingBottom: 0,
        paddingLeft: 0,
        maxWidth: "1400px",
        marginLeft: "auto",
        marginRight: "auto",
      },
      nestingLevel: 1,
    },
  ],
  settings: {
    background:
      "linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%)",
    backgroundSize: "200% 200%",
    paddingTop: 0,
    paddingRight: 0,
    paddingBottom: 0,
    paddingLeft: 0,
    marginTop: 0,
    marginRight: 0,
    marginBottom: 0,
    marginLeft: 0,
    minHeight: "100vh",
    position: "relative",
    overflow: "hidden",
  },
  name: "Startup Hero",
  description:
    "A bold hero section perfect for startups with animated gradient background, impressive animations, and compelling call-to-action",
  category: "hero",
  snapshots: {
    card: "",
    preview: "",
  },
};
