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

/**
 * Renders the "Upgrade to Pro" promotion box.
 * This is typically shown in the plugin settings page to encourage upgrading.
 */
function doosearchas_search_upgrade_btn_callback_content() {
    ?>
    <div style="background: #fff; border: 1px solid #e0d4dc; padding: 24px; border-radius: 10px; max-width: 680px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); margin-top: 20px; font-family: sans-serif;">
        <h2 style="margin-top: 0; font-size: 20px; color: #000;"><?php esc_html_e('Upgrade to Pro', 'doosearch-ajax-search-for-woo'); ?></h2>
        <p style="font-size: 14px; color: #444; line-height: 1.6; margin-bottom: 16px;">
            <?php esc_html_e("Customers can't buy what they can’t find. Give them lightning-fast (10× faster), accurate search results and instantly boost your store’s conversions.", 'doosearch-ajax-search-for-woo'); ?>
        </p>
        <ul style="margin-top: 10px; padding-left: 0; font-size: 13.5px; line-height: 1.7; color: #333; list-style: none;">
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('Ultra-Fast Search Engine – handles 100,000+ products', 'doosearch-ajax-search-for-woo'); ?></li>
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('Advanced filters – add more filters and customize them to match your products', 'doosearch-ajax-search-for-woo'); ?></li>
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('Smart suggestions – show helpful search tips as users type', 'doosearch-ajax-search-for-woo'); ?></li>
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('Fuzzy search for partial and misspelled terms', 'doosearch-ajax-search-for-woo'); ?></li>
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('Search by variation product SKU', 'doosearch-ajax-search-for-woo'); ?></li>
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('Synonym support for more flexible search results', 'doosearch-ajax-search-for-woo'); ?></li>
            <li><span style="color:#a36597; font-weight: bold;">+ </span><?php esc_html_e('...and more — compare all features!', 'doosearch-ajax-search-for-woo'); ?></li>
        </ul>
        <a href="#" target="_blank"
           id="doosearchas-pro-link"
           style="
                display: inline-flex;
                align-items: center;
                margin-top: 24px;
                background: #fff;
                border: 2px solid #a36597;
                color: #a36597;
                padding: 12px 24px;
                border-radius: 6px;
                font-size: 14.5px;
                font-weight: 600;
                text-decoration: none;
                transition: all 0.3s ease;
           "
           onmouseover="this.style.background='#fdf4f9';"
           onmouseout="this.style.background='#fff';"
        >
            <span class="dashicons dashicons-lock" style="color: #9b5c8f; font-size: 18px; margin-right: 8px;"></span>
            <?php esc_html_e('Unlock Pro Features Now', 'doosearch-ajax-search-for-woo'); ?>
        </a>
    </div>
    <?php
}

/**
 * Renders the license key input (disabled) for the Pro version.
 * This section is shown if the plugin is in free mode or license is not active.
 */
function doosearchas_search_license_callback_content($options) {
        ?>
    <div style="display: flex; align-items: center;">
        <span class="dashicons dashicons-lock" style="color: #9b5c8f;"></span>
        <div style="position: relative; max-width: 300px;">
            <label for="license_key_db" class="screen-reader-text">
                <?php esc_html_e('License', 'doosearch-ajax-search-for-woo'); ?>
            </label>
            <input 
                type="text"  
                id="license_key_db"
                disabled>
        </div>
    </div>
    <p class="description" style="margin-top: 8px;">
        <?php esc_html_e('Enter your license key to unlock premium features and receive updates.', 'doosearch-ajax-search-for-woo'); ?>
    </p>
    <?php
}
