<?php
namespace Softech_Addons_for_Elementor\Widgets;

if (!defined('ABSPATH')) exit;

class sitsel_pro_popup_widget extends Base_Locked_Widget {

    public function get_name() { 
        return 'sitsel_pro_popup_widget'; 
    }

    public function get_widget_metadata() {
        return [
            'title'       => __('SITS Popup Widget', 'softech-addons-for-elementor'),
            'description' => __('Create and display beautiful popup boxes with advanced controls.', 'softech-addons-for-elementor'),
            'icon'        => 'eicon-lightbox',
            'categories'  => ['sits-category'],
            'keywords'    => ['popup', 'modal', 'lightbox', 'alert', 'dialog'],
        ];
    }

    // Defines upsell details for locked widget
    protected function get_upsale_data() {
        if ($this->is_pro_active()) {
            return false;
        }

        return [
            'condition'   => true,
            'image'       => '', // Optional: Add preview image URL here
            'image_alt'   => __('Upgrade', 'softech-addons-for-elementor'),
            'title'       => __('Unlock Sitsel Popup Widget', 'softech-addons-for-elementor'),
            'description' => __('Upgrade to Sitsel Pro to create advanced popup layouts with animations and triggers.', 'softech-addons-for-elementor'),
            'upgrade_url' => 'https://softechaddons.sitslab.com/#pro-plan',
            'upgrade_text'=> __('Upgrade Now', 'softech-addons-for-elementor'),
        ];
    }
}
