{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "caliph/card-widget",
  "version": "0.1.0",
  "title": "Card Widget",
  "category": "widgets",
  "icon": "id-alt",
  "description": "A customizable card widget with icon, title, description and action button.",
  "textdomain": "caliph",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./editor.css",
  "style": "file:./style.css",
  "example": {},
  "supports": {
    "html": false,
    "color": {
      "gradients": true,
      "background": true,
      "text": true
    },
    "spacing": {
      "margin": true,
      "padding": true
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true
    }
  },
  "attributes": {
    "cardStyle": {
      "type": "string",
      "default": "default",
      "enum": [
        "default",
        "cat-grooming",
        "dog-training",
        "vet-profile"
      ]
    },
    "cardImage": {
      "type": "string",
      "default": ""
    },
    "cardBackgroundColor": {
      "type": "string",
      "default": "var(--wp--preset--color--base)"
    },
    "iconBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "titleColor": {
      "type": "string",
      "default": "var(--wp--preset--color--accent-5)"
    },
    "descriptionColor": {
      "type": "string",
      "default": "var(--wp--preset--color--accent-4)"
    },
    "actionButtonColor": {
      "type": "string",
      "default": "var(--wp--preset--color--contrast)"
    },
    "actionButtonIconColor": {
      "type": "string",
      "default": "var(--wp--preset--color--base)"
    },
    "iconUrl": {
      "type": "string",
      "default": ""
    },
    "iconSize": {
      "type": "number",
      "default": 60
    },
    "iconBackgroundSize": {
      "type": "number",
      "default": 80
    },
    "titleFontSize": {
      "type": "number",
      "default": 24
    },
    "titleFontWeight": {
      "type": "string",
      "default": "700"
    },
    "descriptionFontSize": {
      "type": "number",
      "default": 16
    },
    "descriptionFontWeight": {
      "type": "string",
      "default": "400"
    },
    "title": {
      "type": "string",
      "default": "Grooming & Bathing"
    },
    "description": {
      "type": "string",
      "default": "Gentle grooming that keeps pets clean, comfortable, and stylish, using safe products for a healthy coat and happy smile every time."
    },
    "actionButtonUrl": {
      "type": "string",
      "default": "#"
    },
    "borderRadius": {
      "type": "number",
      "default": 16
    },
    "cardPadding": {
      "type": "number",
      "default": 30
    },
    "customPadding": {
      "type": "object",
      "default": {
        "top": "30px",
        "right": "30px",
        "bottom": "30px",
        "left": "30px"
      }
    },
    "useCustomPadding": {
      "type": "boolean",
      "default": false
    },
    "hoverEffect": {
      "type": "string",
      "default": "lift"
    },
    "hoverIntensity": {
      "type": "number",
      "default": 5
    },
    "enableHoverEffects": {
      "type": "boolean",
      "default": true
    },
    "cardHoverBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "titleHoverColor": {
      "type": "string",
      "default": ""
    },
    "descriptionHoverColor": {
      "type": "string",
      "default": ""
    },
    "actionButtonHoverColor": {
      "type": "string",
      "default": ""
    },
    "actionButtonIconHoverColor": {
      "type": "string",
      "default": ""
    },
    "iconHoverBackgroundColor": {
      "type": "string",
      "default": ""
    },
    "actionButtonVisibility": {
      "type": "string",
      "default": "always"
    },
    "buttonAlignment": {
      "type": "string",
      "default": "right"
    },
    "enableHoverColorTransitions": {
      "type": "boolean",
      "default": true
    },
    "hoverTransitionDuration": {
      "type": "number",
      "default": 300
    },
    "buttonPositionTop": {
      "type": "number",
      "default": 0
    },
    "buttonPositionRight": {
      "type": "number",
      "default": 0
    },
    "buttonPositionBottom": {
      "type": "number",
      "default": 0
    },
    "buttonPositionLeft": {
      "type": "number",
      "default": 0
    },
    "buttonPositionUnit": {
      "type": "string",
      "default": "px"
    },
    "shapeType": {
      "type": "string",
      "default": "none"
    },
    "shapeColor": {
      "type": "string",
      "default": "var(--wp--preset--color--accent-1)"
    },
    "shapeHoverColor": {
      "type": "string",
      "default": ""
    },
    "shapeSize": {
      "type": "number",
      "default": 52
    },
    "shapePositionTop": {
      "type": "number",
      "default": 0
    },
    "shapePositionRight": {
      "type": "number",
      "default": 0
    },
    "shapePositionBottom": {
      "type": "number",
      "default": 0
    },
    "shapePositionLeft": {
      "type": "number",
      "default": 0
    },
    "shapePositionUnit": {
      "type": "string",
      "default": "px"
    },
    "shapeRotation": {
      "type": "number",
      "default": 0
    },
    "shapeOpacity": {
      "type": "number",
      "default": 100
    },
    "cardWidth": {
      "type": "number",
      "default": 400
    },
    "cardHeight": {
      "type": "number",
      "default": 358
    },
    "imageWidth": {
      "type": "number",
      "default": 399
    },
    "imageHeight": {
      "type": "number",
      "default": 329
    },
    "dogTrainingLayout": {
      "type": "string",
      "default": "content-left",
      "enum": [
        "content-left",
        "content-right"
      ]
    },
    "vetProfileTitle": {
      "type": "string",
      "default": "Dr. Emily Carter"
    },
    "vetProfileDesignation": {
      "type": "string",
      "default": "Senior Vet"
    },
    "vetProfileImage": {
      "type": "string",
      "default": "https://via.placeholder.com/400x480?text=Vet+Profile+Image"
    },
    "vetProfileBackgroundColor": {
      "type": "string",
      "default": "var(--wp--preset--color--base)"
    },
    "vetProfileTitleColor": {
      "type": "string",
      "default": "var(--wp--preset--color--accent-5)"
    },
    "vetProfileDesignationColor": {
      "type": "string",
      "default": "var(--wp--preset--color--contrast)"
    },
    "vetProfileInfoPadding": {
      "type": "number",
      "default": 16
    },
    "vetProfileInfoPositionTop": {
      "type": "number",
      "default": 380
    },
    "vetProfileInfoPositionLeft": {
      "type": "number",
      "default": 20
    },
    "vetProfileInfoPositionRight": {
      "type": "number",
      "default": 20
    },
    "vetProfileInfoPositionBottom": {
      "type": "number",
      "default": 20
    },
    "vetProfileInfoBorderRadius": {
      "type": "number",
      "default": 12
    },
    "cardAlignment": {
      "type": "string",
      "default": "center",
      "enum": [
        "left",
        "center",
        "right"
      ]
    }
  }
}