/* =========================================================
   INTECH Multilingual — Language Switcher Styles
   ========================================================= */

/* ── Base container ──────────────────────────────────────── */
.intech-ml-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    position: relative;
}

/* ─────────────────────────────────────────────────────────
   Pills style
   ───────────────────────────────────────────────────────── */
.intech-ml-pills {
    gap: 2px;
}

.intech-ml-pills .intech-ml-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    color: inherit;
}

.intech-ml-pills .intech-ml-item:is(a):hover {
    background: rgba(0, 79, 124, 0.08);
    border-color: rgba(0, 79, 124, 0.2);
    color: #004f7c;
}

.intech-ml-pills .intech-ml-current {
    background: #004f7c;
    color: #fff;
    border-color: #004f7c;
    pointer-events: none;
}

.intech-ml-pills .intech-ml-unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   Dropdown style
   ───────────────────────────────────────────────────────── */
.intech-ml-dropdown {
    position: relative;
}

.intech-ml-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.intech-ml-dropdown-toggle:hover {
    border-color: #004f7c;
    background: rgba(0,79,124,0.04);
}

.intech-ml-chevron {
    transition: transform 0.18s ease;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.intech-ml-dropdown.is-open .intech-ml-chevron {
    transform: rotate(180deg);
}

.intech-ml-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 4px;
    z-index: 9999;
    overflow: hidden;
}

.intech-ml-dropdown.is-open .intech-ml-dropdown-menu {
    display: block;
    animation: intechMLFadeIn 0.15s ease;
}

.intech-ml-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.intech-ml-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #333;
    transition: background 0.12s;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

a.intech-ml-option:hover {
    background: rgba(0,79,124,0.07);
    color: #004f7c;
}

.intech-ml-option.intech-ml-current {
    background: rgba(0,79,124,0.08);
    color: #004f7c;
    font-weight: 600;
    pointer-events: none;
}

.intech-ml-option.intech-ml-unavailable {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────
   Text style
   ───────────────────────────────────────────────────────── */
.intech-ml-text {
    gap: 0;
}

.intech-ml-text .intech-ml-sep {
    opacity: 0.4;
    margin: 0 2px;
}

.intech-ml-text a {
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.intech-ml-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

.intech-ml-text .intech-ml-current {
    font-weight: 700;
}

.intech-ml-text .intech-ml-unavailable {
    opacity: 0.3;
}

/* ─────────────────────────────────────────────────────────
   Animation
   ───────────────────────────────────────────────────────── */
@keyframes intechMLFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   Elementor overrides — ensure switcher displays in header
   ───────────────────────────────────────────────────────── */
.e-con .intech-ml-switcher,
.elementor-widget-container .intech-ml-switcher {
    flex-wrap: nowrap;
}

/* ─────────────────────────────────────────────────────────
   Floating style
   ───────────────────────────────────────────────────────── */
.intech-ml-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none; /* Let clicks pass through container empty space */
}

/* Re-enable pointer events for interactive elements */
.intech-ml-floating-toggle,
.intech-ml-floating-item {
    pointer-events: auto;
}

.intech-ml-floating-toggle {
    width: 52px;
    height: 52px;
    background: #004f7c; /* Intech brand blue */
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: default; /* Not a link itself, just a hover trigger */
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.intech-ml-floating-toggle svg {
    width: 26px;
    height: 26px;
}

.intech-ml-floating:hover .intech-ml-floating-toggle,
.intech-ml-floating-toggle:focus {
    transform: scale(1.08);
}

.intech-ml-floating-item {
    background: #fff;
    color: #333;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intech-ml-floating:hover .intech-ml-floating-item,
.intech-ml-floating:focus-within .intech-ml-floating-item {
    opacity: 1;
    transform: translateX(0);
}

.intech-ml-floating-item:hover {
    color: #004f7c;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .intech-ml-floating {
        bottom: 20px;
        right: 20px;
    }
    .intech-ml-floating-item {
        opacity: 1;
        transform: none; /* Always visible on mobile */
    }
}

