<?php
namespace Unlockafe_addons\Widgets;

use Elementor\Widget_Base;
use Elementor\Controls_Manager;
use Elementor\Repeater;

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

class Glass_Morphism extends Widget_Base {

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

    public function get_title() {
        return __('Glass Morphism', 'unlock-addons-for-elementor');
    }

    public function get_icon() {
        return 'eicon-blurb ulicon';
    }

    public function get_categories() {
        return ['unlockafe-addons'];
    }
    public function get_keywords() {
        return ['glass', 'morphism', 'effect', 'style'];
    }

    public function get_script_depends() {
        return ['unlockafe-glass-morphism-script'];
    }

    public function get_style_depends() {
        return ['unlockafe-glass-morphism-style'];
    }
    protected function _register_controls() {
        $this->start_controls_section(
            'content_section',
            [
                'label' => __('Content', 'unlock-addons-for-elementor'),
                'tab'   => Controls_Manager::TAB_CONTENT,
            ]
        );

        $this->add_control(
            'title',
            [
                'label'   => __('Title', 'unlock-addons-for-elementor'),
                'type'    => Controls_Manager::TEXT,
                'default' => __('Default Title', 'unlock-addons-for-elementor'),
            ]
        );

        $this->end_controls_section();
    }

    protected function render() {
        $settings = $this->get_settings_for_display();
        ?>
        <div class="glass-morphism">
            <h2><?php echo esc_html($settings['title']); ?></h2>
        </div>
        <?php
    }
}