/*
Theme Name: Hello Elementor Child - Van Heeckeren
Theme URI: https://elementor.com/hello-theme/
Description: Child theme voor Hello Elementor met custom WPML language switcher.
Author: Van Heeckeren / MLND
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child-vh
*/

/* Alleen styling voor de custom language switcher.
   Geen globale Hello/Elementor CSS overrides. */

.custom-lang-switcher {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    z-index: 99;
}

.custom-lang-switcher,
.custom-lang-switcher * {
    box-sizing: border-box;
}

.custom-lang-switcher__current {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    padding: 8px 0;
    margin: 0;
    box-shadow: none;
}

.custom-lang-switcher__current:hover,
.custom-lang-switcher__current:focus {
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

.custom-lang-switcher__chevron {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform .2s ease;
}

.custom-lang-switcher.is-open .custom-lang-switcher__chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.custom-lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    padding: 7px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 9999;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    white-space: nowrap;
}

.custom-lang-switcher.is-open .custom-lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-lang-switcher__dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-lang-switcher__dropdown a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    font: inherit;
    font-weight: 500;
    line-height: 1.2;
    transition: opacity .15s ease;
}

.custom-lang-switcher__dropdown a:hover {
    opacity: .65;
}

/* LIGHT = witte actieve taal, voor donkere header */
.custom-lang-switcher--light .custom-lang-switcher__current {
    color: #fff;
}

.custom-lang-switcher--light .custom-lang-switcher__dropdown {
    background: rgba(255,255,255,.92);
}

.custom-lang-switcher--light .custom-lang-switcher__dropdown a {
    color: #757a4d;
}

/* DARK = zwarte actieve taal, voor lichte header */
.custom-lang-switcher--dark .custom-lang-switcher__current {
    color: #757a4d;
}

.custom-lang-switcher--dark .custom-lang-switcher__dropdown {
    background: rgba(255,255,255,.72);
}

.custom-lang-switcher--dark .custom-lang-switcher__dropdown a {
    color: #757a4d;
}

