<?php

$videographer_studio_tp_theme_css = '';

//theme color
$videographer_studio_tp_color_option = get_theme_mod('videographer_studio_tp_color_option');

// 1st color
$videographer_studio_tp_color_option = get_theme_mod('videographer_studio_tp_color_option', '#bb27f0');
if ($videographer_studio_tp_color_option) {
	$videographer_studio_tp_theme_css .= ':root {';
	$videographer_studio_tp_theme_css .= '--color-primary1: ' . esc_attr($videographer_studio_tp_color_option) . ';';
	$videographer_studio_tp_theme_css .= '}';
}

// secoundary theme color
$videographer_studio_tp_Secoundary_color_option = get_theme_mod('videographer_studio_tp_Secoundary_color_option');

$videographer_studio_tp_Secoundary_color_option = get_theme_mod('videographer_studio_tp_Secoundary_color_option', 'var(--color-primary2)');
if ($videographer_studio_tp_Secoundary_color_option) {
	$videographer_studio_tp_theme_css .= ':root {';
	$videographer_studio_tp_theme_css .= '--color-primary2: ' . esc_attr($videographer_studio_tp_Secoundary_color_option) . ';';
	$videographer_studio_tp_theme_css .= '}';
}

//3rd color
$videographer_studio_tp_color_option_link = get_theme_mod('videographer_studio_tp_color_option_link', '#f0b727');
if ($videographer_studio_tp_color_option_link) {
	$videographer_studio_tp_theme_css .= ':root {';
	$videographer_studio_tp_theme_css .= '--color-primary3: ' . esc_attr($videographer_studio_tp_color_option_link) . ';';
	$videographer_studio_tp_theme_css .= '}';
}


//preloader

$videographer_studio_tp_preloader_color1_option = get_theme_mod('videographer_studio_tp_preloader_color1_option');
$videographer_studio_tp_preloader_color2_option = get_theme_mod('videographer_studio_tp_preloader_color2_option');
$videographer_studio_tp_preloader_bg_color_option = get_theme_mod('videographer_studio_tp_preloader_bg_color_option');

if($videographer_studio_tp_preloader_color1_option != false){
$videographer_studio_tp_theme_css .='.center1{';
	$videographer_studio_tp_theme_css .='border-color: '.esc_attr($videographer_studio_tp_preloader_color1_option).' !important;';
$videographer_studio_tp_theme_css .='}';
}
if($videographer_studio_tp_preloader_color1_option != false){
$videographer_studio_tp_theme_css .='.center1 .ring::before{';
	$videographer_studio_tp_theme_css .='background: '.esc_attr($videographer_studio_tp_preloader_color1_option).' !important;';
$videographer_studio_tp_theme_css .='}';
}
if($videographer_studio_tp_preloader_color2_option != false){
$videographer_studio_tp_theme_css .='.center2{';
	$videographer_studio_tp_theme_css .='border-color: '.esc_attr($videographer_studio_tp_preloader_color2_option).' !important;';
$videographer_studio_tp_theme_css .='}';
}
if($videographer_studio_tp_preloader_color2_option != false){
$videographer_studio_tp_theme_css .='.center2 .ring::before{';
	$videographer_studio_tp_theme_css .='background: '.esc_attr($videographer_studio_tp_preloader_color2_option).' !important;';
$videographer_studio_tp_theme_css .='}';
}
if($videographer_studio_tp_preloader_bg_color_option != false){
$videographer_studio_tp_theme_css .='.loader{';
	$videographer_studio_tp_theme_css .='background: '.esc_attr($videographer_studio_tp_preloader_bg_color_option).';';
$videographer_studio_tp_theme_css .='}';
}

// footer-bg-color
$videographer_studio_tp_footer_bg_color_option = get_theme_mod('videographer_studio_tp_footer_bg_color_option');

if($videographer_studio_tp_footer_bg_color_option != false){
$videographer_studio_tp_theme_css .='#footer{';
	$videographer_studio_tp_theme_css .='background: '.esc_attr($videographer_studio_tp_footer_bg_color_option).' !important;';
$videographer_studio_tp_theme_css .='}';
}

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

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

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

// footer widget title color
$videographer_studio_footer_widget_title_color = get_theme_mod('videographer_studio_footer_widget_title_color');
if($videographer_studio_footer_widget_title_color != false){
$videographer_studio_tp_theme_css .='#footer h3{';
$videographer_studio_tp_theme_css .='color: '.esc_attr($videographer_studio_footer_widget_title_color).';';
$videographer_studio_tp_theme_css .='}';
}

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


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

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