<?php

	$gamers_hub_tp_color_option = get_theme_mod('gamers_hub_tp_color_option');
	$gamers_hub_tp_color_option_link = get_theme_mod('gamers_hub_tp_color_option_link');
	$gamers_hub_tp_preloader_color1_option = get_theme_mod('gamers_hub_tp_preloader_color1_option');
	$gamers_hub_tp_preloader_color2_option = get_theme_mod('gamers_hub_tp_preloader_color2_option');
	$gamers_hub_tp_preloader_bg_color_option = get_theme_mod('gamers_hub_tp_preloader_bg_color_option');
	$gamers_hub_tp_footer_bg_color_option = get_theme_mod('gamers_hub_tp_footer_bg_color_option');

	$gamers_hub_tp_theme_css = '';

	// 1st color
	$gamers_hub_tp_color_option = get_theme_mod('gamers_hub_tp_color_option', '#5de6dc');
	if ($gamers_hub_tp_color_option) {
		$gamers_hub_tp_theme_css .= ':root {';
		$gamers_hub_tp_theme_css .= '--color-primary1: ' . esc_attr($gamers_hub_tp_color_option) . ';';
		$gamers_hub_tp_theme_css .= '}';
	}
	
	//link 
	if($gamers_hub_tp_color_option_link != false){
		$gamers_hub_tp_theme_css .='a:hover,#theme-sidebar a:hover ,.social-media i:hover,#footer a:hover, .post_tag a:hover, #theme-sidebar .widget_tag_cloud a:hover,#footer .tagcloud a:hover, #footer p.wp-block-tag-cloud a:hover {';
			$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_tp_color_option_link).';';
		$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_color_option_link != false){
	$gamers_hub_tp_theme_css .='.prev.page-numbers:focus, .prev.page-numbers:hover, .next.page-numbers:focus, .next.page-numbers:hover,span.meta-nav:hover, #comments input[type="submit"]:hover,.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, #footer button[type="submit"]:hover, #theme-sidebar button[type="submit"]:hover,.book-tkt-btn a.register-btn:hover,.more-btn a:hover,.book-tkt-btn a.bar-btn i:hover, .log-btn a:hover,.wc-block-cart__submit-container a:hover{';
		$gamers_hub_tp_theme_css .='background: '.esc_attr($gamers_hub_tp_color_option_link).';';
	$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_color_option_link != false){
		$gamers_hub_tp_theme_css .='#footer .tagcloud a:hover,.search_inner form.search-form,.post_tag a:hover, #theme-sidebar .widget_tag_cloud a:hover,.readmore-btn a:hover,#footer .tagcloud a:hover, #footer p.wp-block-tag-cloud a:hover {';
			$gamers_hub_tp_theme_css .='border-color: '.esc_attr($gamers_hub_tp_color_option_link).';';
		$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_preloader_color1_option != false){
		$gamers_hub_tp_theme_css .='.center1{';
			$gamers_hub_tp_theme_css .='border-color: '.esc_attr($gamers_hub_tp_preloader_color1_option).' !important;';
		$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_preloader_color1_option != false){
		$gamers_hub_tp_theme_css .='.center1 .ring::before{';
			$gamers_hub_tp_theme_css .='background: '.esc_attr($gamers_hub_tp_preloader_color1_option).' !important;';
		$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_preloader_color2_option != false){
		$gamers_hub_tp_theme_css .='.center2{';
			$gamers_hub_tp_theme_css .='border-color: '.esc_attr($gamers_hub_tp_preloader_color2_option).' !important;';
		$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_preloader_color2_option != false){
		$gamers_hub_tp_theme_css .='.center2 .ring::before{';
			$gamers_hub_tp_theme_css .='background: '.esc_attr($gamers_hub_tp_preloader_color2_option).' !important;';
		$gamers_hub_tp_theme_css .='}';
	}
	if($gamers_hub_tp_preloader_bg_color_option != false){
		$gamers_hub_tp_theme_css .='.loader{';
			$gamers_hub_tp_theme_css .='background: '.esc_attr($gamers_hub_tp_preloader_bg_color_option).';';
		$gamers_hub_tp_theme_css .='}';
	}

	if($gamers_hub_tp_footer_bg_color_option != false){
		$gamers_hub_tp_theme_css .='#footer{';
			$gamers_hub_tp_theme_css .='background: '.esc_attr($gamers_hub_tp_footer_bg_color_option).';';
		$gamers_hub_tp_theme_css .='}';
	}

// logo tagline color
$gamers_hub_site_tagline_color = get_theme_mod('gamers_hub_site_tagline_color');

if($gamers_hub_site_tagline_color != false){
$gamers_hub_tp_theme_css .='.logo h1 a, .logo p.site-title a{';
$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_site_tagline_color).';';
$gamers_hub_tp_theme_css .='}';
}

$gamers_hub_logo_tagline_color = get_theme_mod('gamers_hub_logo_tagline_color');
if($gamers_hub_logo_tagline_color != false){
$gamers_hub_tp_theme_css .='.logo p.site-description{';
$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_logo_tagline_color).';';
$gamers_hub_tp_theme_css .='}';
}

// footer widget title color
$gamers_hub_footer_widget_title_color = get_theme_mod('gamers_hub_footer_widget_title_color');
if($gamers_hub_footer_widget_title_color != false){
$gamers_hub_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_footer_widget_title_color).';';
$gamers_hub_tp_theme_css .='}';
}

// copyright text color
$gamers_hub_footer_copyright_text_color = get_theme_mod('gamers_hub_footer_copyright_text_color');
if($gamers_hub_footer_copyright_text_color != false){
$gamers_hub_tp_theme_css .='#footer .site-info p, #footer .site-info a {';
$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_footer_copyright_text_color).';';
$gamers_hub_tp_theme_css .='}';
}

// header image title color
$gamers_hub_header_image_title_text_color = get_theme_mod('gamers_hub_header_image_title_text_color');
if($gamers_hub_header_image_title_text_color != false){
$gamers_hub_tp_theme_css .='.box-text h2{';
$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_header_image_title_text_color).';';
$gamers_hub_tp_theme_css .='}';
}

// menu color
$gamers_hub_menu_color = get_theme_mod('gamers_hub_menu_color');
if($gamers_hub_menu_color != false){
$gamers_hub_tp_theme_css .='.main-navigation a{';
$gamers_hub_tp_theme_css .='color: '.esc_attr($gamers_hub_menu_color).';';
$gamers_hub_tp_theme_css .='}';
}

//Footer Font Weight
$gamers_hub_footer_copyright_title_font_weight = get_theme_mod( 'gamers_hub_footer_copyright_title_font_weight','');
if($gamers_hub_footer_copyright_title_font_weight == '100'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 100;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '200'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 200;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '300'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 300;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '400'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 400;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '500'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 500;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '600'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 600;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '700'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 700;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '800'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 800;';
$gamers_hub_tp_theme_css .='}';
}else if($gamers_hub_footer_copyright_title_font_weight == '900'){
$gamers_hub_tp_theme_css .='#footer .site-info p {';
    $gamers_hub_tp_theme_css .='font-weight: 900;';
$gamers_hub_tp_theme_css .='}';
}