/* STS Native Language Toggle Styles */

/* CUSTOM EN ↔ FR SEGMENTED CONTROL */
.sts-lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    user-select: none;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.sts-lang-switch:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.sts-lang-btn {
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sts-lang-btn:hover {
    color: #ffffff;
}

.sts-lang-btn.active {
    background: #febd69;
    color: #111111;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* LIGHT THEME (Page headers, white topbars) */
.page-header .sts-lang-switch,
.topbar .sts-lang-switch {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.page-header .sts-lang-btn,
.topbar .sts-lang-btn {
    color: #444444;
}

.page-header .sts-lang-btn.active,
.topbar .sts-lang-btn.active {
    background: #0044cc;
    color: #ffffff;
}

/* MOBILE DRAWER EN ↔ FR CONTROL */
.mobile-lang-switch-wrap {
    padding: 14px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
}

.mobile-lang-label {
    font-size: 13px;
    color: #4b5563;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.mobile-lang-switch-wrap .sts-lang-switch {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
}

.mobile-lang-switch-wrap .sts-lang-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    border-radius: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-lang-switch-wrap .sts-lang-btn.active {
    background: #0044cc;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 68, 204, 0.3);
}

/* OVERFLOW & RESPONSIVE LAYOUT SAFEGUARDS */
@media (min-width: 769px) {
    .sub-header {
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    .sub-header::-webkit-scrollbar {
        height: 3px;
    }
    .sub-header::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 3px;
    }
}

@media (max-width: 768px) {
    .sts-lang-desktop-wrap {
        display: none !important;
    }
}

/* NOTRANSLATE UTILITY CLASS */
.notranslate {
    translate: no;
}
