﻿.language-switcher {
    position: static; /* Changed from fixed to static */
    background: transparent;
    padding: 0;
    box-shadow: none;
    z-index: 999;
    display: inline-flex;
    gap: 5px;
    margin-left: 15px;
    vertical-align: middle;
}

.language-switcher .lang-btn {
    width: 24px; /* Reduced size */
    height: 16px; /* Reduced size */
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.language-switcher .lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.language-switcher .lang-btn.active {
    box-shadow: 0 0 0 1px #1A76D1, 0 1px 2px rgba(0, 0, 0, 0.2);
}

.language-switcher .lang-btn .flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tooltip for language name on hover */
.language-switcher .lang-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    z-index: 1000;
}

.language-switcher .lang-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-left: 10px;
    }
}