<?php
/**
 * Customizer settings default value
 *
 * @package Kenta Groovy Blog
 */

if ( ! function_exists( 'kenta_breeze_return_yes' ) ) {
	function kenta_breeze_return_yes() {
		return 'yes';
	}
}

if ( ! function_exists( 'kenta_breeze_return_no' ) ) {
	function kenta_breeze_return_no() {
		return 'no';
	}
}

// Disable site wrap by default
add_filter( 'kenta_enable_site_wrap_default_value', 'kenta_breeze_return_no' );
// Disable transparent header by default
add_filter( 'kenta_enable_transparent_header_default_value', 'kenta_breeze_return_no' );
// Disable preloader by default
add_filter( 'kenta_global_preloader_default_value', 'kenta_breeze_return_no' );
// Disable scroll reveal by default
add_filter( 'kenta_global_scroll_reveal_default_value', 'kenta_breeze_return_no' );
// Enable sticky header by default
add_filter( 'kenta_sticky_header_default_value', 'kenta_breeze_return_yes' );

//
//  Card style
//
if ( ! function_exists( 'kenta_breeze_card_preset' ) ) {
	function kenta_breeze_card_preset() {
		return 'solid-shadow';
	}
}
add_filter( 'kenta_card_style_preset_default_value', 'kenta_breeze_card_preset' );
add_filter( 'kenta_store_card_style_preset_default_value', 'kenta_breeze_card_preset' );
add_filter( 'kenta_global_sidebar_widgets-style_default_value', 'kenta_breeze_card_preset' );
//add_filter( 'kenta_post_content_style_preset_default_value', 'kenta_breeze_card_preset' );

//
// Sidebar
//
add_filter( 'kenta_post_sidebar_section_default_value', 'kenta_breeze_return_no' );
add_filter( 'kenta_archive_sidebar_section_default_value', 'kenta_breeze_return_yes' );

//
// Archive
//
if ( ! function_exists( 'kenta_breeze_archive_columns' ) ) {
	function kenta_breeze_archive_columns() {
		return [
			'desktop' => 2,
			'tablet'  => 2,
			'mobile'  => 1,
		];
	}
}
add_filter( 'kenta_archive_columns_default_value', 'kenta_breeze_archive_columns' );

//
// Layout
//
if ( ! function_exists( 'kenta_breeze_pages_container_layout' ) ) {
	function kenta_breeze_pages_container_layout() {
		return 'narrow';
	}
}
add_filter( 'kenta_pages_container_layout_default_value', 'kenta_breeze_pages_container_layout' );

//
// Default color preset
//

if ( ! function_exists( 'kenta_breeze_default_color_presets' ) ) {
	function kenta_breeze_default_color_presets() {
		return 'breeze-1';
	}
}
add_filter( 'kenta_color_palettes_default_value', 'kenta_breeze_default_color_presets' );

