{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bpsc/social-proof-wall-section",
  "version": "1.0.0",
  "title": "Social Proof Wall Section",
  "category": "bPlugins",
  "description": "A social proof wall with five layouts supporting quotes, star ratings, and platform badge aggregates.",
  "keywords": [
    "testimonial wall",
    "wall of love",
    "social proof",
    "reviews",
    "masonry",
    "marquee",
    "section"
  ],
  "textdomain": "section-collection",
  "attributes": {
    "themeStyle": {
      "type": "object",
      "default": {
        "theme": "style-1"
      }
    },
    "content": {
      "type": "object",
      "default": {
        "badgeText": "Wall of Love",
        "title": "Loved by thousands of customers",
        "subtitle": "Don't take our word for it — see what our customers say.",
        "ctaLabel": "Read all reviews",
        "ctaUrl": "",
        "ctaNewTab": false
      }
    },
    "elements": {
      "type": "object",
      "default": {
        "isBadge": true,
        "isTitle": true,
        "isSubtitle": true,
        "isReviewBadgeBar": true,
        "isSocialProofCounter": false,
        "isCta": true
      }
    },
    "testimonials": {
      "type": "array",
      "default": [
        {
          "id": "t1",
          "cardType": "quote",
          "quote": "This product changed everything about how our team ships. Absolutely essential.",
          "authorName": "Sarah Chen",
          "authorRole": "Head of Product",
          "authorCompany": "Acme Corp",
          "authorImage": "",
          "starRating": 5,
          "platform": "g2",
          "platformLabel": "G2",
          "isVerified": true,
          "isFeatured": false
        },
        {
          "id": "t2",
          "cardType": "quote",
          "quote": "We saw a 3x improvement in team velocity within the first month.",
          "authorName": "Marcus Liu",
          "authorRole": "Engineering Lead",
          "authorCompany": "Stratos",
          "authorImage": "",
          "starRating": 5,
          "platform": "capterra",
          "platformLabel": "Capterra",
          "isVerified": true,
          "isFeatured": true
        },
        {
          "id": "t3",
          "cardType": "quote",
          "quote": "The onboarding is so smooth I had my entire team using it on day one.",
          "authorName": "Priya Nair",
          "authorRole": "Operations Director",
          "authorCompany": "Flux",
          "authorImage": "",
          "starRating": 4,
          "platform": "twitter",
          "platformLabel": "X",
          "isVerified": false,
          "isFeatured": false
        },
        {
          "id": "t4",
          "cardType": "rating",
          "quote": "Best investment we made this year. Nothing else comes close.",
          "authorName": "James Okonkwo",
          "authorRole": "CEO",
          "authorCompany": "Zeno AI",
          "authorImage": "",
          "starRating": 5,
          "platform": "producthunt",
          "platformLabel": "Product Hunt",
          "isVerified": true,
          "isFeatured": false
        },
        {
          "id": "t5",
          "cardType": "quote",
          "quote": "Customer support is outstanding. They actually listen and ship improvements fast.",
          "authorName": "Lena Bauer",
          "authorRole": "Founder",
          "authorCompany": "BuildCraft",
          "authorImage": "",
          "starRating": 5,
          "platform": "trustpilot",
          "platformLabel": "Trustpilot",
          "isVerified": true,
          "isFeatured": false
        },
        {
          "id": "t6",
          "cardType": "quote",
          "quote": "I recommend this to every founder I advise. Transformative product.",
          "authorName": "Ana Torres",
          "authorRole": "Investor & Advisor",
          "authorCompany": "Vertex Capital",
          "authorImage": "",
          "starRating": 5,
          "platform": "linkedin",
          "platformLabel": "LinkedIn",
          "isVerified": false,
          "isFeatured": false
        }
      ]
    },
    "reviewBadges": {
      "type": "array",
      "default": [
        {
          "id": "rb1",
          "platform": "G2",
          "score": "4.9",
          "reviewCount": "1,240",
          "outOf": "5"
        },
        {
          "id": "rb2",
          "platform": "Capterra",
          "score": "4.8",
          "reviewCount": "930",
          "outOf": "5"
        },
        {
          "id": "rb3",
          "platform": "Trustpilot",
          "score": "4.7",
          "reviewCount": "3,100",
          "outOf": "5"
        },
        {
          "id": "rb4",
          "platform": "Product Hunt",
          "score": "#1",
          "reviewCount": "680 upvotes",
          "outOf": ""
        }
      ]
    },
    "socialProofCounters": {
      "type": "array",
      "default": [
        {
          "id": "sc1",
          "value": "50,000+",
          "label": "happy customers"
        },
        {
          "id": "sc2",
          "value": "4.9 / 5",
          "label": "average rating"
        },
        {
          "id": "sc3",
          "value": "10,000+",
          "label": "five-star reviews"
        }
      ]
    },
    "layout": {
      "type": "object",
      "default": {
        "columns": {
          "desktop": 3,
          "tablet": 2,
          "mobile": 1
        },
        "gap": {
          "desktop": "24px",
          "tablet": "20px",
          "mobile": "16px"
        },
        "maxWidth": "1200px",
        "contentAlign": "center",
        "showPlatformChip": true,
        "showStarRating": true,
        "showVerifiedBadge": true,
        "showAuthorImage": true,
        "marqueeSpeed": 40
      }
    },
    "cardStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#ffffff",
        "borderColor": "#e5e7eb",
        "borderWidth": "1px",
        "borderRadius": {
          "top": "12px",
          "right": "12px",
          "bottom": "12px",
          "left": "12px"
        },
        "shadow": "0 1px 3px rgba(0,0,0,0.08)",
        "hoverShadow": "0 8px 24px rgba(0,0,0,0.12)",
        "padding": {
          "desktop": {
            "top": "24px",
            "right": "24px",
            "bottom": "24px",
            "left": "24px"
          },
          "tablet": {
            "top": "20px",
            "right": "20px",
            "bottom": "20px",
            "left": "20px"
          },
          "mobile": {
            "top": "16px",
            "right": "16px",
            "bottom": "16px",
            "left": "16px"
          }
        },
        "quoteColor": "#111827",
        "quoteFontSize": {
          "desktop": 15,
          "tablet": 15,
          "mobile": 14
        },
        "authorNameColor": "#111827",
        "authorRoleColor": "#6b7280",
        "starColor": "#f59e0b",
        "chipBackgroundColor": "#f3f4f6",
        "chipTextColor": "#374151"
      }
    },
    "titleStyle": {
      "type": "object",
      "default": {
        "color": "#111827",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 800,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 42,
            "tablet": 36,
            "mobile": 28
          },
          "lineHeight": "1.2",
          "letterSpace": "0px"
        }
      }
    },
    "subtitleStyle": {
      "type": "object",
      "default": {
        "color": "#6b7280",
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 400,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 18,
            "tablet": 17,
            "mobile": 16
          },
          "lineHeight": "1.6",
          "letterSpace": "0px"
        }
      }
    },
    "badgeStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#ede9fe",
        "textColor": "#6366f1",
        "borderRadius": {
          "top": "20px",
          "right": "20px",
          "bottom": "20px",
          "left": "20px"
        },
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 13,
            "tablet": 13,
            "mobile": 13
          }
        }
      }
    },
    "ctaStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#6366f1",
        "textColor": "#ffffff",
        "hoverBg": "#4f46e5",
        "hoverColor": "#ffffff",
        "borderRadius": {
          "top": "10px",
          "right": "10px",
          "bottom": "10px",
          "left": "10px"
        },
        "padding": {
          "desktop": {
            "top": "13px",
            "right": "28px",
            "bottom": "13px",
            "left": "28px"
          },
          "tablet": {
            "top": "11px",
            "right": "24px",
            "bottom": "11px",
            "left": "24px"
          },
          "mobile": {
            "top": "10px",
            "right": "20px",
            "bottom": "10px",
            "left": "20px"
          }
        },
        "typo": {
          "fontCategory": "sans-serif",
          "fontFamily": "Default",
          "fontWeight": 600,
          "isUploadFont": true,
          "fontSize": {
            "desktop": 15,
            "tablet": 14,
            "mobile": 14
          }
        }
      }
    },
    "reviewBadgeStyle": {
      "type": "object",
      "default": {
        "backgroundColor": "#ffffff",
        "borderColor": "#e5e7eb",
        "borderRadius": {
          "top": "12px",
          "right": "12px",
          "bottom": "12px",
          "left": "12px"
        },
        "platformColor": "#111827",
        "scoreColor": "#111827",
        "countColor": "#6b7280",
        "starColor": "#f59e0b"
      }
    },
    "counterStyle": {
      "type": "object",
      "default": {
        "valueColor": "#111827",
        "labelColor": "#6b7280",
        "separatorColor": "#e5e7eb",
        "valueFontSize": {
          "desktop": 32,
          "tablet": 28,
          "mobile": 24
        },
        "labelFontSize": {
          "desktop": 14,
          "tablet": 14,
          "mobile": 13
        }
      }
    },
    "accentColor": {
      "type": "object",
      "default": {
        "color": "#6366f1"
      }
    },
    "wrapper": {
      "type": "object",
      "default": {
        "bg": {
          "type": "solid",
          "color": "#f9fafb",
          "gradient": "linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
          "image": {
            "url": ""
          },
          "position": "center center",
          "size": "cover",
          "repeat": "no-repeat",
          "overlayColor": "rgba(0,0,0,0)"
        },
        "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"
}