{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bpsc/blog-posts-section",
  "version": "1.0.0",
  "title": "Blog Posts Section",
  "category": "bPlugins",
  "description": "A static blog posts preview section with five layouts, category pills, post meta, and a View All CTA.",
  "keywords": [
    "blog",
    "posts",
    "news",
    "articles",
    "preview",
    "grid",
    "magazine",
    "section"
  ],
  "textdomain": "section-collection",
  "attributes": {
    "query": {
      "type": "object",
      "default": {
        "postType": "post",
        "postCount": 6,
        "orderBy": "date",
        "order": "DESC",
        "openInNewTab": false
      }
    },
    "themeStyle": {
      "type": "object",
      "default": {
        "theme": "style-1"
      }
    },
    "content": {
      "type": "object",
      "default": {
        "badgeText": "FROM THE BLOG",
        "title": "Latest Articles",
        "subtitle": "Insights, updates and stories from our team."
      }
    },
    "elements": {
      "type": "object",
      "default": {
        "isBadge": true,
        "isTitle": true,
        "isSubtitle": true,
        "showCategory": true,
        "showAuthor": true,
        "showDate": true,
        "showReadTime": true,
        "showExcerpt": true
      }
    },
    "viewAllBtn": {
      "type": "object",
      "default": {
        "status": true,
        "text": "View All Articles",
        "link": "#",
        "isNewTab": false
      }
    },
    "layout": {
      "type": "object",
      "default": {
        "columns": {
          "desktop": 3,
          "tablet": 2,
          "mobile": 1
        },
        "gap": {
          "desktop": "32px",
          "tablet": "24px",
          "mobile": "20px"
        },
        "contentAlign": "center",
        "maxWidth": "1200px"
      }
    },
    "titleStyle": {
      "type": "object",
      "default": {
        "color": "#0f172a",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 800,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 42,
            "tablet": 34,
            "mobile": 28
          },
          "lineHeight": "1.2"
        }
      }
    },
    "subtitleStyle": {
      "type": "object",
      "default": {
        "color": "#475569",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 400,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 18,
            "tablet": 16,
            "mobile": 15
          },
          "lineHeight": "1.65"
        }
      }
    },
    "badgeStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#ede9fe",
        "textColor": "#6366f1",
        "borderRadius": {
          "top": "20px",
          "right": "20px",
          "bottom": "20px",
          "left": "20px"
        },
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 700,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 12,
            "tablet": 12,
            "mobile": 12
          }
        }
      }
    },
    "cardStyle": {
      "type": "object",
      "default": {
        "bg": "#ffffff",
        "borderColor": "#e2e8f0",
        "borderRadius": "12px",
        "shadow": "0 2px 12px rgba(0,0,0,0.06)",
        "categoryBg": "#ede9fe",
        "categoryColor": "#6366f1",
        "titleColor": "#0f172a",
        "excerptColor": "#475569",
        "metaColor": "#94a3b8",
        "titleTypo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 700,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 18,
            "tablet": 17,
            "mobile": 16
          },
          "lineHeight": "1.35"
        },
        "excerptTypo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 400,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 14,
            "tablet": 14,
            "mobile": 14
          },
          "lineHeight": "1.6"
        },
        "metaTypo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 400,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 12,
            "tablet": 12,
            "mobile": 12
          }
        },
        "categoryTypo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 700,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 11,
            "tablet": 11,
            "mobile": 11
          }
        }
      }
    },
    "viewAllBtnStyle": {
      "type": "object",
      "default": {
        "color": "#6366f1",
        "bg": "transparent",
        "borderColor": "#6366f1",
        "hoverColor": "#ffffff",
        "hoverBg": "#6366f1",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 15,
            "tablet": 15,
            "mobile": 14
          }
        }
      }
    },
    "wrapper": {
      "type": "object",
      "default": {
        "bg": {
          "type": "solid",
          "color": "#f8fafc",
          "gradient": "linear-gradient(135deg,#f0f4ff 0%,#faf5ff 100%)",
          "overlayColor": "rgba(0,0,0,0)",
          "image": {
            "url": ""
          },
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover"
        },
        "padding": {
          "desktop": {
            "top": "80px",
            "right": "24px",
            "bottom": "80px",
            "left": "24px"
          },
          "tablet": {
            "top": "60px",
            "right": "20px",
            "bottom": "60px",
            "left": "20px"
          },
          "mobile": {
            "top": "48px",
            "right": "16px",
            "bottom": "48px",
            "left": "16px"
          }
        }
      }
    },
    "align": {
      "type": "string",
      "default": "full"
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "html": false
  },
  "example": {
    "attributes": {}
  },
  "editorScript": "file:../index.js",
  "style": "file:./view.css",
  "render": "file:./render.php",
  "viewScript": "file:./view.js"
}