if ( ! function_exists( 'kenta_breeze_color_presets' ) ) {
	function kenta_breeze_color_presets( $presets ) {
		return [
			'breeze-1'  => [
				'kenta-primary-color'  => '#ffc62a',
				'kenta-primary-active' => '#ffd52c',
				'kenta-accent-color'   => '#061425',
				'kenta-accent-active'  => '#261e40',
				'kenta-base-300'       => '#252629',
				'kenta-base-200'       => '#252629',
				'kenta-base-100'       => '#fbf8ec',
				'kenta-base-color'     => '#ffffff',
			],
			'breeze-2'  => [
				'kenta-primary-color'  => '#f32d71',
				'kenta-primary-active' => '#f32d71',
				'kenta-accent-color'   => '#261e40',
				'kenta-accent-active'  => '#261e40',
				'kenta-base-300'       => '#261e40',
				'kenta-base-200'       => '#242835',
				'kenta-base-100'       => '#e9ecf7',
				'kenta-base-color'     => '#ffffff',
			],
			'breeze-3'  => [
				'kenta-primary-color'  => '#ffe33c',
				'kenta-primary-active' => '#063aaf',
				'kenta-accent-color'   => '#000000',
				'kenta-accent-active'  => '#261e40',
				'kenta-base-300'       => '#261e40',
				'kenta-base-200'       => '#242835',
				'kenta-base-100'       => '#f0faff',
				'kenta-base-color'     => '#ffffff',
			],
			'breeze-4'  => [
				'kenta-primary-color'  => '#0db2ac',
				'kenta-primary-active' => '#f42c70',
				'kenta-accent-color'   => '#261f41',
				'kenta-accent-active'  => '#261f41',
				'kenta-base-300'       => '#261f41',
				'kenta-base-200'       => '#261f41',
				'kenta-base-100'       => '#fbf4f4',
				'kenta-base-color'     => '#ffffff',
			],
			'breeze-5'  => [
				'kenta-primary-color'  => '#d75151',
				'kenta-primary-active' => '#e5989b',
				'kenta-accent-color'   => '#261f41',
				'kenta-accent-active'  => '#261f41',
				'kenta-base-300'       => '#261f41',
				'kenta-base-200'       => '#261f41',
				'kenta-base-100'       => '#e8e9ff',
				'kenta-base-color'     => '#fffdc9',
			],
			'breeze-6'  => [
				'kenta-primary-color'  => '#d75151',
				'kenta-primary-active' => '#e5989b',
				'kenta-accent-color'   => '#261f41',
				'kenta-accent-active'  => '#261f41',
				'kenta-base-300'       => '#261f41',
				'kenta-base-200'       => '#261f41',
				'kenta-base-100'       => '#e9f4e7',
				'kenta-base-color'     => '#fffde1',
			],
			'greyscale' => [
				'kenta-primary-color'  => '#9d9d9d',
				'kenta-primary-active' => '#b5b5b5',
				'kenta-accent-color'   => '#000000',
				'kenta-accent-active'  => '#000000',
				'kenta-base-300'       => '#000000',
				'kenta-base-200'       => '#000000',
				'kenta-base-100'       => '#ffffff',
				'kenta-base-color'     => '#ffffff',
			],
		];
	}
}
add_filter( 'kenta_filter_color_presets', 'kenta_breeze_color_presets' );

//
// Dark color preset
//
if ( ! function_exists( 'kenta_breeze_dark_base_color' ) ) {
	function kenta_breeze_dark_base_color() {
		return [
			'300'     => '#ffffff',
			'200'     => '#ffffff',
			'100'     => '#222222',
			'default' => '#000000',
		];
	}
}
add_filter( 'kenta_dark_base_color_default_value', 'kenta_breeze_dark_base_color' );

if ( ! function_exists( 'kenta_breeze_dark_accent_color' ) ) {
	function kenta_breeze_dark_accent_color() {
		return [
			'default' => '#ffffff',
			'active'  => '#ffffff',
		];
	}
}
add_filter( 'kenta_dark_accent_color_default_value', 'kenta_breeze_dark_accent_color' );

//
// Global typography
//
if ( ! function_exists( 'kenta_breeze_global_typography' ) ) {
	function kenta_breeze_global_typography() {
		return [
			'family'   => 'varela-round',
			'fontSize' => '18px',
			'variant'  => '400',
		];
	}
}
add_filter( 'kenta_site_global_typography_default_value', 'kenta_breeze_global_typography' );

//
// Social Networks
//
if ( ! function_exists( 'kenta_breeze_social_networks' ) ) {
	function kenta_breeze_social_networks() {
		return [
			[
				'visible'  => true,
				'settings' => [
					'color' => [ 'official' => '#557dbc' ],
					'label' => 'Facebook',
					'url'   => '',
					'share' => 'https://www.facebook.com/sharer/sharer.php?u={url}',
					'icon'  => [ 'value' => 'fab fa-facebook', 'library' => 'fa-brands' ]
				],
			],
			[
				'visible'  => true,
				'settings' => [
					'color' => [ 'official' => '#000000' ],
					'label' => 'Twitter',
					'url'   => '',
					'share' => 'https://twitter.com/share?url={url}&text={text}',
					'icon'  => [ 'value' => 'fab fa-x-twitter', 'library' => 'fa-brands' ]
				],
			],
			[
				'visible'  => true,
				'settings' => [
					'color' => [ 'official' => '#ed1376' ],
					'label' => 'Instagram',
					'url'   => '',
					'icon'  => [ 'value' => 'fab fa-instagram', 'library' => 'fa-brands' ]
				],
			],
			[
				'visible'  => true,
				'settings' => [
					'color' => [ 'official' => '#f42e53' ],
					'label' => 'Tiktok',
					'url'   => '',
					'icon'  => [ 'value' => 'fab fa-tiktok', 'library' => 'fa-brands' ]
				],
			],
		];
	}
}
add_filter( 'kenta_social_networks_default_value', 'kenta_breeze_social_networks' );

