<?php
/**
 * Widget Style Map
 *
 * Har widget ki style settings yahan define hoti hain.
 * Naya widget add karna ho to sirf is file mein ek entry add karo —
 * baaki CSS loading logic automatically handle ho jaati hai.
 *
 * Array structure (har entry ke liye):
 *   'widget-name'  =>  Elementor widget name (get_name() se match karna chahiye)
 *   'setting'      =>  Style SELECT control ki key (register_controls mein jo naam diya)
 *   'folder'       =>  CSS file path prefix — CAPTWIKI_ASSETS . 'css/widgets/' ke baad ka hissa
 *                      Format: '{folder}/{file-prefix}'
 *                      CSS file banti hai: captwiki-{widget-name}-{style}.css
 *   'common_handle'=>  Common CSS ka registered handle (captwiki_register_widgets_style mein jo diya)
 *   'default'      =>  Agar setting empty ho ya invalid ho to ye style use hogi
 *
 * CSS file naming convention (project rule ke mutabik):
 *   Common  : assets/css/widgets/{widget-name}/captwiki-{widget-name}.css
 *   Style N : assets/css/widgets/{widget-name}/captwiki-{widget-name}-style-{N}.css
 *
 * Example — naya widget add karna:
 *   'captwiki-card' => array(
 *       'setting'       => 'widget_style',
 *       'folder'        => 'card/captwiki-card',
 *       'common_handle' => 'captwiki_card',
 *       'default'       => 'style-1',
 *   ),
 *
 * @package    captain-widgets-kit
 * @subpackage captain-widgets-kit/includes/elementor
 * @since      1.0.0
 */

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

/**
 * Returns the widget style map array.
 *
 * Har widget jisme multiple styles hain uski entry yahan honi chahiye.
 * CSS load karne ki zimmedari Captwiki_Widgets_Load::captwiki_load_widget_style_before_render() ki hai.
 *
 * @since 1.0.0
 * @return array Widget style map.
 */
function captwiki_get_widget_style_map() {

	return array(

		// ── Dual Button ───────────────────────────────────────────────────────────
		'captwiki-dual-button' => array(
			'setting'       => 'widget_style',
			'folder'        => 'dual-button/captwiki-dual-button',
			'common_handle' => 'captwiki_dual_button',
			'default'       => 'style-1',
		),

		'captwiki-heading-title' => array(
			'setting'       => 'widget_style',
			'folder'        => 'heading-title/captwiki-heading-title',
			'common_handle' => 'captwiki_heading_title',
			'default'       => 'style-1',
		),

		'captwiki-star-rating' => array(
			'setting'       => 'widget_style',
			'folder'        => 'star-rating/captwiki-star-rating',
			'common_handle' => 'captwiki_star_rating',
			'default'       => 'style-1',
		),

		'captwiki-blockquote' => array(
			'setting'       => 'widget_style',
			'folder'        => 'blockquote/captwiki-blockquote',
			'common_handle' => 'captwiki_blockquote',
			'default'       => 'style-1',
		),

		'captwiki-countdown' => array(
			'setting'       => 'widget_style',
			'folder'        => 'countdown/captwiki-countdown',
			'common_handle' => 'captwiki_countdown',
			'default'       => 'style-1',
		),

		'captwiki-pricing' => array(
			'setting'       => 'widget_style',
			'folder'        => 'pricing/captwiki-pricing',
			'common_handle' => 'captwiki_pricing',
			'default'       => 'style-1',
		),

		'captwiki-testimonial' => array(
			'setting'       => 'widget_style',
			'folder'        => 'testimonial/captwiki-testimonial',
			'common_handle' => 'captwiki_testimonial',
			'default'       => 'style-1',
		),

		'captwiki-tabs' => array(
			'setting'       => 'widget_style',
			'folder'        => 'tabs/captwiki-tabs',
			'common_handle' => 'captwiki_tabs',
			'default'       => 'style-1',
		),

		'captwiki-table' => array(
			'setting'       => 'widget_style',
			'folder'        => 'table/captwiki-table',
			'common_handle' => 'captwiki_table',
			'default'       => 'style-1',
		),

		'captwiki-gallery-listing' => array(
			'setting'       => 'widget_style',
			'folder'        => 'gallery-listing/captwiki-gallery-listing',
			'common_handle' => 'captwiki_gallery_listing',
			'default'       => 'style-1',
		),

		'captwiki-age-gate' => array(
			'setting'       => 'widget_style',
			'folder'        => 'age-gate/captwiki-age-gate',
			'common_handle' => 'captwiki_age_gate',
			'default'       => 'style-1',
		),

		'captwiki-cookie-consent' => array(
			'setting'       => 'widget_style',
			'folder'        => 'cookie-consent/captwiki-cookie-consent',
			'common_handle' => 'captwiki_cookie_consent',
			'default'       => 'style-1',
		),

		'captwiki-animated-box' => array(
			'setting'       => 'widget_style',
			'folder'        => 'animated-box/captwiki-animated-box',
			'common_handle' => 'captwiki_animated_box',
			'default'       => 'style-1',
		),

		'captwiki-animated-marquee' => array(
			'setting'       => 'widget_style',
			'folder'        => 'animated-marquee/captwiki-animated-marquee',
			'common_handle' => 'captwiki_animated_marquee',
			'default'       => 'style-1',
		),

		'captwiki-mega-menu' => array(
			'setting'       => 'widget_style',
			'folder'        => 'mega-menu/captwiki-mega-menu',
			'common_handle' => 'captwiki_mega_menu',
			'default'       => 'style-1',
		),

		'captwiki-scroll-navigation-dots' => array(
			'setting'       => 'widget_style',
			'folder'        => 'scroll-navigation-dots/captwiki-scroll-navigation-dots',
			'common_handle' => 'captwiki_scroll_navigation_dots',
			'default'       => 'style-1',
		),

		'captwiki-progress-bar' => array(
			'setting'       => 'widget_style',
			'folder'        => 'progress-bar/captwiki-progress-bar',
			'common_handle' => 'captwiki_progress_bar',
			'default'       => 'style-1',
		),

		'captwiki-side-menu' => array(
			'setting'       => 'widget_style',
			'folder'        => 'side-menu/captwiki-side-menu',
			'common_handle' => 'captwiki_side_menu',
			'default'       => 'style-1',
		),

		// ── Agle widgets yahan add karo ───────────────────────────────────────────
		// 'captwiki-card' => array(
		// 	'setting'       => 'widget_style',
		// 	'folder'        => 'card/captwiki-card',
		// 	'common_handle' => 'captwiki_card',
		// 	'default'       => 'style-1',
		// ),
		//
		// 'captwiki-team' => array(
		// 	'setting'       => 'widget_style',
		// 	'folder'        => 'team/captwiki-team',
		// 	'common_handle' => 'captwiki_team',
		// 	'default'       => 'style-1',
		// ),

	);
}
