<?php

	/*------------ First highlight color --------------*/

	$music_recording_studio_first_color = get_theme_mod('music_recording_studio_first_color');

	$music_recording_studio_custom_css = '';

	if($music_recording_studio_first_color != false){
		$music_recording_studio_custom_css .='.header-btn a, .seemore-btn a, .abt-cont i,.post-categories li a ,.post-categories li a:hover,.post-nav-links span,.post-nav-links a,.wp-block-button__link,.wp-block-tag-cloud a:hover,.wp-block-woocommerce-cart .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .wc-block-components-totals-coupon__button,.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-onsale{';
			$music_recording_studio_custom_css .='background: '.esc_attr($music_recording_studio_first_color).' !important;';
		$music_recording_studio_custom_css .='}';
	}

	if($music_recording_studio_first_color != false){
		$music_recording_studio_custom_css .='#topbar .social-icons .widget a:hover, p.site-title a:hover, .logo h1 a:hover,.main-navigation ul li a:hover{';
			$music_recording_studio_custom_css .='color: '.esc_attr($music_recording_studio_first_color).' !important;';
		$music_recording_studio_custom_css .='}';
	}

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

	$music_recording_studio_theme_lay = get_theme_mod( 'music_recording_studio_width_option','Full Width');
    if($music_recording_studio_theme_lay == 'Boxed'){
		$music_recording_studio_custom_css .='body{';
			$music_recording_studio_custom_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
		$music_recording_studio_custom_css .='}';
		$music_recording_studio_custom_css .='.page-template-custom-home-page .main-header{';
			$music_recording_studio_custom_css .='width: 100%;';
		$music_recording_studio_custom_css .='}';
		$music_recording_studio_custom_css .='.scrollup i{';
			$music_recording_studio_custom_css .='right: 100px;';
		$music_recording_studio_custom_css .='}';
		$music_recording_studio_custom_css .='.scrollup.left i{';
			$music_recording_studio_custom_css .='left: 100px;';
		$music_recording_studio_custom_css .='}';
	}else if($music_recording_studio_theme_lay == 'Wide Width'){
		$music_recording_studio_custom_css .='body{';
			$music_recording_studio_custom_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
		$music_recording_studio_custom_css .='}';
		$music_recording_studio_custom_css .='.page-template-custom-home-page .main-header{';
			$music_recording_studio_custom_css .='width: 100%;';
		$music_recording_studio_custom_css .='}';
		$music_recording_studio_custom_css .='.scrollup i{';
			$music_recording_studio_custom_css .='right: 30px;';
		$music_recording_studio_custom_css .='}';
		$music_recording_studio_custom_css .='.scrollup.left i{';
			$music_recording_studio_custom_css .='left: 30px;';
		$music_recording_studio_custom_css .='}';
	}else if($music_recording_studio_theme_lay == 'Full Width'){
		$music_recording_studio_custom_css .='body{';
			$music_recording_studio_custom_css .='max-width: 100%;';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_header_menus_color = get_theme_mod('music_recording_studio_header_menus_color');
	if($music_recording_studio_header_menus_color != false){
		$music_recording_studio_custom_css .='.main-navigation a, .page-template-custom-home-page .main-navigation a{';
			$music_recording_studio_custom_css .='color: '.esc_attr($music_recording_studio_header_menus_color).';';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_header_menus_hover_color = get_theme_mod('music_recording_studio_header_menus_hover_color');
	if($music_recording_studio_header_menus_hover_color != false){
		$music_recording_studio_custom_css .='.main-navigation ul li a:hover{';
			$music_recording_studio_custom_css .='color: '.esc_attr($music_recording_studio_header_menus_hover_color).'!important;';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_header_submenus_color = get_theme_mod('music_recording_studio_header_submenus_color');
	if($music_recording_studio_header_submenus_color != false){
		$music_recording_studio_custom_css .='.main-navigation ul ul a{';
			$music_recording_studio_custom_css .='color: '.esc_attr($music_recording_studio_header_submenus_color).'!important;';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_header_submenus_hover_color = get_theme_mod('music_recording_studio_header_submenus_hover_color');
	if($music_recording_studio_header_submenus_hover_color != false){
		$music_recording_studio_custom_css .='.main-navigation ul.sub-menu a:hover{';
			$music_recording_studio_custom_css .='color: '.esc_attr($music_recording_studio_header_submenus_hover_color).'!important;';
		$music_recording_studio_custom_css .='}';
	}


	/*--------- Preloader Background Color  -------------------*/

	$music_recording_studio_preloader_bg_color = get_theme_mod('music_recording_studio_preloader_bg_color');
	if($music_recording_studio_preloader_bg_color != false){
		$music_recording_studio_custom_css .='#preloader{';
			$music_recording_studio_custom_css .='background-color: '.esc_attr($music_recording_studio_preloader_bg_color).';';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_preloader_border_color = get_theme_mod('music_recording_studio_preloader_border_color');
	if($music_recording_studio_preloader_border_color != false){
		$music_recording_studio_custom_css .='.loader-line{';
			$music_recording_studio_custom_css .='border-color: '.esc_attr($music_recording_studio_preloader_border_color).'!important;';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_footer_background_color = get_theme_mod('music_recording_studio_footer_background_color');
	if($music_recording_studio_footer_background_color != false){
		$music_recording_studio_custom_css .='#footer{';
			$music_recording_studio_custom_css .='background-color: '.esc_attr($music_recording_studio_footer_background_color).';';
		$music_recording_studio_custom_css .='}';
	}

	// Slider CSS
	if(get_theme_mod('music_recording_studio_slider_hide_show') == false){
		$music_recording_studio_custom_css .=' .page-template-custom-home-page .main-navigation a{';
				$music_recording_studio_custom_css .=' color: #000;';
		$music_recording_studio_custom_css .='}';
	}


	/*---------------------------Slider Height ------------*/

	$music_recording_studio_slider_height = get_theme_mod('music_recording_studio_slider_height');
	if($music_recording_studio_slider_height != false){
		$music_recording_studio_custom_css .='#slider img{';
			$music_recording_studio_custom_css .='height: '.esc_attr($music_recording_studio_slider_height).';';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_navigation_menu_font_weight = get_theme_mod('music_recording_studio_navigation_menu_font_weight','700');
	if($music_recording_studio_navigation_menu_font_weight != false){
		$music_recording_studio_custom_css .='.main-navigation a{';
			$music_recording_studio_custom_css .='font-weight: '.esc_attr($music_recording_studio_navigation_menu_font_weight).';';
		$music_recording_studio_custom_css .='}';
	}

	$music_recording_studio_theme_lay = get_theme_mod( 'music_recording_studio_menu_text_transform','Uppercase');
	if($music_recording_studio_theme_lay == 'Capitalize'){
		$music_recording_studio_custom_css .='.main-navigation a{';
			$music_recording_studio_custom_css .='text-transform:Capitalize;';
		$music_recording_studio_custom_css .='}';
	}
	if($music_recording_studio_theme_lay == 'Lowercase'){
		$music_recording_studio_custom_css .='.main-navigation a{';
			$music_recording_studio_custom_css .='text-transform:Lowercase;';
		$music_recording_studio_custom_css .='}';
	}
	if($music_recording_studio_theme_lay == 'Uppercase'){
		$music_recording_studio_custom_css .='.main-navigation a{';
			$music_recording_studio_custom_css .='text-transform:Uppercase;';
		$music_recording_studio_custom_css .='}';
	}
	// Hover on featured image //
	$music_recording_studio_show_featured = get_theme_mod( 'music_recording_studio_featured_image_hide_show', 1 );
	$music_recording_studio_hover_effect  = get_theme_mod( 'music_recording_studio_featured_image_hover', 'none' );

	if ( $music_recording_studio_show_featured && $music_recording_studio_hover_effect !== 'none' ) {

		$music_recording_studio_custom_css .= '
		.music-recording-studio-featured-image img{
			transition: all 0.4s ease;
		}';

		if ( $music_recording_studio_hover_effect === 'zoom-in' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image:hover img{
				transform: scale(1.2);
			}';
		}

		if ( $music_recording_studio_hover_effect === 'zoom-out' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image img{
				transform: scale(1.2);
			}
			.music-recording-studio-featured-image:hover img{
				transform: scale(1);
			}';
		}

		if ( $music_recording_studio_hover_effect === 'grayscale' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image img{
				filter: grayscale(100%);
			}
			.music-recording-studio-featured-image:hover img{
				filter: grayscale(0);
			}';
		}

		if ( $music_recording_studio_hover_effect === 'sepia' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image:hover img{
				filter: sepia(100%);
			}';
		}

		if ( $music_recording_studio_hover_effect === 'blur' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image:hover img{
				filter: blur(3px);
			}';
		}

		if ( $music_recording_studio_hover_effect === 'bright' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image:hover img{
				filter: brightness(1.3);
			}';
		}

		if ( $music_recording_studio_hover_effect === 'translate' ) {
			$music_recording_studio_custom_css .= '
			.music-recording-studio-featured-image:hover img{
				transform: translateY(-10px);
			}';
		}
	}