//
// Header elements
//
if ( ! function_exists( 'kenta_breeze_header_primary_navbar_row_border_top' ) ) {
	function kenta_breeze_header_primary_navbar_row_border_top() {
		return [
			'width' => 6,
			'style' => 'solid',
			'color' => 'var(--kenta-primary-color)',
		];
	}
}
add_filter( 'kenta_header_primary_navbar_row_border_top_default_value', 'kenta_breeze_header_primary_navbar_row_border_top' );

if ( ! function_exists( 'kenta_breeze_header_primary_navbar_row_border_bottom' ) ) {
	function kenta_breeze_header_primary_navbar_row_border_bottom() {
		return [
			'width' => 2,
			'style' => 'solid',
			'color' => 'var(--kenta-base-300)',
		];
	}
}
add_filter( 'kenta_header_primary_navbar_row_border_bottom_default_value', 'kenta_breeze_header_primary_navbar_row_border_bottom' );

// socials element
if ( ! function_exists( 'kenta_breeze_header_socials_icons_color_type' ) ) {
	function kenta_breeze_header_socials_icons_color_type() {
		return 'custom';
	}
}
add_filter( 'kenta_header_el_socials_icons_color_type_default_value', 'kenta_breeze_header_socials_icons_color_type' );

// icon size
if ( ! function_exists( 'kenta_breeze_icon_size' ) ) {
	function kenta_breeze_icon_size() {
		return '18px';
	}
}
add_filter( 'kenta_header_el_socials_icons_size_default_value', 'kenta_breeze_icon_size' );
add_filter( 'kenta_header_el_search_icon_button_size_default_value', 'kenta_breeze_icon_size' );
add_filter( 'kenta_header_el_trigger_icon_button_size_default_value', 'kenta_breeze_icon_size' );
add_filter( 'kenta_header_el_theme_switch_icon_button_size_default_value', 'kenta_breeze_icon_size' );
add_filter( 'kenta_header_el_cart_icon_button_size_default_value', 'kenta_breeze_icon_size' );

// button element
if ( ! function_exists( 'kenta_breeze_header_button_icon' ) ) {
	function kenta_breeze_header_button_icon() {
		return [
			'library' => 'fa-solid',
			'value'   => 'fas fa-paper-plane',
		];
	}
}
add_filter( 'kenta_header_el_button_1_arrow_default_value', 'kenta_breeze_header_button_icon' );

if ( ! function_exists( 'kenta_breeze_header_button_text' ) ) {
	function kenta_breeze_header_button_text() {
		return __( 'Subscribe', 'kenta-breeze' );
	}
}
add_filter( 'kenta_header_el_button_1_text_default_value', 'kenta_breeze_header_button_text' );

if ( ! function_exists( 'kenta_breeze_header_button_preset' ) ) {
	function kenta_breeze_header_button_preset() {
		return 'outline';
	}
}
add_filter( 'kenta_header_el_button_1_preset_default_value', 'kenta_breeze_header_button_preset' );

if ( ! function_exists( 'kenta_breeze_global_button_preset' ) ) {
	function kenta_breeze_global_button_preset() {
		return 'primary';
	}
}
add_filter( 'kenta_header_el_button_1_preset_default_value', 'kenta_breeze_global_button_preset' );
add_filter( 'kenta_header_el_button_2_preset_default_value', 'kenta_breeze_global_button_preset' );
add_filter( 'kenta_entry_read_more_preset_default_value', 'kenta_breeze_global_button_preset' );
add_filter( 'kenta_content_buttons_preset_default_value', 'kenta_breeze_global_button_preset' );
add_filter( 'kenta_related_posts_read_more_preset_default_value', 'kenta_breeze_global_button_preset' );

