/*
 Theme Name:   Flatbase Child
 Theme URI:    https://konform.com
 Description:  Flatbase child theme
 Author:       Konform
 Author URI:   https://konform.com
 Template:     flatbase
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         flatbase
 Text Domain:  flatbase-child
*/

.page-template-template-contact #node,
.page-template-template-contact #success {
  color: #333;
}

/* Smooth scrolling for the whole document */
html {
  scroll-behavior: smooth;
}

/* Add a subtle highlight effect to targeted headings */
article h1:target,
article h2:target,
article h3:target,
article h4:target,
article h5:target,
article h6:target {
  animation: highlight-fade 2s ease;
}

@keyframes highlight-fade {
  0% {
    background-color: #fff3cd;
  }
  100% {
    background-color: transparent;
  }
}


.wpml-floating-language-switcher .wpml-ls-statics-shortcode_actions {
    margin-bottom: 0;
}

.wpml-floating-language-switcher  .wpml-ls-statics-shortcode_actions a {
    background-color: transparent !important;
}

.wpml-floating-language-switcher .wpml-ls-legacy-list-horizontal a {
    padding: 5px;
}


.wpml-floating-language-switcher {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 0;
    border-radius: 6px;

    -webkit-box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.25);
    -moz-box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.25);
    box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.25);
}

#navigation .nav li a.sf-with-ul:after {
    position: absolute;
    bottom: 5px;
}

/* Mobile Navigation - Language Switcher Fixes */
@media screen and (max-width: 1024px) {
    /* Fix language switcher in mobile menu */
    #navigation .wpml-ls-item {
        display: block;
        width: 100% !important;
    }
    
    #navigation .wpml-ls-item a {
        display: flex !important;
        align-items: center;
        padding: 15px 20px !important;
        width: 100% !important;
    }
    
    #navigation .wpml-ls-item .wpml-ls-flag {
        margin-right: 10px;
        max-width: 24px;
        height: auto;
    }
    
    /* Ensure submenu languages display properly */
    #navigation .wpml-ls-current-language .sub-menu {
        position: static !important;
        display: none;
        width: 100% !important;
        padding-left: 20px;
    }
    
    #navigation .wpml-ls-current-language.open .sub-menu,
    #navigation .wpml-ls-current-language:hover .sub-menu {
        display: block !important;
        padding-left: 0 !important;
    }

    #navigation .wpml-ls-current-language a,
    #navigation .wpml-ls-current-language .sub-menu a {
        padding-left: 0 !important;
    }
    
    /* Fix the dropdown arrow for language switcher */
    #navigation .wpml-ls-current-language > a.sf-with-ul:after {
        position: absolute;
        right: 20px;
    }
}