/* Language Switcher with Real Flag Icons */

.language-switcher {
    position: relative;
    display: inline-block;
}

/* Circular button with flag */
.lang-current {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.lang-current:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Flag image in button */
.lang-current img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher:hover .lang-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.lang-dropdown a img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.lang-dropdown a.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

/* Mobile */
@media (max-width: 768px) {
    .lang-current {
        width: 36px;
        height: 36px;
    }

    .lang-current img {
        width: 20px;
        height: 20px;
    }
}