if ( ! function_exists( 'kenta_breeze_button_radius' ) ) {
	function kenta_breeze_button_radius() {
		return [
			'linked' => true,
			'left'   => '4px',
			'right'  => '4px',
			'top'    => '4px',
			'bottom' => '4px',
		];
	}
}
add_filter( 'kenta_header_el_button_1_radius_default_value', 'kenta_breeze_button_radius' );
add_filter( 'kenta_header_el_button_2_radius_default_value', 'kenta_breeze_button_radius' );
add_filter( 'kenta_entry_read_more_radius_default_value', 'kenta_breeze_button_radius' );
add_filter( 'kenta_content_buttons_radius_default_value', 'kenta_breeze_button_radius' );
add_filter( 'kenta_related_posts_read_more_radius_default_value', 'kenta_breeze_button_radius' );

if ( ! function_exists( 'kenta_breeze_button_shadow' ) ) {
	function kenta_breeze_button_shadow() {
		return [
			'enable'     => 'yes',
			'horizontal' => '4px',
			'vertical'   => '4px',
			'blur'       => '0px',
			'spread'     => '0px',
			'color'      => 'var(--kenta-primary-color)',
		];
	}
}
add_filter( 'kenta_header_el_button_1_shadow_active_default_value', 'kenta_breeze_button_shadow' );
add_filter( 'kenta_header_el_button_2_shadow_active_default_value', 'kenta_breeze_button_shadow' );
add_filter( 'kenta_entry_read_more_shadow_active_default_value', 'kenta_breeze_button_shadow' );
add_filter( 'kenta_content_buttons_shadow_active_default_value', 'kenta_breeze_button_shadow' );
add_filter( 'kenta_related_posts_read_more_shadow_active_default_value', 'kenta_breeze_button_shadow' );

if ( ! function_exists( 'kenta_breeze_button_preset_args' ) ) {
	function kenta_breeze_button_preset_args( $args, $id, $preset ) {
		if ( $preset !== 'ghost' ) {
			$args[ $id . 'shadow_active' ] = [
				'enable'     => 'yes',
				'horizontal' => '4px',
				'vertical'   => '4px',
				'blur'       => '0px',
				'spread'     => '0px',
				'color'      => 'var(--kenta-primary-color)',
			];

			$args[ $id . 'border' ] = [
				'style' => 'solid',
				'width' => 2,
				'color' => 'var(--kenta-accent-color)',
				'hover' => 'var(--kenta-accent-color)',
			];
		}

		if ( $preset === 'solid' ) {
			$args[ $id . 'text_color' ] = [
				'initial' => 'var(--kenta-accent-color)',
				'hover'   => 'var(--kenta-base-color)',
			];
		}
		if ( $preset === 'invert' ) {
			$args[ $id . 'text_color' ]    = [
				'initial' => 'var(--kenta-base-color)',
				'hover'   => 'var(--kenta-accent-color)',
			];
			$args[ $id . 'shadow_active' ] = [
				'enable'     => 'yes',
				'horizontal' => '4px',
				'vertical'   => '4px',
				'blur'       => '0px',
				'spread'     => '0px',
				'color'      => 'var(--kenta-accent-color)',
			];
		}
		if ( $preset === 'primary' || $preset === 'outline' ) {
			$args[ $id . 'text_color' ]    = [
				'initial' => 'var(--kenta-accent-color)',
				'hover'   => 'var(--kenta-accent-color)',
			];
			$args[ $id . 'shadow_active' ] = [
				'enable'     => 'yes',
				'horizontal' => '4px',
				'vertical'   => '4px',
				'blur'       => '0px',
				'spread'     => '0px',
				'color'      => 'var(--kenta-accent-color)',
			];
		}

		return $args;
	}
}
add_filter( 'kenta_header_el_button_1_preset_args', 'kenta_breeze_button_preset_args', 10, 3 );
add_filter( 'kenta_header_el_button_2_preset_args', 'kenta_breeze_button_preset_args', 10, 3 );
add_filter( 'kenta_entry_read_more_preset_args', 'kenta_breeze_button_preset_args', 10, 3 );
add_filter( 'kenta_content_buttons_preset_args', 'kenta_breeze_button_preset_args', 10, 3 );
add_filter( 'kenta_related_posts_read_more_preset_args', 'kenta_breeze_button_preset_args', 10, 3 );

