<?php
/**
 * Title: Editor's Picks
 * Slug: blokio/editors-picks
 * Categories: blokio-cards
 * Description: Pulls posts marked as Sticky in WordPress — a real editorial curation feature, not a fake "featured" flag. Mark any post as Sticky (Post > Status & Visibility) to have it appear here.
 * Keywords: editors picks, featured, sticky, curated
 */
?>
<!-- wp:group {"backgroundColor":"background","align":"full","layout":{"type":"constrained","contentSize":"1200px"},"style":{"spacing":{"padding":{"top":"var:preset|spacing|xl","bottom":"var:preset|spacing|xl","left":"var:preset|spacing|sm","right":"var:preset|spacing|sm"}}}} -->
<div class="wp-block-group alignfull has-background-background-color has-background" style="padding-top:var(--wp--preset--spacing--xl);padding-right:var(--wp--preset--spacing--sm);padding-bottom:var(--wp--preset--spacing--xl);padding-left:var(--wp--preset--spacing--sm)">

    <!-- wp:heading {"level":2} -->
    <h2><?php echo esc_html__( 'Editor\'s Picks', 'blokio' ); ?></h2>
    <!-- /wp:heading -->
    <!-- wp:paragraph {"textColor":"text-secondary"} -->
    <p class="has-text-secondary-color has-text-color"><?php echo esc_html__( 'Hand-selected by our editorial team — mark any post as Sticky to feature it here.', 'blokio' ); ?></p>
    <!-- /wp:paragraph -->

    <!-- wp:query {"query":{"perPage":3,"postType":"post","order":"desc","orderBy":"date","inherit":false,"sticky":"only"},"style":{"spacing":{"margin":{"top":"var:preset|spacing|md"}}}} -->
    <div class="wp-block-query" style="margin-top:var(--wp--preset--spacing--md)">
        <!-- wp:post-template {"layout":{"type":"grid","columnCount":3}} -->

            <!-- wp:group {"className":"blokio-card blokio-reveal","layout":{"type":"constrained"}} -->
            <div class="wp-block-group blokio-card blokio-reveal">
                <!-- wp:post-featured-image {"isLink":true} /-->
                <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|sm","right":"var:preset|spacing|sm","bottom":"var:preset|spacing|sm","left":"var:preset|spacing|sm"}}},"layout":{"type":"constrained"}} -->
                <div class="wp-block-group" style="padding-top:var(--wp--preset--spacing--sm);padding-right:var(--wp--preset--spacing--sm);padding-bottom:var(--wp--preset--spacing--sm);padding-left:var(--wp--preset--spacing--sm)">
                    <!-- wp:post-title {"isLink":true,"style":{"typography":{"fontSize":"var(--wp--preset--font-size--large)"}}} /-->
                    <!-- wp:post-excerpt {"excerptLength":14} /-->
                </div>
                <!-- /wp:group -->
            </div>
            <!-- /wp:group -->

        <!-- /wp:post-template -->
        <!-- wp:query-no-results -->
        <!-- wp:paragraph {"textColor":"text-secondary"} -->
        <p class="has-text-secondary-color has-text-color"><?php echo esc_html__( 'No sticky posts yet — mark a post as Sticky to feature it here.', 'blokio' ); ?></p>
        <!-- /wp:paragraph -->
        <!-- /wp:query-no-results -->
    </div>
    <!-- /wp:query -->

</div>
<!-- /wp:group -->
