<?php

  $unique_restaurant_color_palette_css = '';

  $unique_restaurant_first_color = unique_restaurant_get_option('unique_restaurant_first_color');

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

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

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

  // copyright font size
	$unique_restaurant_copyright_text_font_size = unique_restaurant_get_option('unique_restaurant_copyright_text_font_size');
	$unique_restaurant_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$unique_restaurant_color_palette_css .='font-size: '.esc_attr($unique_restaurant_copyright_text_font_size).'px;';
	$unique_restaurant_color_palette_css .='}';

	// Copyright Background Color
	$unique_restaurant_copyright_background_color = unique_restaurant_get_option('unique_restaurant_copyright_background_color');
	$unique_restaurant_color_palette_css .='#colophon {';
	$unique_restaurant_color_palette_css .='background: '.esc_attr($unique_restaurant_copyright_background_color);
	$unique_restaurant_color_palette_css .='}';

	// Copyright Text Color
	$unique_restaurant_copyright_text_color = unique_restaurant_get_option('unique_restaurant_copyright_text_color');
	$unique_restaurant_color_palette_css .='#colophon a , #colophon{';
	$unique_restaurant_color_palette_css .='color: '.esc_attr($unique_restaurant_copyright_text_color);
	$unique_restaurant_color_palette_css .='}';

	// Site title And tagline Option
	$unique_restaurant_site_title_font_size = unique_restaurant_get_option('unique_restaurant_site_title_font_size');
	$unique_restaurant_site_title_color = unique_restaurant_get_option('unique_restaurant_site_title_color');
	$unique_restaurant_color_palette_css .='.site-title>a , .site-title {';
		$unique_restaurant_color_palette_css .='font-size: '.esc_attr($unique_restaurant_site_title_font_size).'px;';
		$unique_restaurant_color_palette_css .='color: '.esc_attr($unique_restaurant_site_title_color).';';
	$unique_restaurant_color_palette_css .='}';
	
	$unique_restaurant_site_tagline_font_size = unique_restaurant_get_option('unique_restaurant_site_tagline_font_size');
	if($unique_restaurant_site_tagline_font_size != false){
		$unique_restaurant_color_palette_css .='.site-description {';
			$unique_restaurant_color_palette_css .='font-size: '.esc_attr($unique_restaurant_site_tagline_font_size).'px;';
		$unique_restaurant_color_palette_css .='}';
	}

	// Sticky Copyright
    $unique_restaurant_resp_stickycopyright = unique_restaurant_get_option( 'unique_restaurant_stickycopyright_hide_show',false);
    if($unique_restaurant_resp_stickycopyright == true && unique_restaurant_get_option( 'unique_restaurant_copyright_sticky',false) != true){
        $unique_restaurant_color_palette_css  .='.copyright-sticky{';
            $unique_restaurant_color_palette_css  .='position:static;';
        $unique_restaurant_color_palette_css  .='} ';
    } 
	
	/* Featured Image Hover Effect */
	$unique_restaurant_hover_effect = unique_restaurant_get_option( 'unique_restaurant_featured_image_hover', 'none' );

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

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

		switch ( $unique_restaurant_hover_effect ) {

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

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

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

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

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

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

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

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

	/* Product Featured Image Hover Effect */
	$unique_restaurant_hover_effect = unique_restaurant_get_option( 'unique_restaurant_product_featured_image_hover', 'none' );

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

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

		switch ( $unique_restaurant_hover_effect ) {

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

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

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

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

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

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

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

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