/* Novagrave Multilingual - Language Switcher Styles */

/* ===== FLOATING SWITCHER (bottom-right) ===== */
.nml-floating-switcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nml-float-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.nml-float-toggle:hover {
    background: #2a2a2a;
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.nml-float-flag {
    font-size: 18px;
    line-height: 1;
}

.nml-float-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nml-float-toggle svg {
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nml-floating-switcher.nml-open .nml-float-toggle svg {
    transform: rotate(180deg);
}

.nml-float-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 160px;
}

.nml-floating-switcher.nml-open .nml-float-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.nml-float-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nml-float-option:last-child {
    border-bottom: none;
}

.nml-float-option:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nml-float-option span:first-child {
    font-size: 20px;
}

/* ===== NAV MENU SWITCHER ===== */
.nml-nav-item {
    list-style: none;
}

.nml-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nml-lang-option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.nml-lang-option:hover,
.nml-lang-option.nml-active {
    opacity: 1;
}

.nml-lang-option.nml-active {
    background: rgba(200, 136, 106, 0.15);
    color: #C8886A;
}

.nml-flag {
    font-size: 16px;
}

/* ===== INLINE SWITCHER ===== */
.nml-style-flags .nml-lang-name {
    display: none;
}

.nml-style-flags_compact .nml-lang-name {
    display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nml-floating-switcher {
        bottom: 16px;
        right: 16px;
    }

    .nml-float-toggle {
        padding: 8px 12px;
    }
}