// logo element
add_filter( 'kenta_header_el_logo_enable_site_tagline_default_value', 'kenta_breeze_return_no' );

if ( ! function_exists( 'kenta_breeze_header_logo_title_typography' ) ) {
	function kenta_breeze_header_logo_title_typography() {
		return [
			'family'        => 'inherit',
			'fontSize'      => '28px',
			'variant'       => '700',
			'lineHeight'    => '1.5',
			'textTransform' => 'uppercase',
		];
	}
}
add_filter( 'kenta_header_el_logo_site_title_typography_default_value', 'kenta_breeze_header_logo_title_typography' );

if ( ! function_exists( 'kenta_breeze_header_logo_tagline_typography' ) ) {
	function kenta_breeze_header_logo_tagline_typography() {
		return [
			'family'        => 'lato',
			'fontSize'      => '16px',
			'variant'       => '400i',
			'lineHeight'    => '1.5',
			'textTransform' => 'capitalize',
		];
	}
}
add_filter( 'kenta_header_el_logo_site_tagline_typography_default_value', 'kenta_breeze_header_logo_tagline_typography' );

if ( ! function_exists( 'kenta_breeze_header_logo_content_alignment' ) ) {
	function kenta_breeze_header_logo_content_alignment() {
		return 'center';
	}
}
add_filter( 'kenta_header_el_logo_content_alignment_default_value', 'kenta_breeze_header_logo_content_alignment' );

//menu element
if ( ! function_exists( 'kenta_creato_menu_typography' ) ) {
	function kenta_creato_menu_typography() {
		return [
			'family'        => 'inherit',
			'fontSize'      => [ 'desktop' => '0.875rem', 'tablet' => '0.875rem', 'mobile' => '0.75em' ],
			'variant'       => '600',
			'lineHeight'    => '1.5',
			'textTransform' => 'capitalize',
		];
	}
}
add_filter( 'kenta_header_el_menu_1_top_level_typography_default_value', 'kenta_creato_menu_typography' );
add_filter( 'kenta_header_el_menu_2_top_level_typography_default_value', 'kenta_creato_menu_typography' );

if ( ! function_exists( 'kenta_breeze_menu_preset' ) ) {
	function kenta_breeze_menu_preset() {
		return 'ghost';
	}
}
add_filter( 'kenta_header_el_menu_1_top_level_preset_default_value', 'kenta_breeze_menu_preset' );
add_filter( 'kenta_header_el_menu_2_top_level_preset_default_value', 'kenta_breeze_menu_preset' );

if ( ! function_exists( 'kenta_breeze_menu_radius' ) ) {
	function kenta_breeze_menu_radius() {
		return [
			'linked' => true,
			'left'   => '999px',
			'right'  => '999px',
			'top'    => '999px',
			'bottom' => '999px',
		];
	}
}
add_filter( 'kenta_header_el_menu_1_top_level_radius_default_value', 'kenta_breeze_menu_radius' );
add_filter( 'kenta_header_el_menu_2_top_level_radius_default_value', 'kenta_breeze_menu_radius' );

if ( ! function_exists( 'kenta_breeze_menu_margin' ) ) {
	function kenta_breeze_menu_margin() {
		return [
			'linked' => false,
			'top'    => '0px',
			'right'  => '6px',
			'bottom' => '0px',
			'left'   => '6px',
		];
	}
}
add_filter( 'kenta_header_el_menu_1_top_level_margin_default_value', 'kenta_breeze_menu_margin' );
add_filter( 'kenta_header_el_menu_2_top_level_margin_default_value', 'kenta_breeze_menu_margin' );

