/**
 * Language Switcher Styles
 * Elegant flag-only design
 */

.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 20px;
    overflow: hidden;
}

.lang-switcher:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.7);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.lang-switcher .flag-icon {
    width: 26px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.lang-switcher:hover .flag-icon {
    transform: scale(1.1);
}

/* Hide text - show only flag */
.lang-switcher .lang-text {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .lang-switcher {
        width: 40px;
        height: 40px;
        margin-left: 12px;
    }

    .lang-switcher .flag-icon {
        width: 22px;
        height: 17px;
    }
}

@media (max-width: 768px) {
    .lang-switcher {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999;
        width: 44px;
        height: 44px;
        margin: 0;
        background: rgba(30, 30, 30, 0.85);
        border: 1px solid rgba(212, 175, 55, 0.4);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .lang-switcher .flag-icon {
        width: 24px;
        height: 18px;
    }
}

/* RTL Support */
html[dir="ltr"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

@media (max-width: 1024px) {
    html[dir="ltr"] .lang-switcher {
        margin-right: 12px;
    }
}

@media (max-width: 768px) {
    html[dir="ltr"] .lang-switcher {
        right: 20px;
        left: auto;
    }
}