<?php

  $beauty_cosmetic_shop_color_palette_css = '';

	// Global Color

	$beauty_cosmetic_shop_first_color = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_first_color', '#de9628' );

	if($beauty_cosmetic_shop_first_color != false){
		$beauty_cosmetic_shop_color_palette_css .=':root {';
			$beauty_cosmetic_shop_color_palette_css .='--primary-color: '.esc_attr($beauty_cosmetic_shop_first_color).'!important;';
		$beauty_cosmetic_shop_color_palette_css .='}';
	}


  /*-------------- Copyright Text Align-------------------*/

	$beauty_cosmetic_shop_copyright_text_align = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_copyright_text_align');
	$beauty_cosmetic_shop_color_palette_css .='.site-footer{';
	$beauty_cosmetic_shop_color_palette_css .='text-align: '.esc_attr($beauty_cosmetic_shop_copyright_text_align).' !important;';
	$beauty_cosmetic_shop_color_palette_css .='}';
	$beauty_cosmetic_shop_color_palette_css .='
	@media screen and (max-width:575px) {
	.site-footer{';
	$beauty_cosmetic_shop_color_palette_css .='text-align: center !important;';
	$beauty_cosmetic_shop_color_palette_css .='} }';

  // copyright font size
	$beauty_cosmetic_shop_copyright_text_font_size = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_copyright_text_font_size');
	$beauty_cosmetic_shop_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$beauty_cosmetic_shop_color_palette_css .='font-size: '.esc_attr($beauty_cosmetic_shop_copyright_text_font_size).'px;';
	$beauty_cosmetic_shop_color_palette_css .='}';

	// Copyright Background Color
	$beauty_cosmetic_shop_copyright_background_color = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_copyright_background_color');
	$beauty_cosmetic_shop_color_palette_css .='#colophon {';
	$beauty_cosmetic_shop_color_palette_css .='background: '.esc_attr($beauty_cosmetic_shop_copyright_background_color);
	$beauty_cosmetic_shop_color_palette_css .='}';

	// Copyright Text Color
	$beauty_cosmetic_shop_copyright_text_color = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_copyright_text_color');
	$beauty_cosmetic_shop_color_palette_css .='#colophon a , #colophon{';
	$beauty_cosmetic_shop_color_palette_css .='color: '.esc_attr($beauty_cosmetic_shop_copyright_text_color);
	$beauty_cosmetic_shop_color_palette_css .='}';

	// Site title And tagline Option
	$beauty_cosmetic_shop_site_title_font_size = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_site_title_font_size');
	$beauty_cosmetic_shop_site_title_color = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_site_title_color');
	$beauty_cosmetic_shop_color_palette_css .='.site-title>a , .site-title {';
		$beauty_cosmetic_shop_color_palette_css .='font-size: '.esc_attr($beauty_cosmetic_shop_site_title_font_size).'px;';
		$beauty_cosmetic_shop_color_palette_css .='color: '.esc_attr($beauty_cosmetic_shop_site_title_color).';';
	$beauty_cosmetic_shop_color_palette_css .='}';
	
	$beauty_cosmetic_shop_site_tagline_font_size = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_site_tagline_font_size');
	if($beauty_cosmetic_shop_site_tagline_font_size != false){
		$beauty_cosmetic_shop_color_palette_css .='.site-description {';
			$beauty_cosmetic_shop_color_palette_css .='font-size: '.esc_attr($beauty_cosmetic_shop_site_tagline_font_size).'px;';
		$beauty_cosmetic_shop_color_palette_css .='}';
	}

	//First Cap
	$beauty_cosmetic_shop_show_first_caps = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_show_first_caps', false);
	if($beauty_cosmetic_shop_show_first_caps == 'true' ){
	$beauty_cosmetic_shop_color_palette_css .='.blog-content .text-content p:nth-of-type(1)::first-letter{';
	$beauty_cosmetic_shop_color_palette_css .=' font-size: 50px; font-weight: 600;';
	$beauty_cosmetic_shop_color_palette_css .=' margin-right: 5px;';
	$beauty_cosmetic_shop_color_palette_css .=' line-height: 1;';
	$beauty_cosmetic_shop_color_palette_css .='}';
	}elseif($beauty_cosmetic_shop_show_first_caps == 'false' ){
	$beauty_cosmetic_shop_color_palette_css .='.blog-content .text-content p:nth-of-type(1)::first-letter {';
	$beauty_cosmetic_shop_color_palette_css .='display: none;';
	$beauty_cosmetic_shop_color_palette_css .='}';
	}

	// preloader background image
	$beauty_cosmetic_shop_show_preloader_background_image = beauty_cosmetic_shop_get_option('beauty_cosmetic_shop_show_preloader_background_image');
	if($beauty_cosmetic_shop_show_preloader_background_image != false){
		$beauty_cosmetic_shop_color_palette_css .='#preloader {';
			$beauty_cosmetic_shop_color_palette_css .='background: url('.esc_attr($beauty_cosmetic_shop_show_preloader_background_image).');-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;';
		$beauty_cosmetic_shop_color_palette_css .='}';
	}

	// Sticky Copyright
    $beauty_cosmetic_shop_resp_stickycopyright = beauty_cosmetic_shop_get_option( 'beauty_cosmetic_shop_stickycopyright_hide_show',false);
    if( beauty_cosmetic_shop_get_option( 'beauty_cosmetic_shop_copyright_sticky',false) != true){
        $beauty_cosmetic_shop_color_palette_css  .='.copyright-sticky{';
            $beauty_cosmetic_shop_color_palette_css  .='position:static;';
        $beauty_cosmetic_shop_color_palette_css  .='} ';
    }  
	
	/* Featured Image Hover Effect */
	$beauty_cosmetic_shop_hover_effect = beauty_cosmetic_shop_get_option( 'beauty_cosmetic_shop_featured_image_hover', 'none' );

	if ( $beauty_cosmetic_shop_hover_effect !== 'none' ) {

		$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img{';
		$beauty_cosmetic_shop_color_palette_css .= 'transition: all 0.4s ease-in-out;';
		$beauty_cosmetic_shop_color_palette_css .= '}';

		switch ( $beauty_cosmetic_shop_hover_effect ) {

			case 'zoom-in':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{transform:scale(1.2);}';
			break;

			case 'zoom-out':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img{transform:scale(1.2);}';
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{transform:scale(1);}';
			break;

			case 'scale':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{transform:scale(1.1);}';
			break;

			case 'grayscale':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img{filter:grayscale(100%);}';
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{filter:grayscale(0);}';
			break;

			case 'sepia':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{filter:sepia(100%);}';
			break;

			case 'blur':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{filter:blur(3px);}';
			break;

			case 'bright':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{filter:brightness(1.3);}';
			break;

			case 'translate':
				$beauty_cosmetic_shop_color_palette_css .= '.blog-post-img:hover{transform:translateY(-10px);}';
			break;
		}
	}

	/* Product Featured Image Hover Effect */
	$beauty_cosmetic_shop_hover_effect = beauty_cosmetic_shop_get_option( 'beauty_cosmetic_shop_product_featured_image_hover', 'none' );

	if ( $beauty_cosmetic_shop_hover_effect !== 'none' ) {

		$beauty_cosmetic_shop_color_palette_css .= '.product-img{';
		$beauty_cosmetic_shop_color_palette_css .= 'transition: all 0.4s ease-in-out;';
		$beauty_cosmetic_shop_color_palette_css .= '}';

		switch ( $beauty_cosmetic_shop_hover_effect ) {

			case 'zoom-in':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{transform:scale(1.2);}';
			break;

			case 'zoom-out':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img{transform:scale(1.2);}';
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{transform:scale(1);}';
			break;

			case 'scale':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{transform:scale(1.1);}';
			break;

			case 'grayscale':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img{filter:grayscale(100%);}';
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{filter:grayscale(0);}';
			break;

			case 'sepia':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{filter:sepia(100%);}';
			break;

			case 'blur':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{filter:blur(3px);}';
			break;

			case 'bright':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{filter:brightness(1.3);}';
			break;

			case 'translate':
				$beauty_cosmetic_shop_color_palette_css .= '.product-img:hover{transform:translateY(-10px);}';
			break;
		}
	}