<?php

$fm_radio_station_tp_theme_css = '';

$fm_radio_station_theme_lay = get_theme_mod( 'fm_radio_station_tp_body_layout_settings','Full');
if($fm_radio_station_theme_lay == 'Container'){
$fm_radio_station_tp_theme_css .='body{';
$fm_radio_station_tp_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
$fm_radio_station_tp_theme_css .='}';
$fm_radio_station_tp_theme_css .='@media screen and (max-width:575px){';
$fm_radio_station_tp_theme_css .='body{';
	$fm_radio_station_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left: 0px';
$fm_radio_station_tp_theme_css .='} }';
$fm_radio_station_tp_theme_css .='.scrolled{';
$fm_radio_station_tp_theme_css .='width: auto; left:0; right:0;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_theme_lay == 'Container Fluid'){
$fm_radio_station_tp_theme_css .='body{';
$fm_radio_station_tp_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
$fm_radio_station_tp_theme_css .='}';
$fm_radio_station_tp_theme_css .='@media screen and (max-width:575px){';
$fm_radio_station_tp_theme_css .='body{';
	$fm_radio_station_tp_theme_css .='max-width: 100%; padding-right:0px; padding-left:0px';
$fm_radio_station_tp_theme_css .='} }';
$fm_radio_station_tp_theme_css .='.scrolled{';
$fm_radio_station_tp_theme_css .='width: auto; left:0; right:0;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_theme_lay == 'Full'){
$fm_radio_station_tp_theme_css .='body{';
$fm_radio_station_tp_theme_css .='max-width: 100%;';
$fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_scroll_position = get_theme_mod( 'fm_radio_station_scroll_top_position','Right');
if($fm_radio_station_scroll_position == 'Right'){
$fm_radio_station_tp_theme_css .='#return-to-top{';
$fm_radio_station_tp_theme_css .='right: 20px;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_scroll_position == 'Left'){
$fm_radio_station_tp_theme_css .='#return-to-top{';
$fm_radio_station_tp_theme_css .='left: 20px;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_scroll_position == 'Center'){
$fm_radio_station_tp_theme_css .='#return-to-top{';
$fm_radio_station_tp_theme_css .='right: 50%;left: 50%;';
$fm_radio_station_tp_theme_css .='}';
}

// related post
$fm_radio_station_related_post_mob = get_theme_mod('fm_radio_station_related_post_mob', true);
$fm_radio_station_related_post = get_theme_mod('fm_radio_station_remove_related_post', true);
$fm_radio_station_tp_theme_css .= '.related-post-block {';
if ($fm_radio_station_related_post == false) {
    $fm_radio_station_tp_theme_css .= 'display: none;';
}
$fm_radio_station_tp_theme_css .= '}';
$fm_radio_station_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($fm_radio_station_related_post == false || $fm_radio_station_related_post_mob == false) {
    $fm_radio_station_tp_theme_css .= '.related-post-block { display: none; }';
}
$fm_radio_station_tp_theme_css .= '}';

// slider btn
$fm_radio_station_slider_buttom_mob = get_theme_mod('fm_radio_station_slider_buttom_mob', true);
$fm_radio_station_slider_button = get_theme_mod('fm_radio_station_slider_button', true);
$fm_radio_station_tp_theme_css .= '#main-slider .more-btn {';
if ($fm_radio_station_slider_button == false) {
    $fm_radio_station_tp_theme_css .= 'display: none;';
}
$fm_radio_station_tp_theme_css .= '}';
$fm_radio_station_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($fm_radio_station_slider_button == false || $fm_radio_station_slider_buttom_mob == false) {
    $fm_radio_station_tp_theme_css .= '#main-slider .more-btn { display: none; }';
}
$fm_radio_station_tp_theme_css .= '}';

//return to header mobile               
$fm_radio_station_return_to_header_mob = get_theme_mod('fm_radio_station_return_to_header_mob', true);
$fm_radio_station_return_to_header = get_theme_mod('fm_radio_station_return_to_header', true);
$fm_radio_station_tp_theme_css .= '.return-to-header{';
if ($fm_radio_station_return_to_header == false) {
    $fm_radio_station_tp_theme_css .= 'display: none;';
}
$fm_radio_station_tp_theme_css .= '}';
$fm_radio_station_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($fm_radio_station_return_to_header == false || $fm_radio_station_return_to_header_mob == false) {
    $fm_radio_station_tp_theme_css .= '.return-to-header{ display: none; }';
}
$fm_radio_station_tp_theme_css .= '}';

//blog description              
$fm_radio_station_mobile_blog_description = get_theme_mod('fm_radio_station_mobile_blog_description', true);
$fm_radio_station_tp_theme_css .= '@media screen and (max-width: 575px) {';
if ($fm_radio_station_mobile_blog_description == false) {
    $fm_radio_station_tp_theme_css .= '.blog-description{ display: none; }';
}
$fm_radio_station_tp_theme_css .= '}';


$fm_radio_station_footer_widget_image = get_theme_mod('fm_radio_station_footer_widget_image');
if($fm_radio_station_footer_widget_image != false){
$fm_radio_station_tp_theme_css .='#footer{';
$fm_radio_station_tp_theme_css .='background: url('.esc_attr($fm_radio_station_footer_widget_image).');';
$fm_radio_station_tp_theme_css .='}';
}

//Social icon Font size
$fm_radio_station_social_icon_fontsize = get_theme_mod('fm_radio_station_social_icon_fontsize');
$fm_radio_station_tp_theme_css .='.social-media a i{';
$fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_social_icon_fontsize).'px;';
$fm_radio_station_tp_theme_css .='}';