if ( ! function_exists( 'kenta_breeze_menu_dropdown_preset' ) ) {
	function kenta_breeze_menu_dropdown_preset() {
		return 'solid';
	}
}
add_filter( 'kenta_header_el_menu_1_dropdown_preset_default_value', 'kenta_breeze_menu_dropdown_preset' );
add_filter( 'kenta_header_el_menu_2_dropdown_preset_default_value', 'kenta_breeze_menu_dropdown_preset' );

if ( ! function_exists( 'kenta_breeze_menu_dropdown_preset_args' ) ) {
	function kenta_breeze_menu_dropdown_preset_args( $args, $id, $preset ) {
		$args[ $id . '_dropdown_border' ]  = [
			'width' => 2,
			'style' => 'solid',
			'color' => 'var(--kenta-base-300)',
		];
		$args[ $id . '_dropdown_divider' ] = [
			'width' => 1,
			'style' => 'solid',
			'color' => 'var(--kenta-base-300)',
		];
		$args[ $id . '_dropdown_shadow' ]  = [
			'enable'     => 'yes',
			'horizontal' => '4px',
			'vertical'   => '4px',
			'blur'       => '0px',
			'spread'     => '0px',
			'color'      => 'var(--kenta-base-300)',
		];

		return $args;
	}
}
add_filter( 'kenta_header_el_menu_1_dropdown_preset_args', 'kenta_breeze_menu_dropdown_preset_args', 10, 3 );
add_filter( 'kenta_header_el_menu_2_dropdown_preset_args', 'kenta_breeze_menu_dropdown_preset_args', 10, 3 );


//
// Footer
//
if ( ! function_exists( 'kenta_breeze_footer_middle_row_elements' ) ) {
	function kenta_breeze_footer_middle_row_elements() {
		return [
			[
				'elements' => [ 'widgets-1', 'footer-socials' ],
				'settings' => [
					'width'   => [ 'desktop' => '33.33%', 'tablet' => '100%', 'mobile' => '100%' ],
					'padding' => [ 'top' => '12px', 'right' => '12px', 'bottom' => '12px', 'left' => '12px' ]
				],
			],
			[
				'elements' => [ 'widgets-2' ],
				'settings' => [
					'width'   => [ 'desktop' => '33.33%', 'tablet' => '100%', 'mobile' => '100%' ],
					'padding' => [ 'top' => '12px', 'right' => '12px', 'bottom' => '12px', 'left' => '12px' ]
				],
			],
			[
				'elements' => [ 'widgets-4' ],
				'settings' => [
					'width'   => [ 'desktop' => '33.33%', 'tablet' => '100%', 'mobile' => '100%' ],
					'padding' => [ 'top' => '12px', 'right' => '12px', 'bottom' => '12px', 'left' => '12px' ]
				],
			]
		];
	}
}
add_filter( 'kenta_footer_middle_row_default_value', 'kenta_breeze_footer_middle_row_elements' );

if ( ! function_exists( 'kenta_breeze_footer_row_background' ) ) {
	function kenta_breeze_footer_row_background() {
		return [
			'type'  => 'color',
			'color' => 'var(--kenta-base-color)',
		];
	}
}
add_filter( 'kenta_footer_middle_row_background_default_value', 'kenta_breeze_footer_row_background' );
add_filter( 'kenta_footer_bottom_row_background_default_value', 'kenta_breeze_footer_row_background' );

if ( ! function_exists( 'kenta_breeze_footer_row_border_top' ) ) {
	function kenta_breeze_footer_row_border_top() {
		return [
			'width' => 2,
			'style' => 'solid',
			'color' => 'var(--kenta-base-300)',
		];
	}
}
add_filter( 'kenta_footer_middle_row_border_top_default_value', 'kenta_breeze_footer_row_border_top' );
add_filter( 'kenta_footer_bottom_row_border_top_default_value', 'kenta_breeze_footer_row_border_top' );

// footer logo element
if ( ! function_exists( 'kenta_breeze_footer_logo_title_typography' ) ) {
	function kenta_breeze_footer_logo_title_typography() {
		return [
			'family'        => 'inherit',
			'fontSize'      => '22px',
			'variant'       => '700',
			'lineHeight'    => '1.5',
			'textTransform' => 'uppercase',
		];
	}
}
add_filter( 'kenta_footer_el_logo_site_title_typography_default_value', 'kenta_breeze_footer_logo_title_typography' );

