{
  "namespace": "realmsPlus_content",

  "realmsPlus_content_section@realmsPlus.section_base": {
    "controls": [
      {
        "content_section_top_padding@realmsPlus.content_section_top_padding": {}
      },
      {
        "content_sections": {
          "type": "stack_panel",
          "size": [ "100%", "100%c" ],
          "collection_name": "content_sections",

          "factory": {
            "name": "content_section_factory",
            "control_ids": {
              "icons": "@realmsPlus_content.content_pack_types_section",
              "packs": "@realmsPlus_content.content_packs_included_section",
              "text": "@realmsPlus_content.content_text_section"
            }
          },
          "bindings": [
            {
              "binding_name": "#content_tab_sections",
              "binding_name_override": "#collection_length"
            }
          ]
        }
      },
      {
        "content_section_bottom_padding@realmsPlus.content_section_top_padding": {}
      }
    ]
  },

  "content_pack_types_section": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "pack_types@realmsPlus_content.pack_types": {}
      },
      {
        "section_divider@realmsPlus.full_width_section_divider": {}
      },
      {
        "friends_get_access@realmsPlus_content.friends_get_access": {}
      },
      {
        "padding@common.empty_panel": {
          "size": [ "100%", 4 ]
        }
      }
    ]
  },

  "content_packs_included_section": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "popular_packs@realmsPlus_content.popular_packs": {}
      },
      {
        "section_divider@realmsPlus.full_width_section_divider": {}
      }
    ]
  },

  "content_text_section": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "content_description@realmsPlus_content.content_description": {}
      },
      {
        "section_divider@realmsPlus.full_width_section_divider": {}
      }
    ]
  },

  "pack_types": {
    "type": "panel",
    "size": [ "100%", 40 ],
    "$icon_color": "$body_text_color",
    "controls": [
      {
        "skins@realmsPlus_content.pack_type_description": {
          "$pack_type_texture": "common_store.skinpack_icon",
          "$pack_type_description_text": "store.realmsPlus.content.skinDescription",
          "anchor_from": "top_left",
          "anchor_to": "top_left"
        }
      },
      {
        "textures@realmsPlus_content.pack_type_description": {
          "$pack_type_texture": "common_store.resource_pack_icon",
          "$pack_type_description_text": "store.realmsPlus.content.textureDescription",
          "anchor_from": "top_right",
          "anchor_to": "top_right"
        }
      },
      {
        "worlds@realmsPlus_content.pack_type_description": {
          "$pack_type_texture": "common_store.world_icon",
          "$pack_type_description_text": "store.realmsPlus.content.worldDescription",
          "anchor_from": "bottom_left",
          "anchor_to": "bottom_left"
        }
      },
      {
        "mashups@realmsPlus_content.pack_type_description": {
          "$pack_type_texture": "common_store.mashup_icon",
          "$pack_type_description_text": "store.realmsPlus.content.mashupDescription",
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right"
        }
      }
    ]
  },

  "friends_get_access": {
    "type": "label",
    "size": [ "100%", "default" ],
    "text": "store.realmsPlus.content.friendsGetAccess",
    "font_type": "smooth",
    "color": "$store_white_text_color"
  },

  "pack_type_description": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "50% - 4px", 20 ],
    "controls": [
      {
        "image_nesting_panel": {
          "type": "panel",
          "size": [ "100%c", "100%" ],
          "controls": [
            {
              "texture@$pack_type_texture": {
                "size": [ 14, 14 ]
              }
            }
          ]
        }
      },
      {
        "padding_0@common.empty_panel": {
          "size": [ 4, "100%" ]
        }
      },
      {
        "description_nesting_panel": {
          "type": "panel",
          "size": [ "fill", "100%" ],
          "controls": [
            {
              "description_label": {
                "type": "label",
                "size": [ "100%", "default" ],
                "color": "$body_text_color",
                "text": "$pack_type_description_text",
                "font_type": "smooth"
              }
            }
          ]
        }
      }
    ]
  },

  "popular_packs": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "popular_packs_label_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "label_with_gradient@realmsPlus.gradient_content_panel": {
                "size": [ "100%", 15 ],
                "$gradient_content": "realmsPlus_content.popular_packs_label"
              }
            }
          ]
        }
      },
      {
        "padding_0@common.empty_panel": {
          "size": [ "100%", 2 ]
        }
      },
      {
        "pack_grid@realmsPlus_content.packs_collection": {}
      },
      {
        "view_all_packs_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "view_all_packs_button@common_buttons.light_content_button": {
                "$pressed_button_name": "button.view_all_packs",
                "$button_content": "realmsPlus_buy.button_text",
                "$button_text": "store.realmsPlus.content.viewAllPacks",
                "$button_text_size": [ "default", "default" ],
                "$button_text_max_size": [ "100% - 10px", 18 ],
                "size": [ "100%", 20 ]
              }
            }
          ]
        }
      },
      {
        "padding_1@common.empty_panel": {
          "size": [ "100%", 2 ]
        }
      }
    ]
  },

  "popular_packs_label": {
    "type": "label",
    "size": [ "100% - 4%", "default" ],
    "text": "#packs_label",
    "color": "$body_text_color",    
    "bindings": [
      {
        "binding_name": "#packs_label"
      }
    ]
  },

  "packs_collection": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "row_1": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", "100%cm" ],
          "collection_name": "popular_packs_collection",
          "controls": [
            {
              "pack_image_grid_item_0@realmsPlus_content.pack_image_grid_item": {
                "collection_index": 0
              }
            },
            {
              "padding": {
                "type": "panel",
                "size": [ 4, 0 ]
              }
            },
            {
              "pack_image_grid_item_1@realmsPlus_content.pack_image_grid_item": {
                "collection_index": 1
              }
            }
          ]
        }
      },
      {
        "padding_1": {
          "type": "panel",
          "size": [ "100%", 4 ]
        }
      },
      {
        "row_2": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", "100%cm" ],
          "collection_name": "popular_packs_collection",
          "controls": [
            {
              "pack_image_grid_item_0@realmsPlus_content.pack_image_grid_item": {
                "collection_index": 2
              }
            },
            {
              "padding": {
                "type": "panel",
                "size": [ 4, 0 ]
              }
            },
            {
              "pack_image_grid_item_1@realmsPlus_content.pack_image_grid_item": {
                "collection_index": 3
              }
            }
          ]
        }
      },
      {
        "padding_2": {
          "type": "panel",
          "size": [ "100%", 4 ]
        }
      }
    ]
  },

  "pack_image_grid_item": {
    "type": "panel",
    "size": [ "50% - 2px", "56.25%x + 1.125px" ],
    "controls": [
      {
        "bg@common_store.banner_fill": {
          "size": [ "100%", "100%" ],
          "layer": 1,
          "controls": [
            {
              "featured_key_art": {
                "type": "image",
                "layer": 4,
                "size": [ "100% - 2px", "100% - 2px" ],
                "bilinear": true,
                "bindings": [
                  {
                    "binding_type": "collection",
                    "binding_collection_name": "popular_packs_collection",
                    "binding_name": "#key_art_texture_file_system",
                    "binding_name_override": "#texture_file_system"
                  },
                  {
                    "binding_type": "collection",
                    "binding_collection_name": "popular_packs_collection",
                    "binding_name": "#key_art_texture_path",
                    "binding_name_override": "#texture"
                  }
                ],
                "controls": [
                  {
                    "chevron@realmsPlus_content.realms_plus_content_chevron": {
                      "anchor_from": "bottom_left",
                      "anchor_to": "bottom_left",
                      "offset": [ 0, 0.5 ]
                    }
                  }
                ]
              }
            },
            {
              "progress_loading@common_store.progress_loading": {
                "size": [ "100%", "100%" ],
                "$source_control_name": "featured_key_art",
                "$source_property_name": "(#texture = '')",
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "$hide_failure_text": true
              }
            }
          ]
        }
      },
      {
        "offer_button@common.button": {
          "size": [ "100%", "100%" ],
          "layer": 7,
          "default_control": "",
          "$pressed_button_name": "button.select_offer",
          "bindings": [
            {
              "binding_type": "collection_details",
              "binding_collection_name": "popular_packs_collection"
            },
            {
              "binding_type": "collection",
              "binding_collection_name": "popular_packs_collection",
              "binding_name": "#right_most_grid_item_focus_override_right",
              "binding_name_override": "#focus_change_right",
              "binding_condition": "visible"
            }
          ],
          "controls": [
            {
              "default@common.square_image_border_white": {
                "color": [ 0, 0, 0 ]
              }
            },
            {
              "hover@common.square_image_border_white": {}
            },
            {
              "pressed@common.square_image_border_white": {}
            }
          ]
        }
      }
    ]
  },

  "realms_plus_content_chevron@realmsPlus.markdown_background": {
    "size": [ "100%c", 12 ],
    "layer": 1,
    "$pack_icon_size": [ 6, 8 ]
  },

  "content_description": {
    "type": "panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "content_description_label": {
          "type": "label",
          "size": [ "100%", "default" ],
          "text": "#content_section_text",
          "color": "$body_text_color",
          "font_type": "smooth",
          "bindings": [
            {
              "binding_name": "#content_section_text",
              "binding_type": "collection",
              "binding_collection_name": "content_sections"
            }
          ]
        }
      }
    ]
  }

}
