/* i18n Styles */

/* Switcher Button Container */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(0, 255, 136, 0.05);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-left: 10px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #00ff88;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.5;
    letter-spacing: 1px;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-1px);
}

.lang-btn.active {
    opacity: 1;
    background: #00ff88;
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Glitch Overlay */
.i18n-glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.i18n-glitch-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: glitchEffect 0.5s steps(2) infinite;
}

@keyframes glitchEffect {
    0% {
        clip-path: inset(10% 0 30% 0);
        background: rgba(0, 255, 136, 0.1);
        transform: translate(-5px, 0);
    }
    20% {
        clip-path: inset(40% 0 10% 0);
        background: rgba(0, 255, 204, 0.05);
        transform: translate(5px, 2px);
    }
    40% {
        clip-path: inset(70% 0 5% 0);
        background: rgba(0, 255, 136, 0.1);
        transform: translate(-2px, -2px);
    }
    60% {
        clip-path: inset(20% 0 50% 0);
        background: rgba(0, 255, 204, 0.05);
        transform: translate(2px, 5px);
    }
    80% {
        clip-path: inset(50% 0 20% 0);
        background: rgba(0, 255, 136, 0.1);
        transform: translate(-5px, -5px);
    }
    100% {
        clip-path: inset(10% 0 80% 0);
        background: rgba(0, 255, 204, 0.05);
        transform: translate(5px, 0);
    }
}

/* Scanlines for glitch */
.i18n-glitch-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 136, 0.05) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
}

/* Page transitions */
body.is-switching-lang {
    filter: blur(2px) contrast(1.2);
    transition: filter 0.2s ease;
}
