/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    vertical-align: middle;
}

.language-switcher .btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.language-switcher .btn:hover,
.language-switcher .btn:focus {
    color: #f5a425; /* Use your theme's accent color */
}

.language-switcher .dropdown-menu {
    min-width: 120px;
    padding: 5px 0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 1050;
}

.language-switcher .dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-item:hover,
.language-switcher .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #f5a425; /* Use your theme's accent color */
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    padding: 10px 15px;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-language-switcher .btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-language-switcher .btn-primary {
    background-color: #f5a425; /* Use your theme's accent color */
    border-color: #f5a425;
}

.mobile-language-switcher .btn-outline-secondary {
    color: #333;
    border-color: #ccc;
    background-color: #fff;
}

.mobile-language-switcher .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #f5a425; /* Use your theme's accent color */
}

/* Responsive styles */
@media (max-width: 991px) {
    .language-switcher {
        margin-right: 10px;
    }
}

@media (max-width: 767px) {
    .language-switcher {
        margin-right: 5px;
    }
    
    .language-switcher .btn {
        padding: 5px 8px;
        font-size: 13px;
    }
    
    .mobile-language-switcher .btn {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* Mobile menu integration */
@media (max-width: 575px) {
    .language-switcher {
        position: relative;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .language-switcher .btn {
        padding: 4px 6px;
        font-size: 12px;
    }
    
    .language-switcher .dropdown-menu {
        position: absolute;
        left: 0;
        right: auto;
        min-width: 100px;
    }
    
    .language-switcher .dropdown-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .mobile-language-switcher .btn {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* RTL support */
html[dir="rtl"] .language-switcher {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .language-switcher .dropdown-menu {
    text-align: right;
}

@media (max-width: 991px) {
    html[dir="rtl"] .language-switcher {
        margin-left: 10px;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    html[dir="rtl"] .language-switcher {
        margin-left: 5px;
        margin-right: 0;
    }
}

@media (max-width: 575px) {
    html[dir="rtl"] .language-switcher {
        margin-left: 0;
    }
    
    html[dir="rtl"] .language-switcher .dropdown-menu {
        left: auto;
        right: 0;
    }
} 