<?php

	$vw_blog_magazine_first_color = get_theme_mod('vw_blog_magazine_first_color');
	$video_blog_second_color = get_theme_mod('video_blog_second_color');

	$vw_blog_magazine_custom_css = '';

	if($vw_blog_magazine_first_color != false){
		$vw_blog_magazine_custom_css .='#preloader{';
			$vw_blog_magazine_custom_css .='background-color: '.esc_attr($vw_blog_magazine_first_color).';';
		$vw_blog_magazine_custom_css .='}';
	}

	if($vw_blog_magazine_first_color != false){
		$vw_blog_magazine_custom_css .='a.video_upload:hover{';
			$vw_blog_magazine_custom_css .='color: '.esc_attr($vw_blog_magazine_first_color).';';
		$vw_blog_magazine_custom_css .='}';
	}

	if($vw_blog_magazine_first_color != false || $video_blog_second_color != false){
		$vw_blog_magazine_custom_css .='.top-header, .sidebar input[type="submit"], .footer input[type="submit"], .sidebar td#today, .footer .tagcloud a:hover, .scrollup i, input[type="submit"], .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce span.onsale, nav.woocommerce-MyAccount-navigation ul li, #comments a.comment-reply-link, .sidebar .woocommerce-product-search button, .sidebar .widget_price_filter .ui-slider .ui-slider-range, .sidebar .widget_price_filter .ui-slider .ui-slider-handle, .footer .woocommerce-product-search button, .footer .widget_price_filter .ui-slider .ui-slider-range, .footer .widget_price_filter .ui-slider .ui-slider-handle, .footer .custom-social-icons i:hover, .sidebar .custom-social-icons i:hover, #video_categry button.owl-prev i:hover, #video_categry button.owl-next i:hover, .blogbutton-small, .footer-2, .pagination .current, .pagination a:hover, #comments input[type="submit"].submit, .woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover, .toggle-nav i, .sidebar .wp-block-search .wp-block-search__button, .footer .wp-block-search .wp-block-search__button,.bradcrumbs a,.bradcrumbs span,.post-categories li a, nav.navigation.posts-navigation .nav-previous a, nav.navigation.posts-navigation .nav-next a,a.added_to_cart.wc-forward,a.wc-block-components-checkout-return-to-cart-button{';
			$vw_blog_magazine_custom_css .='background: linear-gradient(to right, '.esc_attr($vw_blog_magazine_first_color).' , '.esc_attr($video_blog_second_color).');';
		$vw_blog_magazine_custom_css .='}';
	} 

	if($vw_blog_magazine_first_color != false || $video_blog_second_color != false){
		$vw_blog_magazine_custom_css .='#comments input[type="submit"].submit, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .wp-block-tag-cloud a:hover, .entry-content .wp-block-button__link, span.post-page-numbers.current, .post-nav-links a:hover, .wc-block-grid__product-onsale, .wp-block-woocommerce-cart .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button,a.added_to_cart.wc-forward{';
			$vw_blog_magazine_custom_css .='background: linear-gradient(to right, '.esc_attr($vw_blog_magazine_first_color).' , '.esc_attr($video_blog_second_color).') !important;';
		$vw_blog_magazine_custom_css .='}';
	}

	//----------------------- Second color --------------------------
	if($video_blog_second_color != false){
		$vw_blog_magazine_custom_css .='#playlist_sec .metabox:hover a, .postbox:hover h2 a, .postbox:hover .metabox a, .single-post .metabox:hover a, .imagebox h4 a:hover, .footer .wp-block-search .wp-block-search__label,.bradcrumbs a,.bradcrumbs span,.post-categories li a{';
			$vw_blog_magazine_custom_css .='color: '.esc_attr($video_blog_second_color).';';
		$vw_blog_magazine_custom_css .='}';
	}
	if($video_blog_second_color != false){
		$vw_blog_magazine_custom_css .='.woocommerce-product-details__short-description p a, .textwidget p a, .entry-content a, .sidebar p a, #comments p a, .comment-meta.commentmetadata a, .video-content h2 a:hover, .footer .wp-block-search .wp-block-search__label{';
			$vw_blog_magazine_custom_css .='color: '.esc_attr($video_blog_second_color).' !important;';
		$vw_blog_magazine_custom_css .='}';
	}
	if($video_blog_second_color != false){
		$vw_blog_magazine_custom_css .='.main-navigation ul ul, hr.big, input[type="submit"], .footer .custom-social-icons i, .sidebar .custom-social-icons i, .footer .custom-social-icons i:hover, .sidebar .custom-social-icons i:hover, a.button:hover{';
			$vw_blog_magazine_custom_css .='border-top-color: '.esc_attr($video_blog_second_color).';';
		$vw_blog_magazine_custom_css .='}';
	}
	if($video_blog_second_color != false){
		$vw_blog_magazine_custom_css .='a.button:hover{';
			$vw_blog_magazine_custom_css .='background-color: '.esc_attr($video_blog_second_color).';';
		$vw_blog_magazine_custom_css .='}';
	}


	/*---------------------------Width Layout -------------------*/

	$vw_blog_magazine_theme_lay = get_theme_mod( 'vw_blog_magazine_width_option','Full Width');
    if($vw_blog_magazine_theme_lay == 'Boxed'){
		$vw_blog_magazine_custom_css .='body{';
			$vw_blog_magazine_custom_css .='margin-right: auto !important; margin-left: auto !important;';
		$vw_blog_magazine_custom_css .='}';
		$vw_blog_magazine_custom_css .='.logo{';
			$vw_blog_magazine_custom_css .='width: 100%;';
		$vw_blog_magazine_custom_css .='}';
		$vw_blog_magazine_custom_css .='.read-btn{';
			$vw_blog_magazine_custom_css .='padding-right: 0 !important;';
		$vw_blog_magazine_custom_css .='}';
		$vw_blog_magazine_custom_css .='.top-video .row{';
			$vw_blog_magazine_custom_css .='margin-right:0px; margin-left:0px;';
		$vw_blog_magazine_custom_css .='}';
	}else if($vw_blog_magazine_theme_lay == 'Wide Width'){
		$vw_blog_magazine_custom_css .='.logo{';
			$vw_blog_magazine_custom_css .='width: 100%;';
		$vw_blog_magazine_custom_css .='}';
		$vw_blog_magazine_custom_css .='.top-video .row{';
			$vw_blog_magazine_custom_css .='margin-right:0px; margin-left:0px;';
		$vw_blog_magazine_custom_css .='}';
	}

	$video_blog_menus_item = get_theme_mod( 'vw_blog_magazine_menus_item_style','None');
    if($video_blog_menus_item == 'None'){
		$vw_blog_magazine_custom_css .='.main-navigation a{';
			$vw_blog_magazine_custom_css .='';
		$vw_blog_magazine_custom_css .='}';
	}else if($video_blog_menus_item == 'Zoom In'){
		$vw_blog_magazine_custom_css .='.main-navigation a:hover{';
			$vw_blog_magazine_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important; color:#66de93;';
		$vw_blog_magazine_custom_css .='}';
	}

	// css
	$vw_blog_magazine_section_two = get_theme_mod( 'vw_blog_magazine_section_two', '');
	if($vw_blog_magazine_section_two == false){
		$vw_blog_magazine_custom_css .='#video_categry button.owl-prev i, #video_categry button.owl-next i{';
			$vw_blog_magazine_custom_css .='display:none;';
		$vw_blog_magazine_custom_css .='}';
	}

	$video_blog_copyright_first_color = get_theme_mod('video_blog_copyright_first_color');

	$video_blog_copyright_second_color = get_theme_mod('video_blog_copyright_second_color');

	if($video_blog_copyright_first_color != false || $video_blog_copyright_second_color != false){
		$vw_blog_magazine_custom_css .='.footer-2{
		background: linear-gradient(to right, '.esc_attr($video_blog_copyright_first_color).', '.esc_attr($video_blog_copyright_second_color).');
		}';
	}

	// Header Background Color
	$video_blog_header_first_color = get_theme_mod('video_blog_header_first_color');

	$video_blog_header_second_color = get_theme_mod('video_blog_header_second_color');

	if($video_blog_header_first_color != false || $video_blog_header_second_color != false){
		$vw_blog_magazine_custom_css .='.top-header{
		background: linear-gradient(to right, '.esc_attr($video_blog_header_first_color).', '.esc_attr($video_blog_header_second_color).');
		}';
	}

	$vw_blog_magazine_footer_img_position = get_theme_mod('vw_blog_magazine_footer_img_position','center center');
	if($vw_blog_magazine_footer_img_position != false){
		$vw_blog_magazine_custom_css .='.footer{';
			$vw_blog_magazine_custom_css .='background-position: '.esc_attr($vw_blog_magazine_footer_img_position).'!important;';
		$vw_blog_magazine_custom_css .='}';
	} 

	$vw_blog_magazine_header_img_position = get_theme_mod('vw_blog_magazine_header_img_position','center top');
	if($vw_blog_magazine_header_img_position != false){
		$vw_blog_magazine_custom_css .='.top-header{';
			$vw_blog_magazine_custom_css .='background-position: '.esc_attr($vw_blog_magazine_header_img_position).'!important;';
		$vw_blog_magazine_custom_css .='}';
	}
