<?php

  $unique_fun_center_color_palette_css = '';

	// Global Color

	$unique_fun_center_first_color = unique_fun_center_get_option('unique_fun_center_first_color');
	$unique_fun_center_second_color = unique_fun_center_get_option('unique_fun_center_second_color');

	if($unique_fun_center_first_color != false){
		$unique_fun_center_color_palette_css .=':root {';
			$unique_fun_center_color_palette_css .='--primary-color: '.esc_attr($unique_fun_center_first_color).'!important;';
			$unique_fun_center_color_palette_css .='--secondary-color: '.esc_attr($unique_fun_center_second_color).'!important;';
		$unique_fun_center_color_palette_css .='}';
	}

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

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

  // Copyright Font Size
	$unique_fun_center_copyright_text_font_size = unique_fun_center_get_option('unique_fun_center_copyright_text_font_size');
	$unique_fun_center_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$unique_fun_center_color_palette_css .='font-size: '.esc_attr($unique_fun_center_copyright_text_font_size).'px;';
	$unique_fun_center_color_palette_css .='}';

	// Copyright Background Color
	$unique_fun_center_copyright_background_color = unique_fun_center_get_option('unique_fun_center_copyright_background_color');
	$unique_fun_center_color_palette_css .='#colophon {';
	$unique_fun_center_color_palette_css .='background: '.esc_attr($unique_fun_center_copyright_background_color);
	$unique_fun_center_color_palette_css .='}';

	// Copyright Text Color
	$unique_fun_center_copyright_text_color = unique_fun_center_get_option('unique_fun_center_copyright_text_color');
	$unique_fun_center_color_palette_css .='#colophon a , #colophon{';
	$unique_fun_center_color_palette_css .='color: '.esc_attr($unique_fun_center_copyright_text_color);
	$unique_fun_center_color_palette_css .='}';


	// Site title And tagline Option

	$unique_fun_center_site_title_font_size = unique_fun_center_get_option('unique_fun_center_site_title_font_size');
	$unique_fun_center_site_title_color = unique_fun_center_get_option('unique_fun_center_site_title_color');
	$unique_fun_center_color_palette_css .='.site-title>a , .site-title {';
		$unique_fun_center_color_palette_css .='font-size: '.esc_attr($unique_fun_center_site_title_font_size).'px;';
		$unique_fun_center_color_palette_css .='color: '.esc_attr($unique_fun_center_site_title_color).';';
	$unique_fun_center_color_palette_css .='}';
	
	$unique_fun_center_site_tagline_font_size = unique_fun_center_get_option('unique_fun_center_site_tagline_font_size');
	if($unique_fun_center_site_tagline_font_size != false){
		$unique_fun_center_color_palette_css .='.site-description {';
			$unique_fun_center_color_palette_css .='font-size: '.esc_attr($unique_fun_center_site_tagline_font_size).'px;';
		$unique_fun_center_color_palette_css .='}';
	}

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

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

	/* Featured Image Hover Effect */
	$unique_fun_center_hover_effect = unique_fun_center_get_option( 'unique_fun_center_featured_image_hover', 'none' );

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

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

		switch ( $unique_fun_center_hover_effect ) {

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

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

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

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

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

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

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

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

	/* Product Featured Image Hover Effect */
	$unique_fun_center_hover_effect = unique_fun_center_get_option( 'unique_fun_center_product_featured_image_hover', 'none' );

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

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

		switch ( $unique_fun_center_hover_effect ) {

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

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

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

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

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

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

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

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