if ( ! function_exists( 'kenta_breeze_footer_logo_tagline_typography' ) ) {
	function kenta_breeze_footer_logo_tagline_typography() {
		return [
			'family'        => 'lato',
			'fontSize'      => '16px',
			'variant'       => '400i',
			'lineHeight'    => '1.5',
			'textTransform' => 'capitalize',
		];
	}
}
add_filter( 'kenta_footer_el_logo_site_tagline_typography_default_value', 'kenta_breeze_footer_logo_tagline_typography' );

if ( ! function_exists( 'kenta_breeze_footer_logo_content_alignment' ) ) {
	function kenta_breeze_footer_logo_content_alignment() {
		return 'center';
	}
}
add_filter( 'kenta_footer_el_logo_content_alignment_default_value', 'kenta_breeze_footer_logo_content_alignment' );

//
// Transparent header
//
if ( ! function_exists( 'kenta_breeze_trans_header_border_bottom' ) ) {
	function kenta_breeze_trans_header_border_bottom() {
		return [
			'width' => 1,
			'style' => 'none',
			'color' => 'var(--kenta-base-300)',
		];
	}
}
add_filter( 'kenta_trans_header_border_bottom_default_value', 'kenta_breeze_trans_header_border_bottom' );

//
// Preloader
//
if ( ! function_exists( 'kenta_breeze_preloader_preset' ) ) {
	function kenta_breeze_preloader_preset() {
		return 'preset-4';
	}
}
add_filter( 'kenta_preloader_preset_default_value', 'kenta_breeze_preloader_preset' );

if ( ! function_exists( 'kenta_breeze_preloader_colors' ) ) {
	function kenta_breeze_preloader_colors() {
		return [
			'background' => '#000000',
			'accent'     => '#ffffff',
			'primary'    => 'var(--kenta-primary-accent)',
		];
	}
}
add_filter( 'kenta_preloader_colors_default_value', 'kenta_breeze_preloader_colors' );

//
// Author bio
//
if ( ! function_exists( 'kenta_breeze_author_bio_background' ) ) {
	function kenta_breeze_author_bio_background() {
		return [
			'type'  => 'color',
			'color' => 'var(--kenta-base-color)'
		];
	}
}
add_filter( 'kenta_post_author_bio_background_default_value', 'kenta_breeze_author_bio_background' );

//
// Background
//
if ( ! function_exists( 'kenta_breeze_body_background' ) ) {
	function kenta_breeze_body_background() {
		return [
			'type'  => 'color',
			'color' => 'var(--kenta-base-color)'
		];
	}
}
add_filter( 'kenta_site_body_background_default_value', 'kenta_breeze_body_background' );

if ( ! function_exists( 'kenta_breeze_site_wrap_shadow' ) ) {
	function kenta_breeze_site_wrap_shadow() {
		return [
			'enable'     => 'yes',
			'horizontal' => '0px',
			'vertical'   => '0px',
			'blur'       => '0px',
			'spread'     => '1px',
			'color'      => 'var(--kenta-base-300)',
		];
	}
}
add_filter( 'kenta_site_wrap_shadow_default_value', 'kenta_breeze_site_wrap_shadow' );

add_filter( 'kenta_site_background_enable_particles_default_value', 'kenta_breeze_return_no' );

if ( ! function_exists( 'kenta_breeze_background_particles_scope' ) ) {
	function kenta_breeze_background_particles_scope() {
		return [
			'site-body'    => 'no',
			'site-content' => 'yes',
		];
	}
}
add_filter( 'kenta_site_background_particles_scope_default_value', 'kenta_breeze_background_particles_scope' );

if ( ! function_exists( 'kenta_breeze_background_particle_color' ) ) {
	function kenta_breeze_background_particle_color() {
		return [
			'particle' => 'var(--kenta-accent-color)',
			'line'     => 'var(--kenta-accent-color)',
		];
	}
}
add_filter( 'kenta_site_background_particle_color_default_value', 'kenta_breeze_background_particle_color' );