// site title and tagline font size option
$fm_radio_station_site_title_font_size = get_theme_mod('fm_radio_station_site_title_font_size', ''); {
$fm_radio_station_tp_theme_css .='.logo h1 a, .logo p a{';
$fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_site_title_font_size).'px !important;';
$fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_site_tagline_font_size = get_theme_mod('fm_radio_station_site_tagline_font_size', '');{
$fm_radio_station_tp_theme_css .='.logo p{';
$fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_site_tagline_font_size).'px;';
$fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_related_product = get_theme_mod('fm_radio_station_related_product',true);
if($fm_radio_station_related_product == false){
$fm_radio_station_tp_theme_css .='.related.products{';
	$fm_radio_station_tp_theme_css .='display: none;';
$fm_radio_station_tp_theme_css .='}';
}

//menu font size
$fm_radio_station_menu_font_size = get_theme_mod('fm_radio_station_menu_font_size', '');{
$fm_radio_station_tp_theme_css .='.main-navigation a, .main-navigation li.page_item_has_children:after, .main-navigation li.menu-item-has-children:after{';
	$fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_menu_font_size).'px;';
$fm_radio_station_tp_theme_css .='}';
}

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

//sale position
$fm_radio_station_scroll_position = get_theme_mod( 'fm_radio_station_sale_tag_position','right');
if($fm_radio_station_scroll_position == 'right'){
$fm_radio_station_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $fm_radio_station_tp_theme_css .='right: 25px !important;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_scroll_position == 'left'){
$fm_radio_station_tp_theme_css .='.woocommerce ul.products li.product .onsale{';
    $fm_radio_station_tp_theme_css .='left: 25px !important; right: auto !important;';
$fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_woocommerce_sale_font_size = get_theme_mod('fm_radio_station_woocommerce_sale_font_size');
if($fm_radio_station_woocommerce_sale_font_size != false){
    $fm_radio_station_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_woocommerce_sale_font_size).'px;';
    $fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_woocommerce_sale_padding_top_bottom = get_theme_mod('fm_radio_station_woocommerce_sale_padding_top_bottom');
if($fm_radio_station_woocommerce_sale_padding_top_bottom != false){
    $fm_radio_station_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $fm_radio_station_tp_theme_css .='padding-top: '.esc_attr($fm_radio_station_woocommerce_sale_padding_top_bottom).'px; padding-bottom: '.esc_attr($fm_radio_station_woocommerce_sale_padding_top_bottom).'px;';
    $fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_woocommerce_sale_padding_left_right = get_theme_mod('fm_radio_station_woocommerce_sale_padding_left_right');
if($fm_radio_station_woocommerce_sale_padding_left_right != false){
    $fm_radio_station_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $fm_radio_station_tp_theme_css .='padding-left: '.esc_attr($fm_radio_station_woocommerce_sale_padding_left_right).'px !Important; padding-right: '.esc_attr($fm_radio_station_woocommerce_sale_padding_left_right).'px !important;';
    $fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_woocommerce_sale_border_radius = get_theme_mod('fm_radio_station_woocommerce_sale_border_radius', 100);
if($fm_radio_station_woocommerce_sale_border_radius != false){
    $fm_radio_station_tp_theme_css .='.woocommerce ul.products li.product .onsale, .woocommerce span.onsale{';
        $fm_radio_station_tp_theme_css .='border-radius: '.esc_attr($fm_radio_station_woocommerce_sale_border_radius).'% !important;';
    $fm_radio_station_tp_theme_css .='}';
}

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

/*------------- Blog Page------------------*/
$fm_radio_station_post_image_round = get_theme_mod('fm_radio_station_post_image_round', 0);
if($fm_radio_station_post_image_round != false){
    $fm_radio_station_tp_theme_css .='.blog .box-image img{';
        $fm_radio_station_tp_theme_css .='border-radius: '.esc_attr($fm_radio_station_post_image_round).'px;';
    $fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_post_image_width = get_theme_mod('fm_radio_station_post_image_width', '');
if($fm_radio_station_post_image_width != false){
    $fm_radio_station_tp_theme_css .='.blog .box-image img{';
        $fm_radio_station_tp_theme_css .='Width: '.esc_attr($fm_radio_station_post_image_width).'px;';
    $fm_radio_station_tp_theme_css .='}';
}

$fm_radio_station_post_image_length = get_theme_mod('fm_radio_station_post_image_length', '');
if($fm_radio_station_post_image_length != false){
    $fm_radio_station_tp_theme_css .='.blog .box-image img{';
        $fm_radio_station_tp_theme_css .='height: '.esc_attr($fm_radio_station_post_image_length).'px;';
    $fm_radio_station_tp_theme_css .='}';
}

// footer widget title font size
$fm_radio_station_footer_widget_title_font_size = get_theme_mod('fm_radio_station_footer_widget_title_font_size', '');{
$fm_radio_station_tp_theme_css .='#footer h3, #footer h2.wp-block-heading{';
    $fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_footer_widget_title_font_size).'px;';
$fm_radio_station_tp_theme_css .='}';
}

// Copyright text font size
$fm_radio_station_footer_copyright_font_size = get_theme_mod('fm_radio_station_footer_copyright_font_size', '');{
$fm_radio_station_tp_theme_css .='#footer .site-info p{';
    $fm_radio_station_tp_theme_css .='font-size: '.esc_attr($fm_radio_station_footer_copyright_font_size).'px;';
$fm_radio_station_tp_theme_css .='}';
}

// copyright padding
$fm_radio_station_footer_copyright_top_bottom_padding = get_theme_mod('fm_radio_station_footer_copyright_top_bottom_padding', '');
if ($fm_radio_station_footer_copyright_top_bottom_padding !== '') { 
    $fm_radio_station_tp_theme_css .= '.site-info {';
    $fm_radio_station_tp_theme_css .= 'padding-top: ' . esc_attr($fm_radio_station_footer_copyright_top_bottom_padding) . 'px;';
    $fm_radio_station_tp_theme_css .= 'padding-bottom: ' . esc_attr($fm_radio_station_footer_copyright_top_bottom_padding) . 'px;';
    $fm_radio_station_tp_theme_css .= '}';
}

// copyright position
$fm_radio_station_copyright_text_position = get_theme_mod( 'fm_radio_station_copyright_text_position','Center');
if($fm_radio_station_copyright_text_position == 'Center'){
$fm_radio_station_tp_theme_css .='#footer .site-info p{';
$fm_radio_station_tp_theme_css .='text-align:center;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_copyright_text_position == 'Left'){
$fm_radio_station_tp_theme_css .='#footer .site-info p{';
$fm_radio_station_tp_theme_css .='text-align:left;';
$fm_radio_station_tp_theme_css .='}';
}else if($fm_radio_station_copyright_text_position == 'Right'){
$fm_radio_station_tp_theme_css .='#footer .site-info p{';
$fm_radio_station_tp_theme_css .='text-align:right;';
$fm_radio_station_tp_theme_css .='}';
}