<?php

  $medical_clinic_center_color_palette_css = '';

	// Global Color

	$medical_clinic_center_first_color = medical_clinic_center_get_option('medical_clinic_center_first_color', '#42c2c9' );

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

	$medical_clinic_center_color_palette_css .='}';

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

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

	// Footer Background Color
	$medical_clinic_center_footer_background_color = medical_clinic_center_get_option('medical_clinic_center_footer_background_color');
	$medical_clinic_center_color_palette_css .='#footer-widgets {';
	$medical_clinic_center_color_palette_css .='background-color: '.esc_attr($medical_clinic_center_footer_background_color);
	$medical_clinic_center_color_palette_css .='}';

  // copyright font size
	$medical_clinic_center_copyright_text_font_size = medical_clinic_center_get_option('medical_clinic_center_copyright_text_font_size');
	$medical_clinic_center_color_palette_css .='#colophon p, #colophon a , #colophon{';
	$medical_clinic_center_color_palette_css .='font-size: '.esc_attr($medical_clinic_center_copyright_text_font_size).'px;';
	$medical_clinic_center_color_palette_css .='}';

	// Copyright Background Color
	$medical_clinic_center_copyright_background_color = medical_clinic_center_get_option('medical_clinic_center_copyright_background_color');
	$medical_clinic_center_color_palette_css .='#colophon {';
	$medical_clinic_center_color_palette_css .='background: '.esc_attr($medical_clinic_center_copyright_background_color);
	$medical_clinic_center_color_palette_css .='}';

	// Copyright Text Color
	$medical_clinic_center_copyright_text_color = medical_clinic_center_get_option('medical_clinic_center_copyright_text_color');
	$medical_clinic_center_color_palette_css .='#colophon a , #colophon{';
	$medical_clinic_center_color_palette_css .='color: '.esc_attr($medical_clinic_center_copyright_text_color);
	$medical_clinic_center_color_palette_css .='}';

	// Site title And tagline Option
	$medical_clinic_center_site_title_font_size = medical_clinic_center_get_option('medical_clinic_center_site_title_font_size');
	$medical_clinic_center_site_title_color = medical_clinic_center_get_option('medical_clinic_center_site_title_color');
	$medical_clinic_center_color_palette_css .='.site-title>a , .site-title {';
		$medical_clinic_center_color_palette_css .='font-size: '.esc_attr($medical_clinic_center_site_title_font_size).'px;';
		$medical_clinic_center_color_palette_css .='color: '.esc_attr($medical_clinic_center_site_title_color).';';
	$medical_clinic_center_color_palette_css .='}';
	
	$medical_clinic_center_site_tagline_font_size = medical_clinic_center_get_option('medical_clinic_center_site_tagline_font_size');
	if($medical_clinic_center_site_tagline_font_size != false){
		$medical_clinic_center_color_palette_css .='.site-description {';
			$medical_clinic_center_color_palette_css .='font-size: '.esc_attr($medical_clinic_center_site_tagline_font_size).'px;';
		$medical_clinic_center_color_palette_css .='}';
	}

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

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

	// Sticky Copyright
	$medical_clinic_center_resp_stickycopyright = medical_clinic_center_get_option( 'medical_clinic_center_stickycopyright_hide_show',false);
    if($medical_clinic_center_resp_stickycopyright == true && medical_clinic_center_get_option( 'medical_clinic_center_copyright_sticky',false) != true){
        $medical_clinic_center_color_palette_css  .='.copyright-sticky{';
            $medical_clinic_center_color_palette_css  .='position:static;';
        $medical_clinic_center_color_palette_css  .='} ';
    }

	/* Featured Image Hover Effect */
	$medical_clinic_center_hover_effect = medical_clinic_center_get_option( 'medical_clinic_center_featured_image_hover', 'none' );

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

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

		switch ( $medical_clinic_center_hover_effect ) {

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

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

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

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

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

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

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

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

	/* Product Featured Image Hover Effect */
	$medical_clinic_center_hover_effect = medical_clinic_center_get_option( 'medical_clinic_center_product_featured_image_hover', 'none' );

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

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

		switch ( $medical_clinic_center_hover_effect ) {

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

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

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

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

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

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

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

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