<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * Shortcode callback: Displays a message indicating how to use the search form shortcode.
 */
function doosearchas_search_shortcode_callback_content() {
    ?>
    <span>
        <?php esc_html_e('Use the shortcode [doosearchas_search_form] to display the search bar in any page/post/widget', 'doosearch-ajax-search-for-woo'); ?>
    </span>
    <?php
}

/**
 * Callback to display message for rebuild index feature.
 * Shows a notice that indexing is a Pro-only feature with an upgrade prompt.
 */
function doosearchas_search_rebuild_index_callback_content(){
    ?>
    <div style="padding: 10px; background: #f9f9f9; border: 1px solid #ddd; border-left: 4px solid #9b5c8f;">
        <strong><?php esc_html_e('Indexing is a Pro feature.', 'doosearch-ajax-search-for-woo'); ?></strong>
        <p style="margin: 5px 0 0;"><?php esc_html_e('Upgrade to Pro to unlock automatic indexing and better search performance.', 'doosearch-ajax-search-for-woo'); ?></p>
        <a href="#" id="doosearchas-pro-link" target="_blank" style="display: inline-block; margin-top: 8px;" class="button button-secondary">
            <?php esc_html_e('Upgrade to Pro', 'doosearch-ajax-search-for-woo'); ?>
        </a>
    </div>
    <?php
}