<?php

$film_maker_lite_tp_theme_css = '';

//theme color
$film_maker_lite_tp_color_option = get_theme_mod('film_maker_lite_tp_color_option');
// 1st color
$film_maker_lite_tp_color_option = get_theme_mod('film_maker_lite_tp_color_option', '#e50914');
if ($film_maker_lite_tp_color_option) {
    $film_maker_lite_tp_theme_css .= ':root {';
    $film_maker_lite_tp_theme_css .= '--color-primary1: ' . esc_attr($film_maker_lite_tp_color_option) . ';';
    $film_maker_lite_tp_theme_css .= '}';
}

//menu font size
$film_maker_lite_menu_font_size = get_theme_mod('film_maker_lite_menu_font_size', 15);{
$film_maker_lite_tp_theme_css .='.main-navigation a{';
	$film_maker_lite_tp_theme_css .='font-size: '.esc_attr($film_maker_lite_menu_font_size).'px;';
$film_maker_lite_tp_theme_css .='}';
}

// menu text tranform
$film_maker_lite_menu_text_tranform = get_theme_mod( 'film_maker_lite_menu_text_tranform','');
if($film_maker_lite_menu_text_tranform == 'Uppercase'){
$film_maker_lite_tp_theme_css .='.main-navigation a {';
	$film_maker_lite_tp_theme_css .='text-transform: uppercase;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_text_tranform == 'Lowercase'){
$film_maker_lite_tp_theme_css .='.main-navigation a {';
	$film_maker_lite_tp_theme_css .='text-transform: lowercase;';
$film_maker_lite_tp_theme_css .='}';
}
else if($film_maker_lite_menu_text_tranform == 'Capitalize'){
$film_maker_lite_tp_theme_css .='.main-navigation a {';
	$film_maker_lite_tp_theme_css .='text-transform: capitalize;';
$film_maker_lite_tp_theme_css .='}';
}

//preloader

$film_maker_lite_tp_preloader_color1_option = get_theme_mod('film_maker_lite_tp_preloader_color1_option');
$film_maker_lite_tp_preloader_color2_option = get_theme_mod('film_maker_lite_tp_preloader_color2_option');
$film_maker_lite_tp_preloader_bg_color_option = get_theme_mod('film_maker_lite_tp_preloader_bg_color_option');

if($film_maker_lite_tp_preloader_color1_option != false){
$film_maker_lite_tp_theme_css .='.center1{';
	$film_maker_lite_tp_theme_css .='border-color: '.esc_attr($film_maker_lite_tp_preloader_color1_option).' !important;';
$film_maker_lite_tp_theme_css .='}';
}
if($film_maker_lite_tp_preloader_color1_option != false){
$film_maker_lite_tp_theme_css .='.center1 .ring::before{';
	$film_maker_lite_tp_theme_css .='background: '.esc_attr($film_maker_lite_tp_preloader_color1_option).' !important;';
$film_maker_lite_tp_theme_css .='}';
}
if($film_maker_lite_tp_preloader_color2_option != false){
$film_maker_lite_tp_theme_css .='.center2{';
	$film_maker_lite_tp_theme_css .='border-color: '.esc_attr($film_maker_lite_tp_preloader_color2_option).' !important;';
$film_maker_lite_tp_theme_css .='}';
}
if($film_maker_lite_tp_preloader_color2_option != false){
$film_maker_lite_tp_theme_css .='.center2 .ring::before{';
	$film_maker_lite_tp_theme_css .='background: '.esc_attr($film_maker_lite_tp_preloader_color2_option).' !important;';
$film_maker_lite_tp_theme_css .='}';
}
if($film_maker_lite_tp_preloader_bg_color_option != false){
$film_maker_lite_tp_theme_css .='.loader{';
	$film_maker_lite_tp_theme_css .='background: '.esc_attr($film_maker_lite_tp_preloader_bg_color_option).';';
$film_maker_lite_tp_theme_css .='}';
}

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

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

//footer image
$film_maker_lite_footer_widget_image = get_theme_mod('film_maker_lite_footer_widget_image');
if($film_maker_lite_footer_widget_image != false){
$film_maker_lite_tp_theme_css .='#footer{';
	$film_maker_lite_tp_theme_css .='background: url('.esc_attr($film_maker_lite_footer_widget_image).');';
$film_maker_lite_tp_theme_css .='}';
}

//Font Weight
$film_maker_lite_menu_font_weight = get_theme_mod( 'film_maker_lite_menu_font_weight','600');
if($film_maker_lite_menu_font_weight == '100'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 100;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '200'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 200;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '300'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 300;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '400'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 400;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '500'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 500;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '600'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 600;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '700'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 700;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '800'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 800;';
$film_maker_lite_tp_theme_css .='}';
}else if($film_maker_lite_menu_font_weight == '900'){
$film_maker_lite_tp_theme_css .='.main-navigation a{';
    $film_maker_lite_tp_theme_css .='font-weight: 900;';
$film_maker_lite_tp_theme_css .='}';
}

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

/*------------------ Slider CSS -------------------*/
    $film_maker_lite_slider_opacity_setting = get_theme_mod('film_maker_lite_slider_opacity_setting', true);
    $film_maker_lite_image_opacity_color    = get_theme_mod('film_maker_lite_image_opacity_color', '');
    $film_maker_lite_slider_opacity         = get_theme_mod('film_maker_lite_slider_opacity', '1');

    if ($film_maker_lite_slider_opacity_setting) {
        // Apply opacity value to slider image
        if ($film_maker_lite_slider_opacity !== '') {
            $film_maker_lite_tp_theme_css .= '#slider img {';
            $film_maker_lite_tp_theme_css .= 'opacity: ' . esc_attr($film_maker_lite_slider_opacity) . ';';
            $film_maker_lite_tp_theme_css .= '}';
        }

        // Apply background color to slider if defined
        if ($film_maker_lite_image_opacity_color !== '') {
            $film_maker_lite_tp_theme_css .= '#slider {';
            $film_maker_lite_tp_theme_css .= 'background-color: ' . esc_attr($film_maker_lite_image_opacity_color) . ';';
            $film_maker_lite_tp_theme_css .= '}';
        }
    } else {
        // If setting is disabled, force full opacity
        $film_maker_lite_tp_theme_css .= '#slider img {';
        $film_maker_lite_tp_theme_css .= 'opacity: 1;';
        $film_maker_lite_tp_theme_css .= '}';
    }
// About Section ANimation
$movie_review_hub_movie_time_animation = get_theme_mod( 'movie_review_hub_movie_time_animation', true );
if ( $movie_review_hub_movie_time_animation ) {
    $film_maker_lite_tp_theme_css .= '#movie-time { animation: bounceInDown 3s; animation-fill-mode: both; }';
}
