<?php
/**
 * Title: Blog Sidebar
 * Slug: nutrawell/blog-sidebar
 * Categories: nutrawell, featured
 * Description: Blog sidebar with search, categories, recent posts, and tags (block-only).
 */
?>
<!-- wp:group {"className":"blog-right"} -->
<div class="wp-block-group blog-right"><!-- wp:group {"className":"bg-wraperr search-item"} -->
<div class="wp-block-group bg-wraperr search-item"><!-- wp:search {"showLabel":false,"placeholder":"<?php echo esc_attr__( 'Search', 'nutrawell' ); ?>","buttonPosition":"no-button"} /--></div>
<!-- /wp:group -->

<!-- wp:group {"className":"bg-wraperr categories-wrapper"} -->
<div class="wp-block-group bg-wraperr categories-wrapper"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading"><?php echo esc_html__( 'Categories', 'nutrawell' ); ?></h3>
<!-- /wp:heading -->

<!-- wp:categories {"className":"categories"} /--></div>
<!-- /wp:group -->

<!-- wp:group {"className":"bg-wraperr recent-posts-wrapper"} -->
<div class="wp-block-group bg-wraperr recent-posts-wrapper"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading"><?php echo esc_html__( 'Recent Posts', 'nutrawell' ); ?></h3>
<!-- /wp:heading -->

<!-- wp:query {"className":"recent-posts","queryId":1,"query":{"perPage":3,"postType":"post","order":"desc","orderBy":"date","inherit":false}} -->
<div class="wp-block-query recent-posts"><!-- wp:post-template -->
<!-- wp:group {"className":"recent-post","layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group recent-post"><!-- wp:post-featured-image {"isLink":true} /-->

<!-- wp:group {"className":"recent-title"} -->
<div class="wp-block-group recent-title"><!-- wp:post-title {"level":4,"isLink":true,"style":{"typography":{"fontSize":"var:preset|font-size--sm"}}} /-->

<!-- wp:post-date {"metadata":{"bindings":{"datetime":{"source":"core/post-data","args":{"field":"date"}}}},"style":{"typography":{"fontSize":"var:preset|font-size--xs"}}} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- /wp:post-template --></div>
<!-- /wp:query --></div>
<!-- /wp:group -->

<!-- wp:group {"className":"bg-wraperr tags-wrapper"} -->
<div class="wp-block-group bg-wraperr tags-wrapper"><!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading"><?php echo esc_html__( 'Tags', 'nutrawell' ); ?></h3>
<!-- /wp:heading -->

<!-- wp:tag-cloud {"numberOfTags":7,"smallestFontSize":"14px","largestFontSize":"14px"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