//
// Scroll to top
//
if ( ! function_exists( 'kenta_breeze_to_top_icon_size' ) ) {
	function kenta_breeze_to_top_icon_size() {
		return '18px';
	}
}
add_filter( 'kenta_to_top_icon_size_default_value', 'kenta_breeze_to_top_icon_size' );

if ( ! function_exists( 'kenta_breeze_to_top_icon_color' ) ) {
	function kenta_breeze_to_top_icon_color() {
		return [
			'initial' => 'var(--kenta-accent-color)',
			'hover'   => 'var(--kenta-accent-color)',
		];
	}
}
add_filter( 'kenta_to_top_icon_color_default_value', 'kenta_breeze_to_top_icon_color' );

if ( ! function_exists( 'kenta_breeze_to_top_background' ) ) {
	function kenta_breeze_to_top_background() {
		return [
			'initial' => 'var(--kenta-primary-color)',
			'hover'   => 'var(--kenta-primary-active)',
		];
	}
}
add_filter( 'kenta_to_top_background_default_value', 'kenta_breeze_to_top_background' );

if ( ! function_exists( 'kenta_breeze_to_top_border' ) ) {
	function kenta_breeze_to_top_border() {
		return [
			'style' => 'solid',
			'width' => 2,
			'color' => 'var(--kenta-accent-color)',
			'hover' => 'var(--kenta-accent-color)',
		];
	}
}
add_filter( 'kenta_to_top_border_default_value', 'kenta_breeze_to_top_border' );

if ( ! function_exists( 'kenta_breeze_to_top_radius' ) ) {
	function kenta_breeze_to_top_radius() {
		return [
			'top'    => '6px',
			'bottom' => '6px',
			'left'   => '6px',
			'right'  => '6px',
			'linked' => true,
		];
	}
}
add_filter( 'kenta_to_top_radius_default_value', 'kenta_breeze_to_top_radius' );

if ( ! function_exists( 'kenta_breeze_to_top_shadow' ) ) {
	function kenta_breeze_to_top_shadow() {
		return [
			'enable'     => 'no',
			'horizontal' => '4px',
			'vertical'   => '4px',
			'blur'       => '0px',
			'spread'     => '0px',
			'color'      => 'var(--kenta-accent-color)',
		];
	}
}
add_filter( 'kenta_to_top_shadow_default_value', 'kenta_breeze_to_top_shadow' );

if ( ! function_exists( 'kenta_breeze_to_top_shadow_active' ) ) {
	function kenta_breeze_to_top_shadow_active() {
		return [
			'enable'     => 'yes',
			'horizontal' => '4px',
			'vertical'   => '4px',
			'blur'       => '0px',
			'spread'     => '0px',
			'color'      => 'var(--kenta-accent-color)',
		];
	}
}
add_filter( 'kenta_to_top_shadow_active_default_value', 'kenta_breeze_to_top_shadow_active' );

//
// Cookie consent
//
if ( ! function_exists( 'kenta_breeze_cookies_consent_accept_colors' ) ) {
	function kenta_breeze_cookies_consent_accept_colors() {
		return [
			'text-initial' => 'var(--kenta-base-color)',
			'text-hover'   => 'var(--kenta-base-color)',
			'bg-initial'   => 'var(--kenta-primary-color)',
			'bg-hover'     => 'var(--kenta-primary-color)',
		];
	}
}
add_filter( 'kenta_cookies_consent_accept_colors_default_value', 'kenta_breeze_cookies_consent_accept_colors' );

if ( ! function_exists( 'kenta_breeze_cookies_consent_decline_colors' ) ) {
	function kenta_breeze_cookies_consent_decline_colors() {
		return [
			'text-initial' => 'var(--kenta-base-color)',
			'text-hover'   => 'var(--kenta-base-color)',
			'bg-initial'   => 'var(--kenta-base-300)',
			'bg-hover'     => 'var(--kenta-base-300)',
		];
	}
}
add_filter( 'kenta_cookies_consent_decline_colors_default_value', 'kenta_breeze_cookies_consent_decline_colors' );

