{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "create-block/faq-accordion",
  "version": "1.0.0",
  "title": "FAQ Accordion",
  "category": "section-blocks",
  "icon": "editor-help",
  "description": "A comprehensive FAQ accordion block with toggle functionality, schema markup for SEO, search, categories, and advanced customization options.",
  "keywords": [
    "faq",
    "accordion",
    "toggle",
    "questions",
    "answers",
    "help",
    "support",
    "schema"
  ],
  "example": {
    "attributes": {
      "title": "Frequently Asked Questions",
      "faqs": [
        {
          "id": "faq-1",
          "question": "What is WordPress?",
          "answer": "WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database.",
          "category": "General",
          "isOpen": false
        },
        {
          "id": "faq-2",
          "question": "How do I install WordPress?",
          "answer": "You can install WordPress through your hosting provider's one-click installer, manually via FTP, or using WP-CLI.",
          "category": "Installation",
          "isOpen": false
        }
      ]
    }
  },
  "attributes": {
    "title": {
      "type": "string",
      "default": "Frequently Asked Questions"
    },
    "faqs": {
      "type": "array",
      "default": [
        {
          "id": "faq-1",
          "question": "What is this FAQ section about?",
          "answer": "This FAQ section helps answer common questions about our products and services.",
          "category": "General",
          "isOpen": false,
          "votes": {
            "helpful": 0,
            "notHelpful": 0
          },
          "views": 0
        }
      ]
    },
    "categories": {
      "type": "array",
      "default": [
        "General"
      ]
    },
    "activeCategory": {
      "type": "string",
      "default": "All"
    },
    "layoutStyle": {
      "type": "string",
      "default": "default",
      "enum": [
        "default",
        "bordered",
        "card",
        "minimal",
        "modern"
      ]
    },
    "iconStyle": {
      "type": "string",
      "default": "plus-minus",
      "enum": [
        "plus-minus",
        "chevron",
        "arrow",
        "triangle",
        "custom"
      ]
    },
    "customIcon": {
      "type": "object",
      "default": null
    },
    "animationSpeed": {
      "type": "number",
      "default": 300
    },
    "animationEasing": {
      "type": "string",
      "default": "ease-in-out",
      "enum": [
        "ease",
        "ease-in",
        "ease-out",
        "ease-in-out",
        "linear"
      ]
    },
    "allowMultipleOpen": {
      "type": "boolean",
      "default": false
    },
    "showSearch": {
      "type": "boolean",
      "default": true
    },
    "showCategories": {
      "type": "boolean",
      "default": true
    },
    "showExpandCollapseAll": {
      "type": "boolean",
      "default": true
    },
    "showVoting": {
      "type": "boolean",
      "default": false
    },
    "showViewCount": {
      "type": "boolean",
      "default": false
    },
    "enableSchema": {
      "type": "boolean",
      "default": true
    },
    "schemaType": {
      "type": "string",
      "default": "FAQPage",
      "enum": [
        "FAQPage",
        "Question"
      ]
    },
    "colors": {
      "type": "object",
      "default": {
        "questionBackground": "#f8f9fa",
        "questionText": "#333333",
        "answerBackground": "#ffffff",
        "answerText": "#666666",
        "borderColor": "#e9ecef",
        "iconColor": "#007cba",
        "hoverBackground": "#e9ecef"
      }
    },
    "typography": {
      "type": "object",
      "default": {
        "questionFontSize": "18px",
        "questionFontWeight": "600",
        "answerFontSize": "16px",
        "answerFontWeight": "400",
        "questionLineHeight": "1.4",
        "answerLineHeight": "1.6"
      }
    },
    "spacing": {
      "type": "object",
      "default": {
        "questionPadding": "20px",
        "answerPadding": "20px",
        "itemMargin": "10px",
        "borderRadius": "8px"
      }
    },
    "searchPlaceholder": {
      "type": "string",
      "default": "Search FAQs..."
    },
    "noResultsMessage": {
      "type": "string",
      "default": "No FAQs found matching your search."
    },
    "expandAllText": {
      "type": "string",
      "default": "Expand All"
    },
    "collapseAllText": {
      "type": "string",
      "default": "Collapse All"
    },
    "helpfulText": {
      "type": "string",
      "default": "Helpful"
    },
    "notHelpfulText": {
      "type": "string",
      "default": "Not Helpful"
    }
  },
  "supports": {
    "html": false,
    "align": [
      "wide",
      "full"
    ],
    "spacing": {
      "padding": true,
      "margin": true
    },
    "color": {
      "background": true,
      "text": true,
      "gradients": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "fontWeight": true
    }
  },
  "textdomain": "section-blocks",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}